Sagewire Logo

Display Default Heap Size

4 Message(s) by 3 Author(s) originally posted in java machine


From: apiccirilli Date:   Wednesday, September 20, 2006
Hi all -

I have scoured the internet for this and can not find any helpful
information. Is there any way for the JVM to display the default
maximum heap size on a system? I can not seem to figure out what it is
using as its maximum value, if I do not manually override it with -Xmx.

Any help'd be really appreciated.

Thanks -

Aaron


From: Ian Shef Date:   Wednesday, September 20, 2006
wrote in message in
@xxxxxxxxxxx:

Hi all -
I have scoured the internet for this and can not find any helpful
information. Is there any way for the JVM to display the default
maximum heap size on a system? I can not seem to figure out what it is
using as its maximum value, if I do not manually override it with -Xmx.
Any help'd 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.htmlIf you do not 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 *


From: apiccirilli Date:   Wednesday, September 20, 2006
wrote in message:
wrote in message in
@xxxxxxxxxxx:
> Hi all -
>
> I have scoured the internet for this and can not find any helpful
> information. Is there any way for the JVM to display the default
> maximum heap size on a system? I can not seem to figure out what it is
> using as its maximum value, if I do not manually override it with -Xmx.
>
> Any help'd 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 do not 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 are not of too much help
I'm afraid - the machines I'm working with are on an academic cluster,
and the JVMs aren't 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'll error when you go above the default
max heap value. However, I never knew too much about the jconsole tool
- I think that it'll be helpful for a lot of other monitor ing stuff
that I need to do soon. Thanks again!

Aaron


From: IchBin Date:   Wednesday, September 20, 2006
wrote in message:
wrote in message in
@xxxxxxxxxxx:
Hi all -

I have scoured the internet for this and can not find any helpful
information. Is there any way for the JVM to display the default
maximum heap size on a system? I can not seem to figure out what it is
using as its maximum value, if I do not manually override it with -Xmx.

Any help'd 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 do not 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.



If you want to monitor look at jconsole.exe

It resides your JAVA's install bin subdirectory.:
--
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)



Next Message: Exist JAVA for ARM microprocessors


Blogs related to Display Default Heap Size

Java/J2ee Interview Companion
very large array, and you know the size in advance then you can speed things up by setting the initial ... cloning of objects by default when a class implements the java.lang. ... How does Java allocate stack and heap memory? Explain ...

java 命令1
-Xms<size> set initial Java heap size -Xmx<size> set maximum Java heap size ... 不生成帮助链接-nonavbar 不生成导航栏-quiet Do not display status messages to screen ... and members (default) -private Show all classes and members ...

Java Service Wrapper with IDI
Is there somebody in this NewsGroup with experience using Java Wrapper with IDI? ... Size is specified in bytes. The default value # of 0, disables log rolling. ... Name of the service wrapper.ntservice.name=IDI_gdisagent # Display name ...

Setting up an OpenGrok Server
It runs inside an "applet container" — basically a Java web server. ... OpenGrok will still be able to find and display things most of the time. ... Also, I had to increase the JRE's heap size for running the indexer: Add "-Xmx200m" as ...

使用wrapper将java程序包装成NT Service程序
Initial Java Heap Size (in MB) #wrapper.java.initmemory=3. # Maximum Java Heap Size (in ... the log is rolled. Size is specified in bytes. The default value ... Display name of the service wrapper.ntservice.displayname=我的Echo服务程序 ...

.Net Faqs
Default security policy has been changed so that assemblies assigned by the common ... store a reference to the value's memory address, and are allocated on the heap. ... however, you can add it to the Toolbox and display it in a visual ...


Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional