server swap

DoM

Well-Known Member
#1
Hi,
on one server we have about 1600 smail websites.

With apache and php as CGI memory usage is about 3GB ( we have 8GB in total).

With litespeed server start swap and use about 8GB RAM and 4-5GB swap.

There is a way to reduce memory usage such as apache with cgi ?


Waiting for your reply

Regards
 

DoM

Well-Known Member
#3
So if we for example disable mod_security it will works ( i mean litespeed web server will reduce DRASTICALLY ram usage without modsec)?

Waiting for your reply

Best regards
 

DoM

Well-Known Member
#5
Hi,
i confirm that if i remove all directives of mod_security everything works like a charm also on a server with more than 10.000 websites.

Do you know if there are particular mod_security rules to disable in order to not disable all modsec rules ?


Waiting for your reply


Regards
 

DoM

Well-Known Member
#6
Nevermind..

server start swap without apparently reasons.

For some hours server use ONLY 4GB RAM.

Suddenly start swap.

All RAM and swap were taken from litespeed procs and not from users procs:


root 23633 2.6 6.3 654064 519596 ? S< 12:34 4:29 litespeed (lshttpd)
nobody 31758 4.8 7.6 654060 623180 ? D< 13:06 6:40 \_ litespeed (lshttpd)
lsadm 14258 1.9 0.1 45272 9120 ? S 15:09 0:17 | \_ admin_php -c ../conf/php.ini
nobody 31759 16.5 7.0 663464 572244 ? D< 13:06 22:48 \_ litespeed (lshttpd)
nobody 31760 4.8 7.2 653972 594528 ? D< 13:06 6:39 \_ litespeed (lshttpd)
nobody 31761 4.8 7.7 653972 630348 ? D< 13:06 6:39 \_ litespeed (lshttpd)
nobody 31762 4.8 7.3 653972 598592 ? D< 13:06 6:39 \_ litespeed (lshttpd)
nobody 31763 4.8 7.2 653972 596176 ? D< 13:06 6:40 \_ litespeed (lshttpd)
nobody 31764 4.8 7.3 653972 597248 ? D< 13:06 6:39 \_ litespeed (lshttpd)
nobody 31765 4.8 7.2 653972 596448 ? D< 13:06 6:39 \_ litespeed (lshttpd)
root 31116 0.0 0.0 5876 436 ? S< 15:19 0:00 \_ lscgid
root 31159 28.6 7.0 661132 580092 ? D< 15:19 1:17 litespeed (lshttpd)
root 31168 0.0 0.0 5876 436 ? S< 15:19 0:00 \_ httpd (lscgid)
nobody 5227 4.2 7.3 661040 603204 ? D< 15:22 0:03 \_ litespeed (lshttpd)
nobody 5228 9.0 7.3 661744 604092 ? D< 15:22 0:07 \_ litespeed (lshttpd)
nobody 5229 4.4 7.2 661040 593728 ? D< 15:22 0:03 \_ litespeed (lshttpd)
nobody 5231 4.7 7.1 661040 587404 ? D< 15:22 0:03 \_ litespeed (lshttpd)
nobody 5232 4.6 7.0 661040 572316 ? D< 15:22 0:03 \_ litespeed (lshttpd)
nobody 5233 4.0 7.1 661040 583956 ? D< 15:22 0:03 \_ litespeed (lshttpd)
nobody 5234 4.2 7.0 661040 575928 ? D< 15:22 0:03 \_ litespeed (lshttpd)
nobody 5237 3.9 6.6 661040 546500 ? D< 15:22 0:03 \_ litespeed (lshttpd)


Waiting for your reply

Regards
 

DoM

Well-Known Member
#8
Hi,
if i want try to understand why litespeed web server increase suddenly from 4GB to 14GB RAM where can i check info about ?

On error_log i could not find anything about. There is a more debugging option to enable in order to understand WHAT cause this strange increase of memory usage ?

From top i can only see that litespeed procs and not user proc are using all this memory so i exclude some php or cgi or ruby scripts.


Waiting for your reply

Regards
 
Top