Hi all

 

I continue to have problems with the CPU usage with MySQL and PHP under
IIS 5 (Win2000).  I recently rewrote our messageboards in PHP (from
ASP).  I now have both online separately, and if I look at the
processlist, the times on the ASP version rarely hit double figures, but
those on the PHP version often reach several hundred (wait and
inactivity timeouts are set to 300 - I thought this would stop it?!).

 

I am at a real loss as to why the processes are not being cleared.  I am
using a persistent connection at the top of the webpage, and every MySQL
query is ended with a 'mysql_free_result()' statement, including before
any redirects using the 'header' command.

 

Has anybody any ideas on why this can be?  I cannot find out how to tell
what is causing the long sleep period.

 

Many thanks

Gary

Reply via email to