LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Tuning for CPU usage

Reply
 
Thread Tools Display Modes
  #1  
Old 06-12-2006, 06:14 PM
alex alex is offline
Senior Member
 
Join Date: Jan 2006
Posts: 51
Default Tuning for CPU usage

We are running into a definite CPU bottleneck, the IO and memory seem to be holding up fine. Are there any specific settings that can be tweaked to improve this?
Reply With Quote
  #2  
Old 06-12-2006, 06:44 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
lshttpd should consumes little CPU cycles, the rest should be taken by PHP processes. So, you need to focus on PHP tuning, like using opcode caching if it has not been used yet. Also, try finding vBulltin add-on modules which can improve performance.
Worst case, add more hardware. :-) Our load balancer will be ready soon.
Reply With Quote
  #3  
Old 06-13-2006, 01:54 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
just curious:
where will the load-balancer kick in? separate software in front of a couple of lsws servers or simply included in them?
Reply With Quote
  #4  
Old 06-13-2006, 09:29 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
alex, based on your last php.ini configuration, you should think about using op-code caching like mistwang suggested. For php 4 code, I would highly recommend eacclerator.co.uk. Note when installing, make sure you disable "code optimization", only enable the caching part of eAcc.

Opcode caching can drastically improve php's cpu usage.

Another sure thing is also to upgrade to the latest vBulletin build.
Reply With Quote
  #5  
Old 06-14-2006, 09:48 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
ts77,

The load balancer is a standalone server in front of a web server farm.
Reply With Quote
  #6  
Old 06-21-2006, 11:05 PM
alex alex is offline
Senior Member
 
Join Date: Jan 2006
Posts: 51
Eaccelerator worked...oh my god did it work
Reply With Quote
  #7  
Old 06-22-2006, 12:01 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
alex, any measures of that?
Reply With Quote
  #8  
Old 06-22-2006, 12:14 AM
alex alex is offline
Senior Member
 
Join Date: Jan 2006
Posts: 51
Prior to installing eaccelerator last night top was showing 100 (where they were set to give a "server too busy" message). This was happening at about 2200 simultaneous users.
Today we made it to 2450 users, I never saw load go over 40 and most of the time it was around 20-30
Reply With Quote
  #9  
Old 06-22-2006, 06:40 AM
Xorlev Xorlev is offline
Senior Member
 
Join Date: Nov 2005
Posts: 58
I recommend APC over Eaccelerator, but eh, if it works. Even so with such concurrency it'd be recommended to upgrade to a more powerful server. I'd recommend an Opteron, as they're rather leading the server market in price/performance ratio.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
unusually high cpu usage by lshttpd babelian Ruby/Rails 14 11-07-2007 01:03 PM
Ruby Rails tuning - traffic bursts gwhite Ruby/Rails 6 03-26-2007 02:23 PM
litespeed plus rails memory usage Shelby Ruby/Rails 1 02-08-2007 05:53 PM
Expected memory usage? subBlue Install/Configuration 4 10-20-2006 02:39 PM
excessive RAM usage stingreen Install/Configuration 2 12-13-2004 06:32 PM


All times are GMT -7. The time now is 02:55 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.