RE: CPU usage @5% during 2 minutes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> >How any rows are you pulling from the database?  
> aprrox. 12.000 but there are only around 50-100 new rows at a maximum
> within a day, and there were almost as many before the 
> problem appeared.

You're creating a form with over 12,000 options in a select statement?


> >
> >What's the very last part of the code:  .$_OR?> 
> 
> There is a switch, some echoes and a db_close;

Maybe the ._OR at the end of your echo is just a copy / paste issue.

> >Have you tried this code in a separate script to test it's 
> performance
> >individually?
> Yes, then it performs good.
> This seems to be strange and irrelevant to me, because placing a 
> $tmpsting .= microtime()."<br>\n"; into each loop and then echoing it
> shows, that there are randomly processing gaps between two cycles when
> running as a part of the whole.

Have you tried to increase the amount of memory available to this script?

-Ed

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux