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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Why is litespeed admin panel so slow or even timed out?

Reply
 
Thread Tools Display Modes
  #1  
Old 03-15-2012, 10:43 AM
mks mks is offline
Member
 
Join Date: Jan 2012
Posts: 14
Default Why is litespeed admin panel so slow or even timed out?

I have a 2-core litespeed license, mysql is not running on this server.

It just says "Connecting to 'my server ip' in the status bar of the web browser and gives a timed out error. It happens about 50% of the time. My website is also loading very slow, about 5 seconds to load, sometimes up to 20 seconds to load.

The website also communicates with other websites that I own, I often get "can't connect to 'my domain'" errors which is using Perl LWP. I even get timed out errors from IMAP when sending emails via squirrelmail (PHP).

This is a 12 core server so the load should still be fine. But even if the website is loading slow due to high traffic, why is litespeed admin panel loading so slow also?

Reply With Quote
  #2  
Old 03-15-2012, 02:12 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
check console or dmesg and see if full with "nf_conntrack: table full, dropping packet".
Reply With Quote
  #3  
Old 03-16-2012, 08:48 AM
mks mks is offline
Member
 
Join Date: Jan 2012
Posts: 14
I didn't find nf_conntrack, I found ip_conntrack. It was set to 65536 and after setting to 131072 I don't have problem loading that now. Does that mean that before I set it higher, a lot of users were getting timed out and cannot connect?
Reply With Quote
  #4  
Old 03-16-2012, 10:11 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
correct. your conntrack table was full and no more connection can be accepted. a possible dos attack. monitor ip_conntrack_count and make sure it well below the max.
Reply With Quote
  #5  
Old 03-16-2012, 10:53 AM
mks mks is offline
Member
 
Join Date: Jan 2012
Posts: 14
My website loads a lot faster now. It is around 70000 connections average, is this a concern?
Reply With Quote
  #6  
Old 03-16-2012, 12:17 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
Usually it is syn attacks cause the conntrack table full unless you have a very hot site. In your case, it is likely syn attacks since there aren't that many connections go to lsws. enable syncookies (sysctl parameter) to alleviate it.
Reply With Quote
  #7  
Old 03-16-2012, 07:09 PM
mks mks is offline
Member
 
Join Date: Jan 2012
Posts: 14
Do these values look normal or is there SYN attack?

Code:
netstat -tuna | grep :80 | grep SYN_RECV | wc -l
264

Code:
wc -l /proc/net/ip_conntrack
62439
Reply With Quote
  #8  
Old 03-19-2012, 10:05 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
the # of http used connections is less than 500 according to your real time stats, you need to find out what are those connections taking up conntrack table.
Reply With Quote
  #9  
Old 04-27-2012, 11:03 AM
Mr_Parham Mr_Parham is offline
Senior Member
 
Join Date: Oct 2011
Posts: 72
Quote:
Originally Posted by webizen View Post
check console or dmesg and see if full with "nf_conntrack: table full, dropping packet".
can you tell me how to find that =/
Reply With Quote
  #10  
Old 04-27-2012, 11:50 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
Quote:
Originally Posted by Mr_Parham View Post
can you tell me how to find that =/
do 'dmesg' from command line shell (ssh). see if you get message like 'table full, dropping packet' in the tail end of screen output.
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 03:47 AM.



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