participate


Java Virtual Machine (JVM) - Documentation about the "XX" options
<<   Back to Forum  |   Give us Feedback
This topic has 10 replies on 1 page.
klaushammer
Posts:14
Registered: 12/20/99
Documentation about the "XX" options   
Aug 17, 2004 8:41 AM

 
Does anybody know if there is any documentation about the VM options starting with "-XX:" and, if yes, where ?
 
jschell
Posts:38,148
Registered: 11/3/97
Re: Documentation about the "XX" options   
Aug 17, 2004 9:06 AM (reply 1 of 10)  (In reply to original post )

 
This is the link I have....

http://java.sun.com/docs/hotspot/VMOptions.html
 
tschodt
Posts:4,807
Registered: 4/24/98
Re: Documentation about the "XX" options   
Aug 18, 2004 2:26 AM (reply 2 of 10)  (In reply to #1 )

 
Sweet.

There seem to be some missing though, like
-XX:MaxDirectMemorySize
 
Paris_Hilton
Posts:18
Registered: 1/5/04
Re: Documentation about the "XX" options   
Aug 27, 2004 9:14 PM (reply 3 of 10)  (In reply to #2 )

 
See appendix A5:
http://developers.sun.com/techtopics/mobility/midp/articles/garbagecollection2/#a.5
 
shankar.unni
Posts:749
Registered: 6/23/98
Re: Documentation about the "XX" options   
Sep 1, 2004 1:13 PM (reply 4 of 10)  (In reply to original post )

 
Does anybody know if there is any documentation about
the VM options starting with "-XX:" and, if yes, where?

Heh. The "-X" options are the documented undocumented options, while the "-XX" options are the undocumented undocumented options :-).

Seriously, Sun has an extremely schizophrenic outlook when it comes to these options. On the one hand, "java -XX" doesn't spit out the list of -XX options available, but then they have these little documentation teases scattered around their sites where they (implicitly) encourage you to use them.

-XX:NewSize and -XX:MaxNewSize must be the most popular undocumented options on Earth..
 
cfuishien
Posts:173
Registered: 12/16/03
Re: Documentation about the "XX" options   
Sep 1, 2004 6:05 PM (reply 5 of 10)  (In reply to #4 )

 
Hi
You will be surprised in the number of -XX options. Another area will the system properties that u can set to turn this on, turn that off... Areas like in the network/awt...
 
fipilica
Posts:64
Registered: 4/18/03
Re: Documentation about the "XX" options   
Sep 3, 2004 3:55 AM (reply 6 of 10)  (In reply to #5 )

 
can u say a little more about those :) ?
 
cfuishien
Posts:173
Registered: 12/16/03
Re: Documentation about the "XX" options   
Sep 3, 2004 7:37 AM (reply 7 of 10)  (In reply to #6 )

 
Hi
Too many to go thru...
Here are some that I used to troubleshoot hotspot crashes
-Xcomp
Compile on 1st invocation

-Xbatch
Prevents overlapped compilation and execution.

-XX:+PrintCompilation
print which method is the hotspot compiling

-XX:+ShowMessageBoxOnError
Will pause VM before crashing, can gcore process before exiting.

Well, the rest... the rest... when u need it, it will be documented ;)
 
fipilica
Posts:64
Registered: 4/18/03
Re: Documentation about the "XX" options   
Sep 3, 2004 7:43 AM (reply 8 of 10)  (In reply to #7 )

 
here is my email fipilica@yahoo.com. When u have the time maybe you will email me one copy of that list ;)

Thx and have a nice day!
 
klaushammer
Posts:14
Registered: 12/20/99
Re: Documentation about the "XX" options   
Sep 3, 2004 7:55 AM (reply 9 of 10)  (In reply to #7 )

 
Hi,

a really interesting one is -XX:MinHeapFreeRatio=nnn as by default the VM reserves FOURTY !!! percent more memory than it really needs.
 
jon999
Posts:109
Registered: 9/15/04
Re: Documentation about the "XX" options   
Sep 15, 2004 6:59 AM (reply 10 of 10)  (In reply to #9 )

 
Actually that extra 40% is the space left free after a collection and is used
for future allocations. Without it (or some amount) the next allocation would fail
and force another collection.
 
This topic has 10 replies on 1 page.
Back to Forum
 
Read the Developer Forums Code of Conduct

Click to email this message Email this Topic

Edit this Topic
  
 
 
Forums Statistics

About Sun forums
  • Oracle Forums is a large collection of user generated discussions. It is here to help you ask questions, find answers, and participate in discussions.

    Check out our guide on Getting started with Oracle Forums for a full walkthrough of how to best leverage the benefits of this community.

Powered by Jive Forums