Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Machine > Re: Display Def...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 718 of 803
Post > Topic >>

Re: Display Default Heap Size

by apiccirilli@[EMAIL PROTECTED] Sep 20, 2006 at 01:11 PM

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




 4 Posts in Topic:
Display Default Heap Size
apiccirilli@[EMAIL PROTEC  2006-09-20 12:16:40 
Re: Display Default Heap Size
Ian Shef <invalid@[EMA  2006-09-20 19:52:43 
Re: Display Default Heap Size
IchBin <weconsul@[EMAI  2006-09-20 17:48:39 
Re: Display Default Heap Size
apiccirilli@[EMAIL PROTEC  2006-09-20 13:11:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 2:49:45 CDT 2008.