I get an error message “Exception in thread “Thread-7″ java.lang.OutOfMemoryError: Java heap space”. What is the problem?
The “java.langOutOfMemory : Java heap space”-message means that the memory allocated for Java has ran out. There are ways to increase the memory, but that isn’t really a solution for you as you can’t instruct all your site visitors to make this change just in order to view your presentation. What might cause the problem is the size of your textures, and how many of them you have in your project. The problem is not the file size, but the size in pixels (width and height). You can calculate how much memory your textures consume by using the below formula: ([Width in pixels ] * [Height in pixels] * [Number of images] * 4) / 1024 = [memory size in KB] If you texture has alpha channels, then you have to double the size. Another tip is to read the “3D Modeling” guide and the “3D Reference” manuals.
Related Questions
- I am getting the error "java.lang.OutofMemoryError Java heap space", Is there a way I can increase the memory for the program?
- Why do I get the error "java.lang.OutOfMemoryError: Java heap space" when I try to create a very large Image?
- I get an error when trying to build my project: java.lang.OutOfMemoryError: Java heap space?