Click to See Complete Forum and Search --> : can\'t create java virtual machine?
nurikabe
12-14-2001, 08:57 AM
Skimming through the threads I notice a lot of people have had trouble getting PHP to call Java.
I\'m getting the same problem others are having: \"Fatal error: Unable to create Java Virtual Machine\" when calling a page two or three times consequtiveley.
Has anyone learned what the cause of this is?? Is this also a problem on Linux?
Thanks!
thiller
02-11-2002, 11:56 AM
I am having the same problem and have been trying to post a reply to get some attention on it from PHPBuilder members.
Here is what I've learned:
1. It only happens when PHP is loaded as a module, the CGI works fine.
2. As long as you keep requesting the page relatively frequently it (every few seconds) it works fine. Stop for 30 seconds or so and request and it doesn't work anymore.
3. Knowing this, I set the KeepAlive property in httpd.conf to FALSE to force Apache to kill the child process being used to handle that webpage right away. The page loads once, then doesn't anymore. I assume from this that the act of trying to unload PHP (and consequently the JVM) is failing. When another request comes along the system still finds the resident process and tries to use it. The JVM is corrupt, or can't go through its startup properly at that point.
Any thoughts would be appreciated. I am on Win2K with Apache 1.3.20, PHP 4.1.1, and JDK2SE 1.4-RC.
Tim
thiller@sandvine.com
I am having the same problem. I am using php4 with apache 1.3.20 and jvm1.4 on win 2000.
Puru
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.