Wednesday, September 27, 2006

BLOG: Java performance tuning

You can make the JVM start to take the advantage of powerful server config (2+ processor, 2G+ memory)

· java server Xmx1g XX:+UseParallelGC
· increase the size of young generation through put ratio.( 5%). If you want to set the ratio to 5%, you need to calc the milliseconds it needs to set the parameter. The 5% = 1 / (1+nnn). Therefore MaxGCPauseMillis(nnn) equals 19. XX:MaxGCPauseMillis

· -XX:+UseLargePages=2m
· Increase the size of permanent generation
· GC threads will equal to cores
· Client Xshare:on
· -XX:+DisableExplicitGC
· You can use JConsole to connect to agent.

http://java.sun.com/performance/

No comments:

Thumbs Up to GitHub Copilot and JetBrains Resharper

Having used AI tool GitHub Copilot since 08/16/2023, I’ve realized that learning GitHub Copilot is like learning a new framework or library ...