This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes java.lang.OutOfMemoryError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java.lang.OutOfMemoryError" Watch "java.lang.OutOfMemoryError" New topic
Author

java.lang.OutOfMemoryError

Pete Low
Greenhorn

Joined: May 25, 2005
Posts: 10
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

Joined: Mar 09, 2005
Posts: 39
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.OutOfMemoryError
 
Similar Threads
OutOfMemoryError in Accessing CICS Transaction from JAVA in WebSphere 3.5
catalina.out and java.lang.OutOfMemoryError
catalina.out and java.lang.OutOfMemoryError
exception & loop
How Do I Find a Memory Leak?