|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6617 JVM starts only on 3 requests per httpd
Submitted: 2000-09-07 18:25 UTC Modified: 2002-01-13 23:26 UTC
From: paul dot schaap at dingoblue dot com dot au Assigned:
Status: Closed Package: Java related
PHP Version: 4.0.4pl1 OS: LinuxPPC 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
41 + 18 = ?
Subscribe to this entry?

 [2000-09-07 18:25 UTC] paul dot schaap at dingoblue dot com dot au
As per Bug id # 6122

./configure     --with-mysql=/usr/local                                  \
                --with-java=/usr/local/java/j2sdk1.3                     \
                --with-sybase=/usr/local/freetds                                        \
                --with-apxs=/home/internet/www02/bin/apxs                                 \
                --enable-shared                                          \

Using Blackdown JDK 1.2.2
And a modified JDK 1.3 - modified as the lack of HotSpot caused .so load failures !!

From php.ini

The jver.php test script

  $system = new Java("java.lang.System");
  print "Java version=".$system->getProperty("java.version")." <br>\n";
  print "Java vendor=".$system->getProperty("java.vendor")." <p>\n\n";
  print "OS=".$system->getProperty("")." ".
              $system->getProperty("os.version")." on ".
              $system->getProperty("os.arch")." <br>\n";

  $formatter = new Java("java.text.SimpleDateFormat",
                        "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz");

  print $formatter->format(new Java("java.util.Date"))."\n";


The first 3 runs work correctly then the fourth through (approx) seventh fail and there is 1 more success followed by failure. Apache must then be killed manually.
The error text is :-
error: Fatal error: Unable to create Java Virtual Machine in ...

I noted's comment to use Tomcat, I'm off in that direction now, but I would prefer this method.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-07 11:01 UTC]
Can you please ugrade and give feedback if it now works/still fails.

 [2001-01-16 20:47 UTC] paul dot schaap at dingoblue dot com dot au
Hi James,

Still failing, but on the 7th request.

 [2002-01-11 16:46 UTC]
How does this behave under PHP 4.1.1?
 [2002-01-13 23:26 UTC] paul dot schaap at dingoblue dot com dot au
This now works in 4.1.1
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Jan 20 08:03:48 2022 UTC