Communities
|
Social Applications
Networks
Support
|
|
C-Level Executives
Other Roles
|
|
Support
Education
Partner
Other Tasks
|
|
| |
| |
| |
System.currentTimeMillis()
has an effective 15 ms granularity. For short tests this will tend to discolor results. Any new benchmarks should take advantage of the new
System.nanoTime()
method which should reduce this kind of jitter.
percentageImprovement = 100.0 x (SpecimenAvg - BaselineAvg) / BaselineAvg
| |
-server compiler
-XX:+UseParallelGC parallel (throughput) garbage collector
-Xms initial heap size is 1/64th of the machine's physical memory
-Xmx maximum heap size is 1/4th of the machine's physical memory (up to 1 GB max).
-client compiler by default and 64-bit Windows systems which meet the criteria above will be be treated as server-class machines.
-XX:+UseParallelGC parallel (throughput) garbage collector, or
-XX:+UseConcMarkSweepGC concurrent (low pause time) garbage collector (also known as CMS)
-XX:+UseSerialGC serial garbage collector (for smaller applications and systems)
-XX:+UseLargePages (
on by default for Solaris) and
-XX:LargePageSizeInBytes you can get the best efficiency out of the memory management system of your server. Note that with larger page sizes we can make better use of virtual memory hardware resources (TLBs), but that may cause larger space sizes for the Permanent Generation and the Code Cache, which in turn can force you to reduce the size of your Java heap. This is a small concern with 2 MB or 4 MB page sizes but a more interesting concern with 256 MB page sizes.
LD_PRELOAD=/usr/lib/libumem.so
LD_PRELOAD=/usr/lib/libumem.so java
java-settings application-args
env LD_PRELOAD=/usr/lib/libumem.so java
java-settings application-args
java -Xmx3800m -Xms3800m -Xmn2g -Xss128k -XX:+UseParallelGC -XX:ParallelGCThreads=20
-Xmx3800m -Xms3800m
-Xmn2g
-Xss128k
-XX:+UseParallelGC
-XX:ParallelGCThreads=20
java -Xmx3550m -Xms3550m -Xmn2g -Xss128k -XX:+UseParallelGC -XX:ParallelGCThreads=20 -XX:+UseParallelOldGC
-Xmx3550m -Xms3550m
-XX:+UseParallelOldGC
java -Xmx2506m -Xms2506m -Xmn1536m -Xss128k -XX:+UseParallelGC -XX:ParallelGCThreads=20 -XX:+UseParallelOldGC -XX:LargePageSizeInBytes=256m
-Xmx2506m -Xms2506m
-Xmn1536m
-XX:LargePageSizeInBytes=256m
java -Xmx3550m -Xms3550m -Xmn2g -Xss128k -XX:+UseParallelGC -XX:ParallelGCThreads=20 -XX:+UseParallelOldGC -XX:+AggressiveOpts
-Xmx3550m -Xms3550m
-Xmn2g
-XX:+AggressiveOpts
java -Xmx3550m -Xms3550m -Xmn2g -Xss128k -XX:+UseParallelGC -XX:ParallelGCThreads=20 -XX:+UseParallelOldGC -XX:+AggressiveOpts -XX:+UseBiasedLocking
-XX:+UseBiasedLocking
java -Xmx3550m -Xms3550m -Xmn2g -Xss128k -XX:ParallelGCThreads=20 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31
-XX:+UseConcMarkSweepGC -XX:+UseParNewGC
-XX:SurvivorRatio=8
-XX:TargetSurvivorRatio=90
-XX:MaxTenuringThreshold=31
-XX:+UseBiasedLocking, this setting should be 15.
java -Xmx3550m -Xms3550m -Xmn2g -Xss128k -XX:ParallelGCThreads=20 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31 -XX:+AggressiveOpts
-XX:+AggressiveOpts
| |
-Xprof Profiler
and the
HPROF profiler (for use with HPROF see also
Heap Analysis Tool).
| |
| |
| |

