File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Performance and the fly likes Default JVM Settings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Default JVM Settings" Watch "Default JVM Settings" New topic
Author

Default JVM Settings

Ritesh Agrawal
Ranch Hand

Joined: Jan 08, 2004
Posts: 74
Hi,

Does JAVA provide any command line utility to find out the default JVM settings for an installation. If yes, what is it? If no, is there any other way to find out the default JVM settings?

Thanks


Ritesh<br /> <br />SCJP 1.4<br />IBM Test 340<br />IBM AIX V4.0 Certified Professional<br /> <br />Right actions for the future are the best apologies for wrong ones in the past.<br />- Tyron Edwards
Walter Bernstein
Ranch Hand

Joined: Dec 19, 2007
Posts: 57
Which JVM settings do you mean?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
Take a look at the java.lang.System getProperties() method javadocs. This shows a long list of JVM related properties.

The getenv() method returns a Map of system environment properties as passed to the current JVM (if security settings allow) - if the settings you want are environment properties, look there.

Bill
Ritesh Agrawal
Ranch Hand

Joined: Jan 08, 2004
Posts: 74
Well, I am refering to default JVM settings like the default minimum Heap Size/ default maximum heap size etc. allocated when the JVM is started.

java.lang.System getProperties() doesn't give the heap size.

I am interested to find out the default JVM parameters/settings used by an Java application when it is invoked by the java command. I understand that the default JVM settings can be overridden by providing command line options likes -Xms -Xmx etc. I am looking for a command line utility (if any) or any other means to find out the default values if no overriding options are provided.

Thanks..
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
[Ritesh]: I am looking for a command line utility (if any) or any other means to find out the default values if no overriding options are provided.

I don't know of a programmatic solution - but have you tried looking in the documentation? Most of the default settings are described in the docs for the java command, or in pages linked from there.
[ December 26, 2007: Message edited by: Jim Yingst ]

"I'm not back." - Bill Harding, Twister
Ritesh Agrawal
Ranch Hand

Joined: Jan 08, 2004
Posts: 74
Thanks Jim. I got what I was looking for at the links provided by you.

Thanks again..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Default JVM Settings
 
Similar Threads
How to tell which port mySQL is running on?
Error while starting default server in WAS4.0 AE
Memory Leaks and OutOfMemory
got private variables :(
Tomcat admin service