On Thu, 2006-07-27 at 18:30 +0530, hemant wrote: > Following is the output of top command at my server and i find the > high usage very much alarming. > > We are basically a team of three developers working on same > machine(remotely), so we run mongrel_rails servers from out > ~/public/app directories. > We also run a cluster of mongrel servers using apache2.2. > > Is this much memory use normal? >
It's funny, but just the other day I setup a tomcat server to run a small 10 JSP app and Sun's JDK used up 358M of ram while IBM's JDK used 150M. What you might be experiencing though is the common development mode memory leaks that come up once in a while. If these are developers then I wouldn't worry about it. It's when you're in production that you've got problems if you see this kind of memory activity. I've got a quick hack I've been handing to people who have memory problems which has helped them track down leaks. ***ONLY USE THIS IN PRODUCTION MODE***. Don't bother with this in dev mode. http://pastie.caboo.se/6218 Take that, put it in a file called mongrel.conf, and then start mongrel with: mongrel_rails start -e production -S mongrel.conf It'll start writing a file called objects.log and after you've thrashed the app a bit you can go look at how memory is being used for the different objects. When you thrash the app, don't do concurrenct hits, just run a bunch in a series. -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need Mongrel support? _______________________________________________ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users