php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20937 PHP binary randomly consumes from 300kb to 5Mb
Submitted: 2002-12-11 09:05 UTC Modified: 2002-12-11 12:04 UTC
From: garland_foster at fibertel dot com dot ar Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.2.3 OS: Win2000, MacOS
Private report: No CVE-ID: None
 [2002-12-11 09:05 UTC] garland_foster at fibertel dot com dot ar
You need advanced tools to test this: Windows Task Manager!

The PHP binary randomly cunsumes up to 5Mb of memory for no clear reason. When the whole application is loaded this leads
to binaries from 2Mb to 12Mb.
The script includes PEAR::DB (DB.php), connects to the database (MySQL) and dies.
Zillions of users are complainin about exhausted memory problems and we have to make them change the maximum memory size for PHP scripts in their php.ini settings.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-11 11:57 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

The memory usage will depend on the amount of data retrieved from the SQL server.
 [2002-12-11 12:04 UTC] garland_foster at fibertel dot com dot ar
No single line of code is executed, the script only does an include so the problem is indeed the size of the PHP binary which varies from 2 to 5mb without a reason.
 [2002-12-20 02:42 UTC] hchinhwa at yahoo dot com
Hi,

I am facing similar problem. There are multiple PHP binaries running in Windows (viewed from Windows Task Manager). The PHP server went dead when more requests came in when I was just running a simple index.php file. This file consisted of 7 include statments. Each included file did not even exceed more than 30 LOC in plain HTML.

Wrong PHP installation?
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Aug 01 10:00:02 2025 UTC