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


Pete Low

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.

Any ideas how I can solve this?
Arjun K
Ranch Hand

Joined: Mar 09, 2005
Posts: 39

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.

Arjun K.
I agree. Here's the link:
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?