A few weeks ago I had to change my local PC at one of our customers, after few years of developing with JDeveloper 10.1.3.3 .
Of curse, not everything runs smoothly…
I got an error (which apparently is a very common one) that says:
“unable to create an instance of the java virtual machine located
at path:..\..jdk\jre\bin\client\jvm.dll”
The most common solution I found is:
Edit the file dev.conf file located on $JDeveloper_home\jdev\bin and Reduce the value of AddVMOption -Xmx parameter.
If the value was set to -Xmx512M, chnage it as follows:
Set
AddVMOption -Xmx256M
or
AddVMOption -Xmx128M
BUT, it was brought to my attention by Ronen Wolf (Oracle Fusion Middleware Sales Consulting Manager), that reducing this parameter can cause a series performance issue.
I’ve tested a little bit more and found out that I can leave the parameter AddVMOption -Xmx as is (and even increase it to 756) and just reduce the value of AddVMOption -XX:MaxPermSize to 128.
Working…Developing…Deploying with no problems.
So to summerize, here are the new values:
AddVMOption -Xmx756M
AddVMOption -XX:MaxPermSize=128M
I couldn’t find a dev.conf file, I’m running Windows 7 32 bit (on a 64 bit machine). I’d been using JDeveloper (10.1.3.3.0) daily. But this morning, I got the error.
I did find jdev.conf, with -Xmx512M and XX:MaxPermSize=160M, and ojaudit.conf, with -Xmx512M and XX:MaxPermSize=128M, and ojc.conf, with -Xmx512M and XX:MaxPermSize=128M.
While puzzling over this, I decided to break and work on something else. I went to one of the company’s web-based applications, which popped up the java console (Java Plug-in 1.6.0_45, Using JRE version 1.6.0_45-b06 Java HotSpot(TM) Client VM), so it must use java. For giggles and grins, I then tried JDeveloper again. It started up just fine.
I don’t recall if I’ve ever tried starting it first before. I would guess that I had. Working on JDeveloper, of late, is generally the first thing I do after checking email in Outlook.
Hello Arik Lalo,
Thank you for your proposal because it works very well thanks to you I solved my problem, thank you very much.
benh
Thanks!!!
Thank you, very much. It was perfect for me!!!
Thanks you,
Great
Add jdev64W