LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   General (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=25)
-   -   Why is litespeed admin panel so slow or even timed out? (http://www.litespeedtech.com/support/forum/showthread.php?t=5771)

mks 03-15-2012 10:43 AM

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?

http://i42.tinypic.com/1556qev.jpg

webizen 03-15-2012 02:12 PM

check console or dmesg and see if full with "nf_conntrack: table full, dropping packet".

mks 03-16-2012 08:48 AM

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?

webizen 03-16-2012 10:11 AM

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.

mks 03-16-2012 10:53 AM

My website loads a lot faster now. It is around 70000 connections average, is this a concern?

webizen 03-16-2012 12:17 PM

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.

mks 03-16-2012 07:09 PM

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

webizen 03-19-2012 10:05 AM

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.

Mr_Parham 04-27-2012 11:03 AM

Quote:

Originally Posted by webizen (Post 32301)
check console or dmesg and see if full with "nf_conntrack: table full, dropping packet".

can you tell me how to find that =/

webizen 04-27-2012 11:50 AM

Quote:

Originally Posted by Mr_Parham (Post 33053)
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.


All times are GMT -7. The time now is 08:44 AM.