aspose file tools
The moose likes Beginning Java and the fly likes JVM memeory allocation Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "JVM memeory allocation" Watch "JVM memeory allocation" New topic
Author

JVM memeory allocation

Blikkies Marais
Ranch Hand

Joined: Jun 12, 2003
Posts: 48
Hi
I am trying to set the JVM memory allocation. I have tried:
java -Xms256m -Xmx512m
But I think I need to do:
java -Xms256m -Xmx512m myApp
but how do I know what myApp should be?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8290

"myApp" is supposed to be the full class name of the class where you have "public static void main(String args[])" declared.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Blikkies Marais
Ranch Hand

Joined: Jun 12, 2003
Posts: 48
How do I set the memory for my entire application?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8290

That sets up the memory for the entire VM and executes the main() method of the given class.
Blikkies Marais
Ranch Hand

Joined: Jun 12, 2003
Posts: 48
If you do not want it to execute any classes main method, is it possible?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8290

It wouldn't DO anything because the VM wouldn't run.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JVM memeory allocation
 
Similar Threads
OutOfMemoryError in weblogic
Out of memory error
SIGSEGV 11 / SIGABRT 6
Max No of Elements in Array?
Jboss Memory out of error when generating BIRT Reports