I have a Java program to run on Solaris 10 X86 with 2 GB physical memory and 2 GB change.
The program works fine on a 64-bit version of Linux, it consumes only about 450 MB of memory.
However, when it launches on Solaris, it always raises an OutOfMemoryError, and I noticed that just before the error occurred, he tried to use> 4 GB of virtual memory, which is definitely not possible on a 32-bit system.
So why is the JVM trying to use this large virtual memory? Is there any way to tell the JVM not to use this large virtual memory?
Thanks.
Edit:
Thanks everyone! Here is the complete error message:
#
user972946
source share