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

Go Back   LiteSpeed Support Forums > External Applications > CGI/Perl/Python > Server upgraded but still very poor performance!

Reply
 
Thread Tools Display Modes
  #1  
Old 02-11-2012, 09:50 AM
mks mks is offline
Member
 
Join Date: Jan 2012
Posts: 14
Unhappy Server upgraded but still very poor performance!

Old setup:
Q9550 (4 threads)
8GB RAM
RAID1
Web Frontend + MySQL
2CPU LSWS enterprise license


New setup:
Q9550 (4 threads)
8GB RAM
RAID1
Dedicated MySQL server
2CPU LSWS enterprise license

3930K (12 threads)
32GB RAM
RAID10
Dedicated Web Frontend server
2CPU LSWS enterprise license


I am seeing barely any difference in performance increase.
Example: Req/second about 90/second (Req in processing 400/second)
This is nearly the same as the previous setup. How is this possible?
Still takes 15-20 seconds to load the site despite the increased CPU.
Disk I/O is under 5 at all times.


And can LSWS staff give me the appropriate figures for the 32GB RAM server:
Server:
Memory I/O Buffer


Tuning:
Connection Timeout (secs)
Max Keep-Alive Requests
Keep-Alive Timeout (secs)
Max Cached Small File Size (bytes)
Total Small File Cache Size (bytes)
Max MMAP File Size (bytes)
Total MMAP Cache Size (bytes)
AIO Block Size

Max Request URL Length (bytes)
Max Request Header Size (bytes)
Max Request Body Size (bytes)
Max Dynamic Response Header Size (bytes)
Max Dynamic Response Body Size (bytes)

Max Static File Size (bytes)
Min Static File Size (bytes)


Security:
Static Requests/second
Dynamic Requests/second
Connection Soft Limit
Connection Hard Limit
Grace Period (sec)
Banned Period (sec)

Max CGI Instances
Priority
CPU Soft Limit (sec)
CPU Hard Limit (sec)
Memory Soft Limit (bytes)
Memory Hard Limit (bytes)
Process Soft Limit
Process Hard Limit
Reply With Quote
  #2  
Old 02-12-2012, 05:34 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
Quote:
Still takes 15-20 seconds to load the site despite the increased CPU
this is too slow. is the homepage only or other pages as well?

should figure out the bottle-neck of your server first.

for those parameters, actually the default settings already being optimal.
32G memory will be fully utilized by OS as disk file cache.
Reply With Quote
  #3  
Old 02-12-2012, 11:37 PM
mks mks is offline
Member
 
Join Date: Jan 2012
Posts: 14
This is for any page of the site.

How can I increase Req/second? Does increasing Max CGI Instance help? I should not be seeing 100 Req/second (400 in processing) with this powerful server.

On the old setup, I would see 100 Req/second (400 in processing) load is 40.

New setup, I still see 100 Req/second (400 in processing) but load is 2.

Although the load is low, the website still loading slow due to so many stuck in processing. What settings can be changed to increase the 100 Req/second to take full advantage of my server?
Reply With Quote
  #4  
Old 02-12-2012, 11:46 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
can you paste "Real-Time Stats" here
Reply With Quote
  #5  
Old 02-13-2012, 03:20 AM
mks mks is offline
Member
 
Join Date: Jan 2012
Posts: 14
I tracked down the issue to MySQL so now it seems to be running a lot better.
Please check my settings and realtime stats. I want to optimize for 2CPU license.
This is for server with 3930K 6 physical core + 6 HT, 32GB RAM, dedicated web server.

And I need to know how to whitelist certain IPs, I see this:
Allowed List
ALL

I have many IP to whitelist, they keep getting blocked in anti-ddos until I raised the dynamic requests limit.
I want to whitelist for example 39.219.89.139 and 172.89.11.235, please tell me exact lines I need to put.
And the old setup/old server I don't need LSWS on it anymore since it is only MySQL server?

http://s14.postimage.org/73x8ckvdd/realtime.gif
http://s14.postimage.org/8o2kaz3rl/settings1.gif
http://s9.postimage.org/6xuiiymsv/settings2.gif
http://s18.postimage.org/jbsj4l9mh/settings3.gif
http://s16.postimage.org/g3dhdxtr9/settings4.gif
Reply With Quote
  #6  
Old 02-13-2012, 03:30 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
Quote:
I tracked down the issue to MySQL so now it seems to be running a lot better.
great

can't view the attached images.

Quote:
I want to whitelist for example 39.219.89.139 and 172.89.11.235
-- Trusted IP or sub-network must be specified in the Allowed List by adding a trailing "T"
so it is
ALL, 39.219.89.139T, 172.89.11.235T
Reply With Quote
  #7  
Old 02-13-2012, 03:15 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Quote:
Originally Posted by mks View Post
This is for any page of the site.

How can I increase Req/second? Does increasing Max CGI Instance help? I should not be seeing 100 Req/second (400 in processing) with this powerful server.

On the old setup, I would see 100 Req/second (400 in processing) load is 40.

New setup, I still see 100 Req/second (400 in processing) but load is 2.

Although the load is low, the website still loading slow due to so many stuck in processing. What settings can be changed to increase the 100 Req/second to take full advantage of my server?
1. You should disable per client throttling (set static req/sec AND dynamic req/sec => 0; connection limit (soft/hard) => 10000).
2. paste your lsphp5 ext app settings here.
3. increase Max CGI instance would NOT help.
4. php suEXEC set to 10 (good for most setup). increase it if you have very busy traffic (not in your case).
Reply With Quote
  #8  
Old 02-13-2012, 03:30 PM
mks mks is offline
Member
 
Join Date: Jan 2012
Posts: 14
I disabled that now and changed to 10000. Server only used for 1 website using exclusively CGI only. No PHP at all except the webmail/phpmyadmin. Is there anything else I can do for increasing req/sec? 2 CPU license is enough for this server or do I need more?
Reply With Quote
  #9  
Old 02-13-2012, 04:39 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
do you know how much traffic volume (req/sec) of your site is supposed to be? do your cgi scripts talk to database? is your database ok to handle the traffic? does your cgi script take a long time to finish? if web server is not the bottleneck (like in your case), no matter how fine tune it is, it would not make much difference.

Quote:
Originally Posted by mks View Post
...
Although the load is low, the website still loading slow due to so many stuck in processing...
what are those stuck in processing? cgi scripts?
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 06:46 PM.



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