File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes OutOfMemory Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "OutOfMemory Error " Watch "OutOfMemory Error " New topic

OutOfMemory Error

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1404
How can i solve the JVM OutOfMemory Error ?
Giju George
Ranch Hand

Joined: Jun 08, 2004
Posts: 333
Increase your jvm min and max heap size. On what environment are u running the java applications ??


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCEA
Wai Hung

Joined: Apr 15, 2004
Posts: 23
And be sure you don't have memory leak.
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9058
How many objects are you creating?

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1404
It may be more than 1000 objects
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Could you post the code that is causing the OutOfMemoryError?

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: OutOfMemory Error
It's not a secret anymore!