This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OutOfMemoryError

 
martin klima
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When running my Java application, JVM often causes an OutOfMemoryError with message "Java heap space". This application needs about 100MB of memory, I run it on WinXP platform with 1GB memory installed. How can I prevent this error? Can I somehow extend the heap space used by my application? Thank you in advance.
 
David Ulicny
Ranch Hand
Posts: 724
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use -Xmx and -Xms switches from command line.

java -Xms256M -Xmx512M yourClass

check java -X

-Xmx maximum heap size
-Xms initial heap size
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic