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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > High traffic website / high server load

Reply
 
Thread Tools Display Modes
  #1  
Old 07-09-2009, 07:07 AM
muiruri muiruri is offline
Member
 
Join Date: Jun 2008
Posts: 44
Default High traffic website / high server load

We have a high traffic website, with about 5+ million hits per day.

What's the most recommended settings / parameters for;

http://www.litespeedtech.com/php-litespeed-sapi.html

Currently we have;

PHP_LSAPI_MAX_REQUESTS=50000
PHP_LSAPI_CHILDREN=50
LSAPI_MAX_IDLE_CHILDREN=60

And also;

Max Connections = 50

MySQL is optimized via my.cnf and using LSWS cache.

The server load is very high and website keeps on hanging.

When we change;

PHP_LSAPI_CHILDREN=200

website works, but server load gets worse.

When we check under our WHM/Cpanel -> Show MySQL Processes

We notice database connections for this site are so many and in sleep mode, then under time column appears to stay there for long.

This started last week therefore believe it's a PHP scripting issue on this site.

However, I'm wondering from the server side what settings above can we use to help database connections not stay open endlessly? And also best figures for parameters above that handle high traffic sites well?

Or is there anyone with high traffic sites? What parameters are you using?
Reply With Quote
  #2  
Old 07-10-2009, 12:55 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
I think you need to work on the MySQL DB side, the bad performance is usually caused by bad SQL query or missing table index in the DB.

When the site is slow, in addition to slow query log, you can check "mysqladmin processlist" output, it will show which query blocks all other requests. Then find a way to optimize those SQL queries.
Reply With Quote
  #3  
Old 08-03-2009, 03:49 PM
muiruri muiruri is offline
Member
 
Join Date: Jun 2008
Posts: 44
At LSWS setup, at Server -> Cache -> Cache Storage Settings

The box for "Storage Path" uses a directory entry.

If we wanted to use hard drive space of our second cpanel server (a much faster 15k RPM drive) do we need to find a way to map space on that drive as one of the partitions for the first cpanel server where we have LSWS?
Reply With Quote
  #4  
Old 08-03-2009, 04:36 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
You should use a local disk, NFS mount will not work very well.
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


All times are GMT -7. The time now is 09:12 PM.



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