Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Pause times are unneccessarily long, what parameters can I use to tune this?

parameters pause times tune
0
Posted

Pause times are unneccessarily long, what parameters can I use to tune this?

0

There are several things to try in this arena. First, give -Xincgc a try. This uses the “Train” garbage collection algorithm, which attempts to collect a fraction of the heap instead of the entire thing at once. The train algorithm clusters objects that reference each other together, and collects these clusters individually. For most programs this results in shorter pauses, although throughput is usually worse. Next, you might try decreasing the amount of heap used. A larger heap will cause garbage collection pauses to increase because there is more heap to scan. Try -Xmx32m. If your application requires more memory than you can adjust the size of the eden (young generation space) with -XX:NewSize=… and -XX:MaxNewSize=… (for 1.3/1.4) or -Xmn in 1.4. For some applications a very large eden helps, for others it will increase the times of minor collections. For most programs, collecting eden is much faster than other generations because most objects die young. If you currently invoke

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.