ID: 18600 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Java related Operating System: Windows 2000 PHP Version: 4.2.3 New Comment:
I get the same problem; The way I reproduced it is: 1. load a page with a Java call; 2. press and hold the refresh button. 3. It will eventually fail. It seems that PHP is attempting to create a new JVM for each request (unfortunately, this is required for a cgi install; it shouldn't be for a SAPI install). My guess is that either Apache or PHP runs into resource limits (e.g. does not release the JVM after it completes the request; creates too many threads; etc...). It would probably be better if PHP used a JVM pool; this wouldn't make much difference in a cgi install, but would help SAPI installs. I have no idea whether this is feasible or not; I've never actually taken the time to give the source a looksy... Previous Comments: ------------------------------------------------------------------------ [2003-01-17 03:56:29] [EMAIL PROTECTED] Hi all, How my servlet will call my php program. Any pointer appreciated. Surendra. ------------------------------------------------------------------------ [2003-01-08 17:14:33] [EMAIL PROTECTED] I HAVE A NEC 95 WINDOWS NOTEBOOK AND CANNOT INSTALL THE JAVA VIRTUAL MACHINE PLUG IT COMES BACK AND TELLS ME THIS THE PUBLISHERCANNOT BE DETERMINED DUE TO TO PROBLEMS AND THIS AS WELL TRUST PROVIDER IS UNKNOWN OR NOT CONFIGURED PROPERLY CAN U PLEASE TELL ME WHAT I CAN DO TO REMEDY THIS?????? THANK YOU PETER FIORE. ------------------------------------------------------------------------ [2003-01-07 03:51:23] [EMAIL PROTECTED] THANKS TO [EMAIL PROTECTED] , The solution to resolve "Unable to Create Java Virtual Machine" is to configure APACHE or IIS not using sapi for php but CGI THANKS THANKS THANKS go there for configuration http://hotwired.lycos.com/webmonkey/00/44/index4a_page9.html?tw=programming ------------------------------------------------------------------------ [2002-12-12 09:19:13] [EMAIL PROTECTED] Hi there, I'm confirming Cédric's knowledge - java is running correctly from within PHP on Apache only when PHP is running as a CGI and not as a SAPI module. When running PHP as Apache SAPI Module after the restart Apache only fist access to php page using java is running OK, all next reloads of this page caused "Fatal error: Unable to create Java Virtual Machine in ..." I think this could be still not solved bug. Thanks Alberto BTW I'm running on: OS:Win2000 Server SP2 Apache:1.3.27 PHP Version 4.3.0-dev (Build Date Dec 12 2002 10:14:28) Java version=1.4.1_01 Java vendor=Sun Microsystems Inc. ------------------------------------------------------------------------ [2002-12-06 05:06:27] [EMAIL PROTECTED] Hi, using "cgi-bin instead of as a module" hm,isn't this a performance and computer resources issue ? Thx Alberto ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/18600 -- Edit this bug report at http://bugs.php.net/?id=18600&edit=1