|
Joined: Nov 2006
Posts: 1
stranger
|
stranger
Joined: Nov 2006
Posts: 1 |
Are any of you experiencing odd CPU usage with 7.0.1 version of the board
On my Windows 2003 3.4 GHz Pentium D 2 GB Ram.
php-cgi.exe ends up hitting files in the sessions folder like crazy, to the point where CPU usage is 100%.
The board was a upgrade install from 6.5. It was done on wednesday morning of this week.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Hmm, my test/devel site runs on a windows machine. The session files will be hit whenever a user requests a page, but that's definitely not the norm to take up that much CPU. Do you have a busy site? Can you give some info on your version of PHP and MySQL?
|
|
|
|
Joined: Jul 2006
Posts: 2,143
Pooh-Bah
|
Pooh-Bah
Joined: Jul 2006
Posts: 2,143 |
you don't mention the most important part of your questions.
Discs. IDE? SCSI? SATA? speed? Are they near full? If you're hitting sessions like crazy, and IF the disc access is slow, then the processor is waiting for the discs and yes, load will go up.
What other php scripts are running on that box?
Have you disabled one script at a time to identify which php script is the problem?
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
As a followup on this, we're working on this in a ticket. It appears to be a problem with PHP not clearing the session files.
|
|
|
|
Joined: Nov 2006
Posts: 1
stranger
|
stranger
Joined: Nov 2006
Posts: 1 |
I am also having terrible performance issues with PHP - so I am very interesting in hearing about the PHP session file problem. My UBBT pages are generated very fast, but get served very slow.
CJ
|
|
|
|
Joined: Jun 2006
Posts: 693
Addict
|
Addict
Joined: Jun 2006
Posts: 693 |
I realize this is an old thread but I didn't see any more recent discussion on this issue.
I'm having this same problem as well - my server is pegged with php-cgi processes taking up all the processor. I have oodles of disk space. Out of 2 gig of memory I still have 400mb open. So plenty of memory. Any idea what these processes are doing and how to work with this? The system is a 3GHz Pentium 4 running Windows Server 2003.
Are there PHP settings I need to tweak?
|
|
|
|
Joined: Jun 2006
Posts: 81
member
|
member
Joined: Jun 2006
Posts: 81 |
It is a typical sign of an active forum. And WOW, I think yours sets some kind of record for the number of categories and forums within each.
Disk space has little to do with it.
Are you noticing slow responses to http requests?
I take it you are on a dedicated server? A Pentium 4 is a bit dated, but can handle a good load. It might be that you are hitting it's limits if your site/forums are truly very active.
There are tweaks you might be able to do to MySQL to help out, but I am thinking that you might be bumping your head against a hardware limitation.
Others likely will have better input.
|
|
|
|
Joined: Nov 2006
Posts: 31
newbie
|
newbie
Joined: Nov 2006
Posts: 31 |
Hello community,
My busy forum is hitting the limits of CPU usage allowed for my VPS host, and they are pushing me to upgrade to a dedicated server. As I mull over the costs, I wanted to see if anybody has suggestions on what tweaks I can implement to reduce CPU usage.
Thanks!
MW
|
|
|
|
Joined: Jan 2008
Posts: 514
addict
|
addict
Joined: Jan 2008
Posts: 514 |
Have you disabled spider-friendly urls? I am not sure that the unread post count would cause CPU usage increase (or a reduction) but may be worth looking into..
Also look at your php.ini make sure that you have the memory allocation set at a reasonable rate...tweak some of that?
I am no expert, but these are things I do to minimize server load if nothing else.
Dunny
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
I wouldn't disable spider friendly urls if he's depending on search engine traffic on his site... Rick has an interesting article on speeding your filesystem through disabling aname on boot here I noticed a good 3-7% drop in io requests on my testing.
|
|
|
|
Joined: Nov 2006
Posts: 31
newbie
|
newbie
Joined: Nov 2006
Posts: 31 |
Yes, search engine traffic is important... but site uptime more so! I'm on a VPS so disabling aname is likely not an option.
I'm turning off spider friendly URLs, the calendar function, zlib compression, user moods, active text. Changing search to MySQL Full-text. # of unread posts is already off.
Any other thoughts/comments are welcome, thanks!
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
prune old topics ( if you can )
that is the #1 hit on a system #2 believe it or not is Private Messages
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Yes, search engine traffic is important... but site uptime more so! I'm on a VPS so disabling aname is likely not an option. Actually, you can on a VPS, since you have full root, your "virtual container" can still have it disabled (in fact, I'm on a VPS as well).
|
|
|
|
Joined: Jan 2008
Posts: 514
addict
|
addict
Joined: Jan 2008
Posts: 514 |
I agree Gizmo, just offering things I had done once to reduce load on my servers here. Dunny
|
|
|
|
Joined: Nov 2006
Posts: 31
newbie
|
newbie
Joined: Nov 2006
Posts: 31 |
The company's a little leery about losing old content to pruning... If I create an "Archive" section on the forum and move old content there, will that also help decrease CPU usage?
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
1 members (1 invisible),
879
guests, and
150
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|