Java Optimization on RHEL

Chris Purcell redhat at cjp.us
Fri Apr 2 17:06:10 UTC 2004


> Here are some general suggestions I was able to track down.
>
> Size the java heap accordingly.  There is a 2GB contiguous memory limit
> on linux, so try sizing the heap at 1.6gb.
> For the hotspot JVM the flags are:
> java -server -Xms1600m -Xmx1600m
>
> more advanced options are available if GC is a bottleneck.
> First, try AggressiveHeap.
> -server -Xms1600m -Xmx1600m -XX:+AggressiveHeap
>
> AggressiveHeap turns on ParallelGC, TLABs and sizes  the young
> generation, along with a few other platform and competitive benchmarking
>  specific flags.  The important flags to try are:
>
> -Xmn400m (size young gen. to 1/4 overall heap size to start)
>
> -XX:+UseParallelGC
>
> -XX:+UseTLAB
>
> Cheryl


Thanks Cheryl, I forwarded this to our Java programmer.

Chris






More information about the redhat-list mailing list