When developing Java applications you sooner or later might run into a situation where Java does not have enough heap space. The main to reasons are: your application has a memory leak, or it really needs a lot of memory. This is often the case when you develop J2EE apps. To assign java more memory to avoid the following error message:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

you can assign more memory by setting:

java -Xms -Xmx

The default values are:

java -Xms32m -Xmx128m

To increase the heap space you can either use the Java Control Panel or the command line.


COMMENTS / ONE COMMENT

sollte man nicht eher sein Memory Leck finden und beheben,..?

Benny added these pithy words on Sep 02 11 at 6:45

SPEAK / ADD YOUR COMMENT
Comments are moderated.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Return to Top

How-To increase the Java Heap Space

FRESH / LATEST POSTS

TAG / CLOUD

.NET Blog Börse Canada Cisco codecs Driver Eclipse fotografie Fun Games gaz How To internship Intership J-1 Java JavaScript Mac Microsoft modelltechnik News Nvidia OSX Palo Alto Photo Plugins Praktikum SAP Software Travel Trouble USA Videos vista Visual visum volga VPN Web Web Services Windows Wordpress XP Zitate