Saturday, January 4, 2014

Unable to create an instance of Java Virtual Machine, jvm.dll

Unable to create an instance of Java Virtual Machine, jvm.dll


At the end of installation for Oracle JDevloper Studio 12c, you get option to launch the studio. For me, the launch of Jdev studio failed with below error.


Unable to create an instance of the Java Virtual Machine Located at Path <<JDK_HOME>>\hre\bin\client\jvm.dll










On some research, the cause was suspected to be one to the following two-

1.       Low Max Heap Size i.e. Xmx

2.       High Max Perm Size i.e. -XX:MaxPermSize


The above parameters are defined in JDEV_HOME\bin location in jdev.conf file- C:\Oracle\Middleware\Oracle_Home\jdeveloper\jdev\bin\jdev.conf


In my case, the Xmx parameter was not even present in my jdev.conf, hence I decided to try reducing the PermSize to see if it works.


Ø  Original PermSize:

AddVMOptionHotspot -XX:MaxPermSize=320M


Ø  New modified PermSize:

AddVMOptionHotspot -XX:MaxPermSize=128M


Voila!.. JDev studio launched successfully.

Continue to SeeITwithSanjay.


Updated on 14th Jan 2014.


Recently I saw post on regarding the same issue wherein Arik, based on inputs from oracle sales person, has mentioned that reducing Xmx may rather causes issue. Hence you should only try to reduce permsize before taking any other action, to resolve the problem.

No comments:

Post a Comment