PHP 4.0 Bug #6021: Script is getting killed although it doesn't consume very much memory

From: Date: Tue, 08 Aug 2000 13:26:52 +0000
Subject: PHP 4.0 Bug #6021: Script is getting killed although it doesn't consume very much memory
Groups: php.dev 
Request: Send a blank email to php-dev+get-28094@lists.php.net to get a copy of this message
From: juhl@eisenstein.dk Operating system: Slackware Linux 7.0 PHP version: 4.0 Latest CVS (08/08/2000) PHP Bug Type: Other Bug description: Script is getting killed although it doesn't consume very much memory After upgrading to latest CVS I'm getting errors due to the memory limit that I've not encountered before. Even small scripts (that worked perfectly with PHP 4.0.0) are now getting killed when theyt hit my mem-limit of 25MB. I think something is leaking memory since I do not get this error for about the first hour after restarting Apache, but after aproximately 1 hour the scripts start to crash with this message: Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 256 bytes) in Unknown on line 0 Running "top" or "ps" shows no processes using huge amounts of mem, and each httpd process is consuming about 3% of my 128MB RAM each time they run. Restarting apache makes the problem go away again for about half an hour to an hour. I'm running Slackware Linux 7.0, Apache 1.3.12, PHP 4.02-dev (php4-200008080345). PHP was configured like this: ./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs --with-config-file-path=/etc/httpd --enable-calendar --enable-trans-sid --enable-versioning --enable-track-vars --with-gd --with-jpeg-dir --with-tiff-dir --with-png-dir --with-ttf --with-zlib-dir --enable-memory-limit=yes --with-openssl --disable-debug Best regards, Jesper Juhl

« previous php.dev (#28094) next »