I have a class that run infinit (do nothing, just loop and sleep), called NeverReturn. I try to run it using following command in Windows XP 32bit:
java -Xms1200M NeverReturn
I find with the command I can create only 4 java instance at same time. The 5th and next java command will failed to create jvm.
If I change the command to -Xms600M, I can create 8 java instance. The 9th will failed.
Could anyone explain that? I'm using sun jdk1.6 update 23 and jdk1.5 update 22.