Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
0 registered (), 31 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 88
Top Posters (30 Days)
Ruben 49
DennyP 24
Gizmo 24
Dunny 17
SteveS 14
AllenAyres 12
dbremer 10
SD 9
drkknght00 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 2 1 2 >
Topic Options
#168489 - 11/17/06 04:15 PM CPU Usage
Ryan_K Offline
stranger
Registered: 11/17/06
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.
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#168493 - 11/17/06 06:53 PM Re: CPU Usage [Re: Ryan_K]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
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?
Top
#168498 - 11/17/06 07:25 PM Re: CPU Usage [Re: Rick]
David Dreezer Offline

Pooh-Bah
Registered: 07/21/06
Posts: 2199
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?
_________________________
This thread for sale. Click here!
Top
#168510 - 11/17/06 09:27 PM Re: CPU Usage [Re: David Dreezer]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
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.
Top
#168693 - 11/21/06 11:14 AM Re: CPU Usage [Re: Rick]
CJL Offline
stranger
Registered: 11/21/06
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
Top
#245182 - 08/25/11 12:53 PM Re: CPU Usage [Re: Ryan_K]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
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?
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#245185 - 08/25/11 05:59 PM Re: CPU Usage [Re: Ryan_K]
Mike L Offline
journeyman
Registered: 06/05/06
Posts: 88
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.

Top
#246068 - 09/28/11 10:16 PM Re: CPU Usage [Re: Ryan_K]
MegaWhizz Offline
newbie
Registered: 11/10/06
Posts: 27
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
Top
#246069 - 09/28/11 11:59 PM Re: CPU Usage [Re: Ryan_K]
Dunny Offline
addict
Registered: 01/16/08
Posts: 458
Loc: DE USA
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
_________________________
Dunny

Removed link due to bleedover spammers

Dawn of Iskirra
Top
#246071 - 09/29/11 12:59 AM Re: CPU Usage [Re: Ryan_K]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
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.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#246072 - 09/29/11 01:10 AM Re: CPU Usage [Re: Ryan_K]
MegaWhizz Offline
newbie
Registered: 11/10/06
Posts: 27
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!
Top
#246073 - 09/29/11 01:18 AM Re: CPU Usage [Re: Ryan_K]
SD Offline
Registered: 04/19/07
Posts: 4055
Loc: SoCal, USA
prune old topics ( if you can )

that is the #1 hit on a system
#2 believe it or not is Private Messages
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#246074 - 09/29/11 05:14 AM Re: CPU Usage [Re: MegaWhizz]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
Originally Posted By: MegaWhizz
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).
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#246075 - 09/29/11 07:45 AM Re: CPU Usage [Re: Ryan_K]
Dunny Offline
addict
Registered: 01/16/08
Posts: 458
Loc: DE USA
I agree Gizmo, just offering things I had done once to reduce load on my servers here. smile

Dunny
_________________________
Dunny

Removed link due to bleedover spammers

Dawn of Iskirra
Top
#246119 - 09/30/11 07:16 PM Re: CPU Usage [Re: Ryan_K]
MegaWhizz Offline
newbie
Registered: 11/10/06
Posts: 27
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?
Top
Page 1 of 2 1 2 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33840 Topics
181693 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image