From: Michael Conrad Date: 2007-11-16T05:06:35+09:00 Subject: Re: webrick alternative --------------040308080701010405090204 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, > A simple mongrel handler uses about 6-7MB of ram for me on 32bit > systems. What all are you loading to get it to 16MB? you are (nearly) right, after startup the mongrel uses about 7-8 MB non relocatable memory (rss option). But at the same time, the data resident segment (drs option, rss included) shows 18 MB of RAM. In comparison, webrick needs about 5 MB rss and 14 MB drs. In contrast the plain ruby interpreter needs about 1,5 MB rss and 3 MB drs. ps -eo pid,args,drs,rss|grep ruby 4782 ruby webrick.rb 14322 4872 4783 ruby mongrel.rb 18322 7776 4820 ruby -e sleep 60 3266 1548 I will give lighttp a try, thanks for your help Micha --------------040308080701010405090204 Content-Type: application/x-ruby; name="mongrel.rb" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="mongrel.rb" cmVxdWlyZSAnbW9uZ3JlbCcKCiBjbGFzcyBTaW1wbGVIYW5kbGVyIDwgTW9uZ3JlbDo6SHR0 cEhhbmRsZXIKICAgIGRlZiBwcm9jZXNzKHJlcXVlc3QsIHJlc3BvbnNlKQogICAgICByZXNw b25zZS5zdGFydCgyMDApIGRvIHxoZWFkLG91dHwKICAgICAgICBoZWFkWyJDb250ZW50LVR5 cGUiXSA9ICJ0ZXh0L3BsYWluIgogICAgICAgIG91dC53cml0ZSgiaGVsbG8hXG4iKQogICAg ICBlbmQKICAgIGVuZAogZW5kCgogaCA9IE1vbmdyZWw6Okh0dHBTZXJ2ZXIubmV3KCIwLjAu MC4wIiwgIjMwMDEiKQogaC5yZWdpc3RlcigiL3Rlc3QiLCBTaW1wbGVIYW5kbGVyLm5ldykK IGgucmVnaXN0ZXIoIi9maWxlcyIsIE1vbmdyZWw6OkRpckhhbmRsZXIubmV3KCIuIikpCiBo LnJ1bi5qb2luCg== --------------040308080701010405090204 Content-Type: application/x-ruby; name="webrick.rb" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="webrick.rb" CnJlcXVpcmUgJ3dlYnJpY2snCmluY2x1ZGUgV0VCcmljawoKc2VydmVyID0gSFRUUFNlcnZl ci5uZXcoIDpQb3J0ID0+IDMwMDAsIDpEb2N1bWVudFJvb3QgPT4gRGlyOjpwd2QpCgp0cmFw KCAiSU5UIikgeyAKICBzZXJ2ZXIuc2h1dGRvd24KfQoKc2VydmVyLnN0YXJ0Cg== --------------040308080701010405090204--