Dear Members, Mongrel Handlers seem to take up about 110 MB for each instance and sometimes upto 20% cpu usage on an 8 core system.. Though this has a lot to do with the application, any suggestions for improvement at the software stack level? [especially for the RAM?] regards Asif Ali
on 2009-04-01 21:16
on 2009-04-02 03:51
Asif Ali <azifali@gmail.com> wrote: > Dear Members, > Mongrel Handlers seem to take up about 110 MB for each instance and > sometimes upto 20% cpu usage on an 8 core system.. > Though this has a lot to do with the application, any suggestions for > improvement at the software stack level? [especially for the RAM?] Avoid slurping. Don't read large files into memory all at once, LIMIT all your SELECT statements. That's the biggest problem I see in all sorts of apps. Other than that there could be a lot of app specific things... Go by process of elimination and figure out where/when/if memory jumps are taking place and even rip out chunks of code that are suspect :)
on 2009-04-02 09:42
Eric, Thank you for those suggestions. We are reviewing those select statements...again. But do some patches [like the forking patch] help? Asif Ali
on 2009-04-02 14:05
Nope, that looks about normal, based on my experience. Our app would consume 80Mb once mongrel had started, and would jump to well over 120Mb after serving a request.
on 2009-04-04 07:48
Asif Ali wrote: > Dear Members, > Mongrel Handlers seem to take up about 110 MB for each instance and > sometimes upto 20% cpu usage on an 8 core system.. > > Though this has a lot to do with the application, any suggestions for > improvement at the software stack level? [especially for the RAM?] try the MBARI patches, if you're using 1.8.x Cheers! -=r
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.