File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes how to increase/decrease the heap size in java in windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to increase/decrease the heap size in java in windows " Watch "how to increase/decrease the heap size in java in windows " New topic
Author

how to increase/decrease the heap size in java in windows

chaitanya krish
Greenhorn

Joined: Apr 24, 2012
Posts: 8
hi,

I want to increase the heap size manually in jvm. How can i increase/decrease the heap size in windows and if we used in eclipse IDE then how can i reduce jvm heap size?
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

To do it on the command line, you use -Xmx, for example -Xmx512m to make the max size 512 MB.

To do it in Eclipse, check out Eclipse's docs or help function, or look through its settings for running a program.
chaitanya krish
Greenhorn

Joined: Apr 24, 2012
Posts: 8
thanks for the reply. I changed the size in eclipse.ini file . now its working

Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

Cool, glad you got it working. I'm surprised you had to edit the .ini file though. I'd have thought it would be something in the GUI under Preferences or Options or whatever.

Or are you talking about the heap size allocated to Eclipse itself? (I've been thinking you were talking about the heap that is given to your program when you run it in Eclipse.
Prabaharan Gopalan
Ranch Hand

Joined: Oct 16, 2009
Posts: 66

The .ini file is for the JVM to start Eclipse. Typically, if we have a lot of plug-ins that are loaded during start up, Eclipse often tank with a OOME. As to the application's JVM, we can edit it in the 'Run Configurations' options and pass any standard JVM parameter to it.


Googling doesn't make you a genius. But not Googling makes you dumber.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to increase/decrease the heap size in java in windows