Bug #693: Apache process runs out of control

From: Date: Tue, 25 Aug 1998 13:44:34 +0000
Subject: Bug #693: Apache process runs out of control
Groups: php.dev 
Request: Send a blank email to php-dev+get-567@lists.php.net to get a copy of this message
From: jase@sensis.com Operating system: Solaris 2.6.1 PHP version: 3.0.3 PHP Bug Type: Oracle related Bug description: Hello. It seems that after I access a page with using oracle access several times, the next time I run a cgi script, the server process goes out of control, using all the cpu. (See bugs 375 and 450). I think it is Oracle related. It only happens after I have accessed a page which talked to our oracle database. I finally had some time to look into this last week, and I have a hack which seems to have fixed the problem. Doing a truss on the process, it seems that there are lots of SIGCHLDs going to it. (I can give send the output of this if you like.) So, in the file main.c, at the ttop of the function php3_parse (about line 1427), I added the following line: signal (SIGCHLD, SIG_DFL); I'm not much of a unix programmer, but I have played around with it before. After adding the line above, it fixed my problems. I don't know where the problem really is, though. Is it a problem with php? apache? the oracle libraries? Will my fix above break anything else? (it hasn't so far). I'm running apache 1.3.1 and php 3.0.3. My configure script for php is below: ./configure --with-shared-apache=../apache_1.3.1 --with-oracle=/opt/oracle7 --enable-track-vars --with-system-regex Thanks. -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#567) next »