FAQ
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:

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.


Previous Comments:
------------------------------------------------------------------------

[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
4.3.0-pre2.

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

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 5 | next ›
Discussion Overview
groupphp-bugs @
categoriesphp
postedNov 6, '02 at 12:20a
activeDec 4, '02 at 8:18a
posts5
users4
websitephp.net

4 users in discussion

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

People

Translate

site design / logo © 2022 Grokbase