• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.OutOfMemoryError

 
Pete Low
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I was doing a compilation and the following msg appears :


The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError

Any ideas how I can solve this?
 
Arjun K
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pete,

OOME during compile time comes only when JVM doesn't have enough Virtual Memory to do compilation.

Try increasing the heap and stack sizes with -J-Xms, -J-Xmx, -J-XX:NewSize,
-J-XX:MaxNewSize VM options.



HTH,
Arjun K.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic