Previous Thread
Next Thread
Print Thread
Hop To
#168489 11/17/2006 5:15 PM
Joined: Nov 2006
Posts: 1
R
stranger
stranger
R Offline
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.


Ryan_K #168493 11/17/2006 7:53 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
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?

Rick #168498 11/17/2006 8:25 PM
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?


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
David Dreezer #168510 11/17/2006 10:27 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
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.

Rick #168693 11/21/2006 12:14 PM
Joined: Nov 2006
Posts: 1
C
CJL Offline
stranger
stranger
C Offline
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

Ryan_K #245182 08/25/2011 12:53 PM
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?


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Ryan_K #245185 08/25/2011 5:59 PM
Joined: Jun 2006
Posts: 81
M
member
member
M Offline
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.


Ryan_K #246068 09/28/2011 10:16 PM
Joined: Nov 2006
Posts: 31
M
newbie
newbie
M Offline
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

Ryan_K #246069 09/28/2011 11:59 PM
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

Ryan_K #246071 09/29/2011 12:59 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
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.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Ryan_K #246072 09/29/2011 1:10 AM
Joined: Nov 2006
Posts: 31
M
newbie
newbie
M Offline
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!

Ryan_K #246073 09/29/2011 1:18 AM
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
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


MegaWhizz #246074 09/29/2011 5:14 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
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).



I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Ryan_K #246075 09/29/2011 7:45 AM
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. smile

Dunny

Ryan_K #246119 09/30/2011 7:16 PM
Joined: Nov 2006
Posts: 31
M
newbie
newbie
M Offline
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?


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
1 members (1 invisible), 879 guests, and 150 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)