Hi! I just wanted how much memory the FCGI or SCGI processes consume for you people. I run my Rails apps on FCGI and each FCGI process uses about 20 MB (Running lighttpd on debian). I thought that that was a little bit too much, so I was wondering how much memory other people''s FCGI or SCGI processes use. Is the whole Rails framework included in those 20 MB? Thanks, rob
Mine are about 20MB each as well, FCGI w/ Apache on RHEL3. I''d love to see a reduction. I''ve never tried SCGI but I am interested to see other folks'' experience there.> From: Robert <mannl-KK0ffGbhmjU@public.gmane.org> > Reply-To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > Date: Sat, 15 Oct 2005 23:46:57 +0200 > To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > Subject: [Rails] FCGI and SCGI memory consumption > > Hi! > > I just wanted how much memory the FCGI or SCGI processes consume for > you people. > > I run my Rails apps on FCGI and each FCGI process uses about 20 MB > (Running lighttpd on debian). I thought that that was a little bit > too much, so I was wondering how much memory other people''s FCGI or > SCGI processes use. > > Is the whole Rails framework included in those 20 MB? > > > Thanks, > rob > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Same here, 22 MB per handler. Guess this includes the ruby runtime and all required libraries. This is pretty high when one is used to things like mod_blah. Handling 200 concurrent requests requires over 400 MB of memory, not including the database (MySQL uses 14 MB per child on my box...). I do not know of people handle high-traffic sites. You can still bump memory up and add servers I guess. This is where FCGI allows you to offload dynamic content generation to a server farm. Robert wrote:> Hi! > > I just wanted how much memory the FCGI or SCGI processes consume for > you people. > > I run my Rails apps on FCGI and each FCGI process uses about 20 MB > (Running lighttpd on debian). I thought that that was a little bit > too much, so I was wondering how much memory other people''s FCGI or > SCGI processes use. > > Is the whole Rails framework included in those 20 MB? > > > Thanks, > rob > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
My ruby fastcgi dispatchers use about 21MB just like you folks. I run 4 of these processes and serve 65,000+ fairly dynamic page views per day on http://yakimaherald.com. I don''t think I will need more until I hit 80,000 page views/day. Cheers- Ezra On Oct 15, 2005, at 6:11 PM, Jos wrote:> Same here, 22 MB per handler. Guess this includes the ruby runtime > and all required libraries. This is pretty high when one is used to > things like mod_blah. Handling 200 concurrent requests requires > over 400 MB of memory, not including the database (MySQL uses 14 MB > per child on my box...). > > I do not know of people handle high-traffic sites. You can still > bump memory up and add servers I guess. This is where FCGI allows > you to offload dynamic content generation to a server farm. > > Robert wrote: > > >> Hi! >> >> I just wanted how much memory the FCGI or SCGI processes consume >> for you people. >> >> I run my Rails apps on FCGI and each FCGI process uses about 20 >> MB (Running lighttpd on debian). I thought that that was a little >> bit too much, so I was wondering how much memory other people''s >> FCGI or SCGI processes use. >> >> Is the whole Rails framework included in those 20 MB? >> >> >> Thanks, >> rob >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >-Ezra Zygmuntowicz WebMaster Yakima Herald-Republic Newspaper ezra-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org 509-577-7732
Actually I meant 20 concurrent requests requiring over 400 MB... I guess you do not have a performance problem until you notice it anyway. But it is something to consider before you size a server for a Rails app. Ezra Zygmuntowicz wrote:> My ruby fastcgi dispatchers use about 21MB just like you folks. I run > 4 of these processes and serve 65,000+ fairly dynamic page views per > day on http://yakimaherald.com. I don''t think I will need more until > I hit 80,000 page views/day. > > Cheers- > Ezra > > On Oct 15, 2005, at 6:11 PM, Jos wrote: > >> Same here, 22 MB per handler. Guess this includes the ruby runtime >> and all required libraries. This is pretty high when one is used to >> things like mod_blah. Handling 200 concurrent requests requires over >> 400 MB of memory, not including the database (MySQL uses 14 MB per >> child on my box...). >> >> I do not know of people handle high-traffic sites. You can still >> bump memory up and add servers I guess. This is where FCGI allows >> you to offload dynamic content generation to a server farm. >> >> Robert wrote: >> >> >>> Hi! >>> >>> I just wanted how much memory the FCGI or SCGI processes consume >>> for you people. >>> >>> I run my Rails apps on FCGI and each FCGI process uses about 20 MB >>> (Running lighttpd on debian). I thought that that was a little bit >>> too much, so I was wondering how much memory other people''s FCGI >>> or SCGI processes use. >>> >>> Is the whole Rails framework included in those 20 MB? >>> >>> >>> Thanks, >>> rob >>> _______________________________________________ >>> Rails mailing list >>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >> >> >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> > > -Ezra Zygmuntowicz > WebMaster > Yakima Herald-Republic Newspaper > ezra-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org > 509-577-7732 > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
On 10/15/05, Robert <mannl-KK0ffGbhmjU@public.gmane.org> wrote:> > Hi! > > I just wanted how much memory the FCGI or SCGI processes consume for > you people. > > I run my Rails apps on FCGI and each FCGI process uses about 20 MB > (Running lighttpd on debian). I thought that that was a little bit > too much, so I was wondering how much memory other people''s FCGI or > SCGI processes use. >Memory is a cheap way to increase performance. I have mod perl apps where the startup resident memory size is around 50mb. Our rails apps average around 28mb on an average size application. The alternative to not caching code is a big hit on cpu and overall performance, since whatever isn''t loaded and compiled at startup has to be loaded and compiled for each request. You won''t notice it too much with just 2-3 requests per second, but take a server doing 20+ requests per second using FCGI or SCGI and switch it over to plain CGI and you will see what I mean. _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
I have been developing in Java/J2EE most of my professional life, and I can tell you that those 20+ MB is nothing compared to what a J2EE application using any framework will consum ;-) The application I am currently running takes an average of 26 Mb per process, I havent tried caching yet. It looks like 20+ is the minimun memory footprint of a "rails process". Best regards. -- Aníbal Rojas http://www.lacaraoscura.com anibalrojas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
On 15-okt-2005, at 23:46, Robert wrote:> Hi! > > I just wanted how much memory the FCGI or SCGI processes consume > for you people. > > I run my Rails apps on FCGI and each FCGI process uses about 20 MB > (Running lighttpd on debian). I thought that that was a little bit > too much, so I was wondering how much memory other people''s FCGI or > SCGI processes use. > > Is the whole Rails framework included in those 20 MB?I don''t know how others manage to make it that slim, the two apps I have deployed in the last 6 months consume around 40-50 MB per FCGI. I wonder how you can decrease this. -- Julian "Julik" Tarkhanov