ID: 20270
  Comment by: tjw@webteam.net
  Reported By: luci@conexim.com.au
  Status: Open
  Bug Type: Java related
  Operating System: RHL7.3
  PHP Version: 4.3.0-pre2
  New Comment:

I get the same result using:

Linux 2.4.19
glibc 2.3.1
pthread 0.10
php 4.3.0RC1
apache 1.3.27
Sun's j2sdk1.4.0_03

Previous Comments:

[2002-11-14 08:57:14] tjw@webteam.net

There seems to be a problem with the way threads are handled between
php and java that keeps the apache child process from cleaning up after
itself. If MaxRequestsPerChild is set to anything other than 1, a
number of threads are started by a httpd child and are never reused.
It also appears that the httpd child process that spawns these threads
can not be reused by apache and the httpd controlling process never
starts another child process to take the place of the disabled one.

My testing setup is:
Linux 2.4.18
glibc 2.2.5
apache 1.3.27
libpthread 0.9
php 4.2.3

Blackdown JDK 1.3.1, IBM JDK 1.3..1, Blackdown JDK 1.4.1b2 all produce
the same results.

It should be noted that apache is stable if MaxRequestsPerChild is set
to 1, but there's quite a performance hit involved.


[2002-11-05 18:20:09] luci@conexim.com.au

I have tried to use the Java extension with JDK1.4.1 and PHP 4.2.3 and

Each time a page with embedded Java runs, the Apache (1.3.27) spawns
MaxSpareServers processes, which never seem to get cleaned up.

The tests I conducted with 4.2.3 ended up crashing after a few runs,
being unable to run the JVM. This version also had trouble reading
php.ini class path settings.

The 4.3.0-pre2 seems to stop spawning processes after reaching about 90
httpds (not sure what this number is related to). The execution time of
the code is much faster after the spawning stops also - probably the
JVMs are loaded for all httpds?

Is there a way to control this process spawning and to get the whole
thing more stable?


Edit this bug report at http://bugs.php.net/?id=20270&edit=1

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 5 | next ›
Discussion Overview
groupphp-bugs @
postedNov 6, '02 at 12:20a
activeDec 4, '02 at 8:18a

4 users in discussion

Tjw: 2 posts Sebastian: 1 post Chregu: 1 post Luci: 1 post



site design / logo © 2022 Grokbase