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:
Post a Comment