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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > excessive RAM usage

Reply
 
Thread Tools Display Modes
  #1  
Old 12-12-2004, 06:18 PM
stingreen stingreen is offline
New Member
 
Join Date: Dec 2004
Posts: 1
Default excessive RAM usage

We have recently switched from apache to litespeed. (Server = 1 gig ram, 2.4 ghz CPU, raid 0 disks) despite the fact that I'm setting max. child php threads to 60 and launch the site, the ram is being consumed minute by minute until it's all gone.
A simple math;
Every litespeed thread takes up about 7 mb's of RAM, times 60,
7 X 60 = 420 MB of RAM should be used.(and this is true only at the start) I'm tracking RAM usage with top, the 7 mb part for each thread goes steady, however the total used memory is not!
Is there a memory leak in this web server?
TIA.
ps: site is very loaded, about 1.2 million page views a day.
ps2: server is also running tux(kernel based webserver),nothing else.
Reply With Quote
  #2  
Old 12-13-2004, 06:06 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
sting,

I'm not the developer so they can shed more accurate light on this but from what I know:

1) LiteSpeed does not employ threads.
2) By default PHP fcgi childs are handled by PHP's internal fcgi pool mech, not lsws. Lsws just open up and estabilish communication with php fcgi handler..

Which platform are you using lsws on? Linux/FreeBSD/Solaris? What version of kernel? Which verson of LiteSpeed are you runing? Which version of PHP? Are you using any special PHP extensions not bundled with PHP such as turck-mmcache? These will help debug this problem for ya.

Are you using Lsws bundled php package or a self compiled one? Output of phpinfo would be good to reveal any conflicts.

Linux is very aggressive at used memory so if you have program that might use 5MB out of 2G sysstem, after a few days/hours of aggressive use of the HD, free memory will be 0 and total used memory will be 2G. This is because linux's buffer cache mech is extremely agressive and will use all available idle ram to cache file i/o.

Hope everything works out.
Reply With Quote
  #3  
Old 12-13-2004, 06:32 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
stingreen,

Which version of LSWS are you using?
Is the memory usage of lshttpd process keep growing or that of php processes?
Can you please post your "top" output sorted by memory usage.
Usually, lshttpd only use about 30MB at most, if the memory usage of lshttpd grows beyond that, it is likely caused by memory leaks.

We just fixed a possible memory leack in 2.0RC3 when .htaccess is used. Is "Allow Override" enabled on your site?
If you are interested, you can try our intrim 2.0RC4 release, which is very stable already.

Best Regards,
George
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
unusually high cpu usage by lshttpd babelian Ruby/Rails 14 11-07-2007 01:03 PM
litespeed plus rails memory usage Shelby Ruby/Rails 1 02-08-2007 05:53 PM
Expected memory usage? subBlue Install/Configuration 4 10-20-2006 02:39 PM
Tuning for CPU usage alex Install/Configuration 8 06-22-2006 06:40 AM
limiting users' and virtualhosts' bandwidth usage illidan Feedback/Feature Requests 10 05-08-2006 08:50 PM


All times are GMT -7. The time now is 01:10 AM.



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