Re: low memory problems (causes a crash)

Posted by slajar on
URL: https://forum.jogamp.org/low-memory-problems-causes-a-crash-tp4032466p4032482.html

well, I am also stuck to 32 bits :) That mean we can only use until 1536MB java heap. Normally I can only use 1024MB. 1536M doesn't initialize the JRE due to a 32-bit adress space lag. That mean that native heap is also pretty close to low memory. I am not sure how to build a test case for this ;)


I would have to eat up almost the entire native heap. Probably init JRE with 1024MB and after that through JNI I would have to allocate hundreds of megabytes by small portions of let's say 8MB until I get an malloc/new error. After that I have the situation where no memory is left for OpenGL/JOGL native calls.

Any ideas how to put it in a good JUnit test?