This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Performance and the fly likes Allocate more memory for Heap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Allocate more memory for Heap" Watch "Allocate more memory for Heap" New topic

Allocate more memory for Heap

Ayan Dutta
Ranch Hand

Joined: Oct 16, 2005
Posts: 94
Is there any file inside JRE to mention the Xmx and xms parametre values ,so that I don't have to pass the parametres as command line arguements ?
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24189

Start your program using a batch file (Windows) or shell script (UNIX), and include those parameters in the script.

[Jess in Action][AskingGoodQuestions]
It is sorta covered in the JavaRanch Style Guide.
subject: Allocate more memory for Heap
It's not a secret anymore!