File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JNLP and Web Start and the fly likes Heap Size Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Reply Bookmark "Heap Size" Watch "Heap Size" New topic
Author

Heap Size

Jeff Gent
Ranch Hand

Joined: Mar 24, 2011
Posts: 44

Is there a difference or a preferred method for specifying the heap sizes?

or

Chris Janicki
Greenhorn

Joined: Aug 30, 2006
Posts: 21

The second method is just more self-documenting, and certainly preferred if other people will need to see your code, or if there's a chance you may forget what "Xms" means someday. It's also slightly more stable, in case the command line flags ever change (unlikely). Lastly, your IDE may be able to validate the XML attribute name and values, where as the first version would most likely be ignored by the IDE and therefore up to you to sanity check the args.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Heap Size
 
Similar Threads
jnlp controle version
j2se tag with differents versions ????
java.lang.OutOfMemoryError: Java heap space
Assignment Expiration
How to specify a JRE range in jnlp file?