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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Performance Tuning

Reply
 
Thread Tools Display Modes
  #1  
Old 11-06-2008, 08:18 AM
zoom zoom is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
Default Performance Tuning

I'm trying to determine what would be a good configuration for a site getting on avg 12000 hits per day. I'm running on a VPS with 2GB memory with the LiteSpeed Enterprise version. Are the settings below acceptable?

Max Connections: 500
PHP_LSAPI_MAX_REQUESTS=500
PHP_LSAPI_CHILDREN=50

Memory Soft Limit: 500M
Memory Hard Limit: 550M
Process Soft Limit: 500
Process Hard Limit: 550

DDOS Settings:

Per Client Static Reqs/sec: 200
Per Client Dyn Reqs/sec: 200
Reply With Quote
  #2  
Old 11-06-2008, 09:41 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
change "Max connections" to "50", it must not be higher than "PHP_LSAPI_CHILDREN"

Your DDoS setting does not protect you from request flood at all, start from

Per Client Static Reqs/sec: 20
Per Client Dyn Reqs/sec: 1 or 2
Reply With Quote
  #3  
Old 11-06-2008, 11:34 AM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
What is the soft and hard limits under the Security tab?
Reply With Quote
  #4  
Old 11-07-2008, 05:07 AM
zoom zoom is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
anewday,

The Server Level settings for "External Application Resource" are as follows.

CPU Soft Limit (sec): 300
CPU Hard Limit (sec): 600
Memory Soft Limit (bytes): 250M
Memory Hard Limit (bytes): 300M
Process Soft Limit: 400
Process Hard Limit: 450

I'm not sure if these values come into play since I'm setting the External Application resources at the vhost level.
Reply With Quote
  #5  
Old 11-07-2008, 08:50 AM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
CPU Soft Limit (sec): 300
CPU Hard Limit (sec): 600

There is no global setting for these.
Reply With Quote
  #6  
Old 11-07-2008, 09:02 AM
zoom zoom is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
Yes there is a global setting at the Server level for the CPU Limits. However, the global settings (below) seem to be acceptable.

CPU Soft Limit (sec): 300
CPU Hard Limit (sec): 600

Using a soft limit of 300 seconds of CPU time for an external application should be okay in my situation.
Reply With Quote
  #7  
Old 11-07-2008, 09:47 AM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
I don't see the global settings for those under External Apps for lsphp4 or lsphp5.

What are your soft and hard limits for connections under the DDOS settings?

Last edited by anewday; 11-07-2008 at 09:52 AM..
Reply With Quote
  #8  
Old 11-07-2008, 11:29 AM
hadyabed hadyabed is offline
Member
 
Join Date: Mar 2008
Posts: 39
I recommend putting 20 for connection soft limit and 30 for connection hard limit, and set the grace period to 15 seconds and banned period to 2500 seconds.
-Hady Abed
Reply With Quote
  #9  
Old 11-07-2008, 11:38 AM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
Quote:
Originally Posted by hadyabed View Post
I recommend putting 20 for connection soft limit and 30 for connection hard limit, and set the grace period to 15 seconds and banned period to 2500 seconds.
-Hady Abed
You'll have many banned ips with those settings.
Reply With Quote
  #10  
Old 11-07-2008, 01:20 PM
hadyabed hadyabed is offline
Member
 
Join Date: Mar 2008
Posts: 39
Quote:
Originally Posted by anewday View Post
You'll have many banned ips with those settings.
I've never had a problem with those settings. Pretty sure they're the same settings mistwang recommended in one of his posts a while back.
-Hady Abed
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 04:26 AM.



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