w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Java Out of Memory Error(Native memory), the process size limit was hit(32-bit linux)

print the memory size every minute, and found that the VmSize was 2924700 kB before the process died.

AFAIK On Linux the OS uses about 1 GB. You need virtual memory for thread stacks, shared libraries, Perm Gen, memory mapped files, and any native resources.

If you are getting anywhere near this limit (or if you just have a 64-bit processor) you really should be using a 64-bit OS and JVM. I would use Java 6 update 45, which is end of free support, if not Java 7 update 25.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.