Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Virtual Machine / September 2006

Tip: Looking for answers? Try searching our database.

Display Default Heap Size

Thread view: 
apiccirilli@gmail.com - 20 Sep 2006 20:16 GMT
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
Ian Shef - 20 Sep 2006 20:52 GMT
apiccirilli@gmail.com wrote in news:1158779800.453216.194170
@b28g2000cwb.googlegroups.com:

> Hi all -
>
[quoted text clipped - 8 lines]
>
> 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.

Signature

Ian Shef     805/F6      *    These are my personal opinions    
Raytheon Company         *    and not those of my employer.
PO Box 11337             *
Tucson, AZ 85734-1337    *

apiccirilli@gmail.com - 20 Sep 2006 21:11 GMT
> apiccirilli@gmail.com wrote in news:1158779800.453216.194170
> @b28g2000cwb.googlegroups.com:
[quoted text clipped - 29 lines]
> 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
IchBin - 20 Sep 2006 22:48 GMT
> apiccirilli@gmail.com wrote in news:1158779800.453216.194170
> @b28g2000cwb.googlegroups.com:
[quoted text clipped - 23 lines]
> 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.:

Signature

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-)



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.