Ian Shef wrote:
> apiccirilli@[EMAIL PROTECTED]
wrote in news:1158779800.453216.194170
> @[EMAIL PROTECTED]
>
> > Hi all -
> >
> > I've scoured the internet for this and can't find any helpful
> > information. Is there any way for the JVM to display the default
> > maximum heap size on a system? I can't seem to figure out what it is
> > using as its maximum value, if I don't manually override it with -Xmx.
> >
> > Any help would be really appreciated.
> >
> > Thanks -
> >
> > Aaron
> >
> >
>
> The javadocs are your friend! It is documented in the javadoc for the
tool
> "java".
>
> For Windows, see:
> http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html
> For Linux and Solaris, see:
> http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/java.html
>
>
> If you don't believe the javadocs and have to see it for yourself...
> With JDK version 1.5, you can use jconsole (also in the tool javadocs)
to
> provide the current and maximum heap size of a running VM.
>
>
>
> --
> Ian Shef 805/F6 * These are my personal opinions
> Raytheon Company * and not those of my employer.
> PO Box 11337 *
> Tucson, AZ 85734-1337 *
Thanks for the quick reply. The default values aren't of too much help
I'm afraid - the machines I'm working with are on an academic cluster,
and the JVMs are not typical on the machines. The jconsole tool,
though, will be a big help. I found another way (albeit, somewhat
hacked) to get the default max heap - if you keep setting the Xms
option higher and higher, it will error when you go above the default
max heap value. However, I never knew too much about the jconsole tool
- I think that it will be helpful for a lot of other monitoring stuff
that I need to do soon. Thanks again!
Aaron


|