File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Heap Size

 
Jeff Gent
Ranch Hand
Posts: 44
Eclipse IDE IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a difference or a preferred method for specifying the heap sizes?

or

 
Chris Janicki
Greenhorn
Posts: 21
Mac OS X Netbeans IDE Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic