Skip to main content
GameDev.net gamedev.net
🔒 Locked

[java] OutOfMemoryError, heap

Started by AbelCorver Feb 23, 2008 at 1:22 PM 1 replies 550+ views
Original Post
AbelCorver
AbelCorver
Hy again, I have a big problem. I have to load a 3d world, but this requires a lot of memory. I always get OutOfMemoryError's. What is your maximum? The strange thing is that my program just uses about 70 MB RAM. I have an other java test program, which reaches a memory of 120 MB RAM. Why do I get the OutOfMemoryError and the other application not? Thanks in advance!
Angex
Angex
If you have debugged your app to make sure it is not because of an error; some kind of infinite loop or recursion making lots of objects...

You could try increasing the default amount of memory available, by using the -Xmx command when running your app.
AbelCorver
AbelCorver
Thanks a LOT man!!!! I didn't know that you can request more memory. THANKS again!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.