Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: java -server jvm option:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java -server jvm option:

Ted's email nudged me out of sleep at 4:30 am...

I did a quick test with Tomcat and a simple servlet ... and here are some quick results on an Intel MacBook Pro (2.4 Ghz Core 2 Duo)
and an Windows 7 boxes.

Hope this provides a datapoint to those who are curious.

Test : -server option (what it resolves to) :

[MacOS 10.5.8  JavaVM : 1.5.0_20]
 -XX:MaxHeapSize=134217728 -XX:+PrintCommandLineFlags

[MacOS 10.5.8 JavaM : 1.6.0_17]
-XX:CompileThreshold=10000 -XX:MaxHeapSize=1073741824 - XX:ParallelGCThreads=2 -XX:+PrintCommandLineFlags -XX:+UseParallelGC

[Windows 7 (32 bit) - JavaVM: 1.6.0_17]
-XX:MaxHeapSize=536870911 -XX:ParallelGCThreads=2 -XX: +PrintCommandLineFlags -XX:-UseLargePagesIndividualAllocation -XX: +UseParallelGC

[Windows 7 (64 bit) - JavaVM: 1.6.0_17]
-XX:MaxHeapSize=939309056 -XX:ParallelGCThreads=2 -XX: +PrintCommandLineFlags -XX:-UseLargePagesIndividualAllocation -XX: +UseParallelGC

Test : -server XX:+AggressiveHeap -XX:+AggressiveOpts -XX: +PrintCommandLineFlags

[MacOS 10.5.8 JavaVM: 1.5_0_20]
-XX:+AggressiveOpts -XX:BaseFootPrintEstimate=134217728 -XX: +BindGCTaskThreadsToCPUs -XX:CompilationPolicyChoice=0
-XX:MaxHeapSize=134217728 -XX:MaxNewSize=50331648 -XX:NewSize=50331648 -XX:OldPLABSize=8192 -XX:ParallelGCThreads=2
-XX:+PrintCommandLineFlags -XX:-ResizeTLAB -XX:-ScavengeBeforeFullGC - XX:TLABSize=262144 -XX:ThresholdTolerance=100
-XX:+UseParallelGC -XX:YoungPLABSize=262144

[MacOS 10.5.8 Java_VM: 1.6.0_17]
XX:+AggressiveOpts -XX:BaseFootPrintEstimate=2060242128 -XX: +BindGCTaskThreadsToCPUs -XX:CompilationPolicyChoice=0
-XX:CompileThreshold=10000 -XX:MaxHeapSize=2060242128 - XX:MaxNewSize=772590798 -XX:NewSize=772590798 -XX:OldPLABSize=8192
-XX:ParallelGCThreads=2 -XX:+PrintCommandLineFlags -XX:-ResizeTLAB - XX:-ScavengeBeforeFullGC -XX:TLABSize=262144
-XX:ThresholdTolerance=100 -XX:+UseParallelGC -XX:YoungPLABSize=262144

[Windows 7 (32 bit) JavaVM: 1.6.0_17]
XX:+AggressiveOpts -XX:BaseFootPrintEstimate=1006632959 -XX: +BindGCTaskThreadsToCPUs -XX:CompilationPolicyChoice=0
-XX:MaxHeapSize=1006632959 -XX:MaxNewSize=377487357 - XX:NewSize=377487357 -XX:OldPLABSize=8192 -XX:ParallelGCThreads=2
-XX:+PrintCommandLineFlags -XX:-ResizeTLAB -XX:-ScavengeBeforeFullGC - XX:TLABSize=262144 -XX:ThresholdTolerance=100
-XX:-UseLargePagesIndividualAllocation -XX:+UseParallelGC - XX:YoungPLABSize=262144

[Windows 7 (64 bit) JavaVM: 1.6.0_17]
-XX:+AggressiveOpts -XX:BaseFootPrintEstimate=1791376592 -XX: +BindGCTaskThreadsToCPUs -XX:CompilationPolicyChoice=0
-XX:MaxHeapSize=1791376592 -XX:MaxNewSize=671766222 - XX:NewSize=671766222 -XX:OldPLABSize=8192 -XX:ParallelGCThreads=2
-XX:+PrintCommandLineFlags -XX:-ResizeTLAB -XX:-ScavengeBeforeFullGC - XX:TLABSize=262144 -XX:ThresholdTolerance=100
-XX:-UseLargePagesIndividualAllocation -XX:+UseParallelGC - XX:YoungPLABSize=262144


On Dec 3, 2009, at 11:40 PM, Pratik Solanki wrote:

On Dec 3, 2009, at 11:15 PM, Ted Neward wrote:

Does the Mac JVM generally support the full suite of –XX flags?

In general, any -XX flag that works on a Sun JVM on other OSes should work just as well on the Mac. If that's not the case, please file a bug. The stability and support of the flag, however, varies. Some (like -XX:+UseParallelGC) are more supported than others. Some flags may be OS specific and may not work on the Mac. And some others may have different behaviour. It depends. For the most part though, the behaviour should be identical to other OSes. Is there any particular flag that you wanted to use on the Mac?


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 >java -server jvm option: (From: Michael Dever <email@hidden>)
 >Re: java -server jvm option: (From: Mike Swingler <email@hidden>)
 >Re: java -server jvm option: (From: Charles Ditzel <email@hidden>)
 >Re: java -server jvm option: (From: Michael Dever <email@hidden>)
 >RE: java -server jvm option: (From: "Ted Neward" <email@hidden>)
 >Re: java -server jvm option: (From: Pratik Solanki <email@hidden>)

Visit the Apple Store online or at retail locations.

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.