1.on my server,each "httpd" process is costing more than 15m mem 2.each "dispatch.fcgi" process is costing more than 20m mem 3.there is about 20 processes of ruby/dispatch.fcgi running at a time. and about 22 "httpd" processes. (using a command:ps aux |grep httpd |wc -l) 4.I believe there is something eating Mem,cos the server was down yesterday,the SWAP was full of 2G data 5.and I also notice,when I restarted httpd,the processes of dispatch.fcgi became 32.there is something has not released? I wannder how is your sever load? and how heavy are your "httpd" and "dispatch.fcgi"? many thanks^^
my rails project is closed T_T anyone can help with my questions? 2005/9/1, hui <fortez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> 1.on my server,each "httpd" process is costing more than 15m mem > > 2.each "dispatch.fcgi" process is costing more than 20m mem > > 3.there is about 20 processes of ruby/dispatch.fcgi running at a time. > and about 22 "httpd" processes. > (using a command:ps aux |grep httpd |wc -l) > > 4.I believe there is something eating Mem,cos the server was down > yesterday,the SWAP was full of 2G data > > 5.and I also notice,when I restarted httpd,the processes of > dispatch.fcgi became 32.there is something has not released? > > I wannder how is your sever load? > and how heavy are your "httpd" and "dispatch.fcgi"? > > many thanks^^ >
On Sep 1, 2005, at 11:22 PM, hui wrote:> my rails project is closed T_T > > anyone can help with my questions? > >> 1.on my server,each "httpd" process is costing more than 15m memetc... Is there any chance that you''re running your application in the Rails DEVELOPMENT environment? Cheers Dave
On 9/1/05, hui <fortez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 1.on my server,each "httpd" process is costing more than 15m memHave a look at lighttpd: http://www.lighttpd.net> 2.each "dispatch.fcgi" process is costing more than 20m memThis is normal. Make sure you''re running in production mode or this will grow much larger over time.> 3.there is about 20 processes of ruby/dispatch.fcgi running at a time. > and about 22 "httpd" processes. > (using a command:ps aux |grep httpd |wc -l)You likely only need one or two ruby processes to accomodate your application. The way to change this depends on whether you''re letting the web-server launch your ruby processes or launching them externally. I reccomend you install lighttpd and then setup SCGI instead of FastCGI by following Zed Shaw''s great SCGI-howto: http://www.zedshaw.com/projects/ruby_event/scgi_howto.html> 4.I believe there is something eating Mem,cos the server was down > yesterday,the SWAP was full of 2G dataThere are memory leaks in development mode, so only use this when you''re actually developing. Otherwise, you should run in production.> 5.and I also notice,when I restarted httpd,the processes of > dispatch.fcgi became 32.there is something has not released?If you follow the SCGI howto above (and use lighttpd) this won''t happen as your ruby processes will be launched and managed external to the web server. Ben