Re: Which PHP-script crashes my server?
| From: | dave | Date: | Tue, 19 Dec 2006 15:06:32 +0000 |
| Subject: | Re: Which PHP-script crashes my server? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246022@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi, you should check your php script for infinite loops, this is a
common problem in this cases.
Patrik Jansson wrote:
> Hi,
> You could enable server-status in Apache configuration then you should
> be able to wget server status
> each minute (30 seconds?) by a cron-job. When the server is going down,
> check that particular file. You
> might want the cron-job to store each result in a new file so the cron
> job doesn't overwrite the file when the
> server is up again. Just an idea...
>
> -Patrik
>
> Philipp Schwarz skrev:
>> Hi guys,
>>
>> I have a problem with my webserver. It is a server for me and some web
>> projekts of my friends. And there is one PHP script which kills the
>> whole server, but I do not know which one it is. When the server is
>> going down one apache process uses 99% CPU and memory. In this case I
>> can only reboot the server.
>>
>> I would look up the file in the apache logs, but the script is started
>> some minutes before the server goes down and there are some hundred
>> requests per minute.
>>
>> Can anyone help me?
>>
>> Thank you!
>>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFh//4GPhC6XW20oARAibSAJ9bNH+g8Uwi63gR0TQRNbiGFLo+hgCaAtrF
rJtxVY9pZliO2zPY18WlJJ8=
=mHxG
-----END PGP SIGNATURE-----