This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Java in General and the fly likes java -Xmn and -Xmx options Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "java -Xmn and -Xmx options" Watch "java -Xmn and -Xmx options" New topic
Author

java -Xmn and -Xmx options

Karthik Veeramani
Ranch Hand

Joined: Dec 22, 2002
Posts: 132
I have a java application that runs on solaris and windows. Its started with java's -Xmn and -Xmx options, with values 64 MB and 128 MB respectively. On Windows, it is starting up with 20 MB, but on solaris, it starts up with a whopping 117 MB! And after a while, it reaches 180 MB, and goes down with OutOfMemory error. All this only on solaris and not on win2k.... The code is totally independent of the platform. Does any one have a clue what could be the reason?
Also, please help me understand what exactly the Xmn and Xmx options mean? Does this mean, there is a guarantee the max memory will not cross the value specified in Xmx?
Just an additional info, I used the 'top' command to monitor the mem on solaris. The virtual memory used for this process, during its startup is reported as 117 MB as I said.
This is very critical and urgent to me, so any help will be greatly appreciated.


Thanks<br />Karthik<br />SCJP 1.4, CCNA.<br /> <br />"Success is relative. More the success, more the relatives."
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java -Xmn and -Xmx options
 
Similar Threads
How to overcome OutOfMemory exception?
java -Xms and -Xmx options
suggestion regarding the maintainability of undo-redo states in image editing
Java Heap Size
How to increase Jar heap space in Linux