News:

Wondering if this will always be free?  See why free is better.

Main Menu

php.exe using 100% CPU ??

Started by jklapp, August 09, 2006, 02:07:00 AM

Previous topic - Next topic

jklapp

Lately I've noticed by machine periodically slowing down (almost freezing)... I checked the Task Manager and the php.exe is using around 90% (and sometimes 100%) of the CPU during these slow-downs ...

Is there a way to check this problem?

Thanks :)

TheGamer

Hi. SMF does not ever, ever run php.exe on your system.

jklapp

#2
That's not correct...

QuoteSMF 1.1 feature list
General
Uses PHP and MySQL.
Comprehensive template system.
Advanced permission and user management.
Supports multiple languages at once.
Open and well-documented source code.
Tracking of new and old unread topics, not just from your last visit.
Designed for optimal performance and scalability.
Multi-media output. (XHTML, XML, RSS, WAP)
Multi-language support from a large community.
Package manager that automatically installs or uninstalls mods (also known as hacks.)
Search:
Search the entire forum, a category/board or within a topic.
Search within your personal messages.

I monitored the Task Manager while I was navigating my site and yes, CPU activity on PHP.exe jumped.

H

There are no known occurences of SMF using 100% CPU.

Which versions of PHP and SMF are you running?

How many hits to your site per day?
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

jklapp

Quote from: huwnet on August 09, 2006, 04:42:13 PM
There are no known occurences of SMF using 100% CPU.

I'm not sure it's SMF that's causing the problem... Is there a way to check what is accessing PHP? (I haven't been able to find any kind of logs)

QuoteWhich versions of PHP and SMF are you running?

PHP Version 4.3.11   SMF 1.07

QuoteHow many hits to your site per day?

Around 350 a day

Also, thank you for responding :)

jklapp

I just upgraded to PHP 4.4.3 and I have the same thing :(

青山 素子

Quote from: jklapp on August 09, 2006, 02:07:00 AM
Lately I've noticed by machine periodically slowing down (almost freezing)... I checked the Task Manager and the php.exe is using around 90% (and sometimes 100%) of the CPU during these slow-downs ...

I see you are using Windows (and likely IIS then). Is PHP installed as a CGI, or ISAPI? I'm guessing CGI if php.exe is running. Try switching to ISAPI and see if the problem subsides.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


jklapp

I found the problem.... I had an old practice-site on my server running Enigma 1.x (YSE Version) and what happened was Spam blots found the site and was spamming the guestbook... There were thousands (if not tens of thousands) of Spam posts in the guestbook... It was unbelievable!!! After disabling the site everything turned to normal. :)

Yes, I was running PHP as a CGI, but I took your advise and changed it to ISAPI.... Thank you very much for your reply. :)

Advertisement: