Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

CreateJavaVM fails with JNI_ENOMEM (-4) even though there is enogh memory

843829Dec 5 2007
Hi,

I am creating a VM on Win XP using JNI_CreateJavaVM. It fails when I add an option "-Xmx1024M", error code being JNI_ENOMEM (-4). It works with "-Xmx500M". The system has 2GB memory, other java processes (non-JNI) start without problems even with more than "-Xmx1024M".

Any ideas?

Bye,
Michael
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 2 2008
Added on Dec 5 2007
0 comments
191 views