From azifali at gmail.com Wed Apr 1 14:39:04 2009 From: azifali at gmail.com (Asif Ali) Date: Thu, 2 Apr 2009 00:09:04 +0530 Subject: [Mongrel] Reducing Memory Footprint of Mongrel Handlers Message-ID: <52d8feb90904011139p3d4f94eaj9c05bce96e87a5f2@mail.gmail.com> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From azifali at gmail.com Wed Apr 1 14:47:08 2009 From: azifali at gmail.com (Asif Ali) Date: Thu, 2 Apr 2009 00:17:08 +0530 Subject: [Mongrel] Mongrel Handlers on Jruby or Ruby 1.9 Message-ID: <52d8feb90904011147t16646824gc88a9d5934d8dbb8@mail.gmail.com> Dear Mongrel Users, I wanted to try using mongrel handlers running on JRuby. I am not sure if this stack is possible. Can anyone let me know if they have tried it and if so, what has been the performance difference. regards Asif Ali -------------- next part -------------- An HTML attachment was scrubbed... URL: From hassan.schroeder at gmail.com Wed Apr 1 15:31:59 2009 From: hassan.schroeder at gmail.com (Hassan Schroeder) Date: Wed, 1 Apr 2009 12:31:59 -0700 Subject: [Mongrel] Mongrel Handlers on Jruby or Ruby 1.9 In-Reply-To: <52d8feb90904011147t16646824gc88a9d5934d8dbb8@mail.gmail.com> References: <52d8feb90904011147t16646824gc88a9d5934d8dbb8@mail.gmail.com> Message-ID: <4eedb92a0904011231t15628915s434ccc147c79d829@mail.gmail.com> 2009/4/1 Asif Ali : > I wanted to try using mongrel handlers running on JRuby. I am not sure if > this stack is possible. Can anyone let me know if they have tried it and if > so, what has been the performance difference. I'm using JRuby with Mongrel right now; works fine. Not sure what you mean by "performance difference", though. -- Hassan Schroeder ------------------------ hassan.schroeder at gmail.com From normalperson at yhbt.net Wed Apr 1 21:36:33 2009 From: normalperson at yhbt.net (Eric Wong) Date: Wed, 1 Apr 2009 18:36:33 -0700 Subject: [Mongrel] Reducing Memory Footprint of Mongrel Handlers In-Reply-To: <52d8feb90904011139p3d4f94eaj9c05bce96e87a5f2@mail.gmail.com> References: <52d8feb90904011139p3d4f94eaj9c05bce96e87a5f2@mail.gmail.com> Message-ID: <20090402013633.GB29734@dcvr.yhbt.net> 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?] 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 :) -- Eric Wong From azifali at gmail.com Thu Apr 2 02:38:26 2009 From: azifali at gmail.com (Asif Ali) Date: Thu, 2 Apr 2009 12:08:26 +0530 Subject: [Mongrel] Reducing Memory Footprint of Mongrel Handlers In-Reply-To: <20090402013633.GB29734@dcvr.yhbt.net> References: <52d8feb90904011139p3d4f94eaj9c05bce96e87a5f2@mail.gmail.com> <20090402013633.GB29734@dcvr.yhbt.net> Message-ID: <52d8feb90904012338y5a04601ah15678e9d8d2b4202@mail.gmail.com> 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 Thu, Apr 2, 2009 at 7:06 AM, Eric Wong wrote: > 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?] > > 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 :) > > -- > Eric Wong > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From azifali at gmail.com Thu Apr 2 02:40:11 2009 From: azifali at gmail.com (Asif Ali) Date: Thu, 2 Apr 2009 12:10:11 +0530 Subject: [Mongrel] Mongrel Handlers on Jruby or Ruby 1.9 In-Reply-To: <4eedb92a0904011231t15628915s434ccc147c79d829@mail.gmail.com> References: <52d8feb90904011147t16646824gc88a9d5934d8dbb8@mail.gmail.com> <4eedb92a0904011231t15628915s434ccc147c79d829@mail.gmail.com> Message-ID: <52d8feb90904012340q58429d65o5b1f6af5fe53d8d8@mail.gmail.com> Hassan, What I meant was, did you see a measurable performance increase in your app after adopting JRuby with mongrel? Please advise regards Asif Ali On Thu, Apr 2, 2009 at 1:01 AM, Hassan Schroeder wrote: > 2009/4/1 Asif Ali : > > > I wanted to try using mongrel handlers running on JRuby. I am not sure if > > this stack is possible. Can anyone let me know if they have tried it and > if > > so, what has been the performance difference. > > I'm using JRuby with Mongrel right now; works fine. > > Not sure what you mean by "performance difference", though. > > -- > Hassan Schroeder ------------------------ hassan.schroeder at gmail.com > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave at cheney.net Thu Apr 2 05:15:57 2009 From: dave at cheney.net (Dave Cheney) Date: Thu, 2 Apr 2009 20:15:57 +1100 Subject: [Mongrel] Reducing Memory Footprint of Mongrel Handlers In-Reply-To: <52d8feb90904011139p3d4f94eaj9c05bce96e87a5f2@mail.gmail.com> References: <52d8feb90904011139p3d4f94eaj9c05bce96e87a5f2@mail.gmail.com> Message-ID: <24022723-8955-4020-93A9-3494B896D99E@cheney.net> 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 02/04/2009, at 5:39 AM, 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?] > > regards > > Asif Ali > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users From hassan.schroeder at gmail.com Thu Apr 2 10:47:13 2009 From: hassan.schroeder at gmail.com (Hassan Schroeder) Date: Thu, 2 Apr 2009 07:47:13 -0700 Subject: [Mongrel] Mongrel Handlers on Jruby or Ruby 1.9 In-Reply-To: <52d8feb90904012340q58429d65o5b1f6af5fe53d8d8@mail.gmail.com> References: <52d8feb90904011147t16646824gc88a9d5934d8dbb8@mail.gmail.com> <4eedb92a0904011231t15628915s434ccc147c79d829@mail.gmail.com> <52d8feb90904012340q58429d65o5b1f6af5fe53d8d8@mail.gmail.com> Message-ID: <4eedb92a0904020747p4aad1dcfw6018de20f6b13b5b@mail.gmail.com> 2009/4/1 Asif Ali : > did you see a measurable performance increase in your app > after adopting JRuby with mongrel? Sorry, there's no "before" data for comparison. -- Hassan Schroeder ------------------------ hassan.schroeder at gmail.com From lists at ruby-forum.com Sat Apr 4 01:48:48 2009 From: lists at ruby-forum.com (Roger Pack) Date: Sat, 4 Apr 2009 07:48:48 +0200 Subject: [Mongrel] Reducing Memory Footprint of Mongrel Handlers In-Reply-To: <52d8feb90904011139p3d4f94eaj9c05bce96e87a5f2@mail.gmail.com> References: <52d8feb90904011139p3d4f94eaj9c05bce96e87a5f2@mail.gmail.com> Message-ID: <221e66a098d0694cf1e8d2ecd11c1c32@ruby-forum.com> 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 -- Posted via http://www.ruby-forum.com/. From liaok at ccf.org Tue Apr 7 09:46:26 2009 From: liaok at ccf.org (Liao, Kexiao) Date: Tue, 7 Apr 2009 09:46:26 -0400 Subject: [Mongrel] mongrel server core dump on Sun Solaris Message-ID: <5801C7961B62634F9D3513FBFC860C6C03073901@CCHSCLEXMB55.cc.ad.cchs.net> I am running my Mongrel Web Server 1.1.5 on Sun Solaris 10 server with Apache 2.2 proxy running with single Mongrel instance to handle my RoR Web Applications request. My RoR web application was developped on Windows plateform, once I svn my RoR souce codes to Sun Solaris Web Application server and run the application through web browser. My Mongrel Web server most time may die and a core dump file was created in my RoR Web Application directory as showing below: # uname -a SunOS Test-zone 5.10 Generic_137138-09 i86pc i386 i86pc # pwd /opt/coolstack/apache2/htdocs/Jtooltest # ls -al total 78234 drwxr-xr-x 14 root root 512 Apr 6 18:48 . drwxr-xr-x 9 root root 512 Apr 7 04:55 .. drwxr-xr-x 7 root root 512 Apr 6 18:40 app -rw-r--r-- 1 root root 153 Apr 6 18:41 Capfile drwxr-xr-x 5 root root 512 Apr 6 18:41 config -rw------- 1 root root 39992793 Apr 6 18:48 core drwxr-xr-x 4 root root 512 Apr 6 18:40 db drwxr-xr-x 3 root root 512 Apr 6 18:41 doc drwxr-xr-x 4 root root 512 Apr 6 18:41 lib -rw-r--r-- 1 root root 610 Apr 6 18:41 .loadpath drwxr-xr-x 3 root root 512 Apr 6 18:40 log -rw-r--r-- 1 root root 443 Apr 6 18:41 .project drwxr-xr-x 6 root root 512 Apr 6 18:41 public -rw-r--r-- 1 root root 307 Apr 6 18:41 Rakefile -rw-r--r-- 1 root root 10619 Apr 6 18:41 README drwxr-xr-x 5 root root 512 Apr 6 18:40 script drwxr-xr-x 6 root root 512 Apr 6 18:41 .svn drwxr-xr-x 7 root root 512 Apr 6 18:40 test drwxr-xr-x 7 root root 512 Apr 6 18:40 tmp drwxr-xr-x 4 root root 512 Apr 6 18:40 vendor Can anybody give some help? Thanks in advance. Kevin =================================== P Please consider the environment before printing this e-mail Cleveland Clinic is ranked one of the top hospitals in America by U.S. News & World Report (2008). Visit us online at http://www.clevelandclinic.org for a complete listing of our services, staff and locations. Confidentiality Note: This message is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From liaok at ccf.org Tue Apr 7 09:58:56 2009 From: liaok at ccf.org (Liao, Kexiao) Date: Tue, 7 Apr 2009 09:58:56 -0400 Subject: [Mongrel] mongrel server core dump on Sun Solaris Message-ID: <5801C7961B62634F9D3513FBFC860C6C03073902@CCHSCLEXMB55.cc.ad.cchs.net> I am running my Mongrel Web Server 1.1.5 on Sun Solaris 10 server with Apache 2.2 proxy running with single Mongrel instance to handle my RoR Web Applications request. My RoR web application was developped on Windows plateform, once I svn my RoR souce codes to Sun Solaris Web Application server and run the application through web browser. My Mongrel Web server most time may die and a core dump file was created in my RoR Web Application directory as showing below: # uname -a SunOS Test-zone 5.10 Generic_137138-09 i86pc i386 i86pc # pwd /opt/coolstack/apache2/htdocs/Jtooltest # ls -al total 78234 drwxr-xr-x 14 root root 512 Apr 6 18:48 . drwxr-xr-x 9 root root 512 Apr 7 04:55 .. drwxr-xr-x 7 root root 512 Apr 6 18:40 app -rw-r--r-- 1 root root 153 Apr 6 18:41 Capfile drwxr-xr-x 5 root root 512 Apr 6 18:41 config -rw------- 1 root root 39992793 Apr 6 18:48 core drwxr-xr-x 4 root root 512 Apr 6 18:40 db drwxr-xr-x 3 root root 512 Apr 6 18:41 doc drwxr-xr-x 4 root root 512 Apr 6 18:41 lib -rw-r--r-- 1 root root 610 Apr 6 18:41 .loadpath drwxr-xr-x 3 root root 512 Apr 6 18:40 log -rw-r--r-- 1 root root 443 Apr 6 18:41 .project drwxr-xr-x 6 root root 512 Apr 6 18:41 public -rw-r--r-- 1 root root 307 Apr 6 18:41 Rakefile -rw-r--r-- 1 root root 10619 Apr 6 18:41 README drwxr-xr-x 5 root root 512 Apr 6 18:40 script drwxr-xr-x 6 root root 512 Apr 6 18:41 .svn drwxr-xr-x 7 root root 512 Apr 6 18:40 test drwxr-xr-x 7 root root 512 Apr 6 18:40 tmp drwxr-xr-x 4 root root 512 Apr 6 18:40 vendor Can anybody give some help? Thanks in advance. Kevin =================================== P Please consider the environment before printing this e-mail Cleveland Clinic is ranked one of the top hospitals in America by U.S. News & World Report (2008). Visit us online at http://www.clevelandclinic.org for a complete listing of our services, staff and locations. Confidentiality Note: This message is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Tue Apr 14 13:23:55 2009 From: lists at ruby-forum.com (Farhad Farzaneh) Date: Tue, 14 Apr 2009 19:23:55 +0200 Subject: [Mongrel] Mongrel .pids disappearing? In-Reply-To: <3a96987f0809031617n7bfb33a1kd80ca8c51ec516cf@mail.gmail.com> References: <3a96987f0809031617n7bfb33a1kd80ca8c51ec516cf@mail.gmail.com> Message-ID: <4ebd6478ed2a2c5a210b0b58987a03de@ruby-forum.com> Hi, did you ever find what was causing this? I have the same issue on CentOs. -- Posted via http://www.ruby-forum.com/. From liaok at ccf.org Tue Apr 14 14:01:27 2009 From: liaok at ccf.org (Liao, Kexiao) Date: Tue, 14 Apr 2009 14:01:27 -0400 Subject: [Mongrel] Mongrel .pids disappearing? In-Reply-To: <4ebd6478ed2a2c5a210b0b58987a03de@ruby-forum.com> References: <3a96987f0809031617n7bfb33a1kd80ca8c51ec516cf@mail.gmail.com> <4ebd6478ed2a2c5a210b0b58987a03de@ruby-forum.com> Message-ID: <5801C7961B62634F9D3513FBFC860C6C03073922@CCHSCLEXMB55.cc.ad.cchs.net> I reinstalled RoR and mongrel on my Sun Solaris box and the problem disappeared. Kevin -----Original Message----- From: mongrel-users-bounces at rubyforge.org [mailto:mongrel-users-bounces at rubyforge.org] On Behalf Of Farhad Farzaneh Sent: Tuesday, April 14, 2009 13:24 To: mongrel-users at rubyforge.org Subject: Re: [Mongrel] Mongrel .pids disappearing? Hi, did you ever find what was causing this? I have the same issue on CentOs. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Mongrel-users mailing list Mongrel-users at rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users =================================== P Please consider the environment before printing this e-mail Cleveland Clinic is ranked one of the top hospitals in America by U.S. News & World Report (2008). Visit us online at http://www.clevelandclinic.org for a complete listing of our services, staff and locations. Confidentiality Note: This message is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. Thank you. From luislavena at gmail.com Sun Apr 26 20:32:01 2009 From: luislavena at gmail.com (Luis Lavena) Date: Sun, 26 Apr 2009 21:32:01 -0300 Subject: [Mongrel] Mongrel, cross compilation, Echoe and rake-compiler Message-ID: <71166b3b0904261732j6d5c50fay3d05fdca7f4a6b6e@mail.gmail.com> Hello Guys, mainly Evan, With the goal to move One-Click Ruby Installer to use MinGW (GCC) compiler, I found there is no binary for mongrel for that platform. Because of that, the migration for lot of folks will require install the development toolkit, which I'm trying to avoid. Being the maintainer of the Windows builds of Mongrel, been wanted to upgrade it to use rake-compiler project. rake-compiler has been out for a while, and several projects has been migrated to it successfully, including ruby-ffi, johnson, nokogiri and others. Now, a few questions before I invest a lot of time with mongrel repository. I'm working over "master" at fauna repository: http://github.com/fauna/mongrel My plan is the following: Ensure both current and new One-Click works with Mongrel. Ensure building binaries for it either native or cross platform works flawlessly Now, I have a few blockers: Dunno which branch is the proper one. last time I worked on 1.2 improving MinGW support and 1.1.5 got out without taking those patches. Echoe extension compilation is interfering with rake-compiler one, is there a way to disable it? Elliot Cable left a message when I first imported rake-compiler to GitHub: http://github.com/luislavena/rake-compiler/commit/28e938cf837c6859197000cc647f84f92668f0b6#comments Again, the goal of rake-compiler is not just simplify the compilation, but also provide something that Echoe or Hoe doesn't: cross compilation. Well, I've shared my plan, what do you guys think? Cheers, -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From evan at cloudbur.st Sun Apr 26 21:12:55 2009 From: evan at cloudbur.st (Evan Weaver) Date: Sun, 26 Apr 2009 18:12:55 -0700 Subject: [Mongrel] [Mongrel-development] Mongrel, cross compilation, Echoe and rake-compiler In-Reply-To: <71166b3b0904261732j6d5c50fay3d05fdca7f4a6b6e@mail.gmail.com> References: <71166b3b0904261732j6d5c50fay3d05fdca7f4a6b6e@mail.gmail.com> Message-ID: I think that's a good plan. Echoe has some rudimentary cross-compilation (used for JRuby), but not for Mingw. Your way is better. My plan is as so: Gossamer + Rack launch script + some optimizations/bugfixes + Ruby 1.9 compat = more or less Mongrel 2.0. This puts you in a tough spot, but it's probably best to branch off Gossamer and let me forward-port whatever is missing. The 1.x branches are effectively dead, except for a Ruby 1.9 compat update (v1.1.6). I promise to get to this every weekend, and don't, so I'll stop promising. I may be able to squeeze some time out of work to spend on it. Evan On Sun, Apr 26, 2009 at 5:32 PM, Luis Lavena wrote: > Hello Guys, mainly Evan, > > With the goal to move One-Click Ruby Installer to use MinGW (GCC) > compiler, I found there is no binary for mongrel for that platform. > > Because of that, the migration for lot of folks will require install > the development toolkit, which I'm trying to avoid. > > Being the maintainer of the Windows builds of Mongrel, been wanted to > upgrade it to use rake-compiler project. > > rake-compiler has been out for a while, and several projects has been > migrated to it successfully, including ruby-ffi, johnson, nokogiri and > others. > > Now, a few questions before I invest a lot of time with mongrel repository. > > I'm working over "master" at fauna repository: > > http://github.com/fauna/mongrel > > My plan is the following: > > Ensure both current and new One-Click works with Mongrel. > Ensure building binaries for it either native or cross platform works flawlessly > > Now, I have a few blockers: > > Dunno which branch is the proper one. last time I worked on 1.2 > improving MinGW support and 1.1.5 got out without taking those > patches. > > Echoe extension compilation is interfering with rake-compiler one, is > there a way to disable it? > > Elliot Cable left a message when I first imported rake-compiler to GitHub: > > http://github.com/luislavena/rake-compiler/commit/28e938cf837c6859197000cc647f84f92668f0b6#comments > > Again, the goal of rake-compiler is not just simplify the compilation, > but also provide something that Echoe or Hoe doesn't: cross > compilation. > > Well, I've shared my plan, what do you guys think? > > Cheers, > -- > Luis Lavena > AREA 17 > - > Perfection in design is achieved not when there is nothing more to add, > but rather when there is nothing more to take away. > Antoine de Saint-Exup?ry > _______________________________________________ > Mongrel-development mailing list > Mongrel-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-development > -- Evan Weaver From luislavena at gmail.com Sun Apr 26 21:36:52 2009 From: luislavena at gmail.com (Luis Lavena) Date: Sun, 26 Apr 2009 22:36:52 -0300 Subject: [Mongrel] [Mongrel-development] Mongrel, cross compilation, Echoe and rake-compiler In-Reply-To: References: <71166b3b0904261732j6d5c50fay3d05fdca7f4a6b6e@mail.gmail.com> Message-ID: <71166b3b0904261836ua76ee21p35b46b999d02e2f8@mail.gmail.com> On Sun, Apr 26, 2009 at 10:12 PM, Evan Weaver wrote: > I think that's a good plan. Echoe has some rudimentary > cross-compilation (used for JRuby), but not for Mingw. Your way is > better. > rake-compiler still doesn't support JRuby, but perhaps a JavaJarTask is coming, but I'm not holding my breathe until I see these patckes ;-) > My plan is as so: > > Gossamer + Rack launch script + some optimizations/bugfixes + Ruby 1.9 > compat = more or less Mongrel 2.0. > The work on this has already started? Gossamer is the codename? > This puts you in a tough spot, but it's probably best to branch off > Gossamer and let me forward-port whatever is missing. The 1.x branches > are effectively dead, except for a Ruby 1.9 compat update (v1.1.6). > I've no problem working with bleeding edge stuff, as long I can find it :-) > I promise to get to this every weekend, and don't, so I'll stop > promising. I may be able to squeeze some time out of work to spend on > it. > No rush, my only concern is ensure Mongrel itself works on the upcoming One-Click Installer. Got all the details ironed to do a release tonight, and when started to install in a sandbox found that Mongrel wasn't working. Anyhow, now I have a Mac so 3 way testing between Linux, OSX and Windows is now possible form my side, so promise not break anything :-) Cheers, -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From normalperson at yhbt.net Sun Apr 26 21:53:56 2009 From: normalperson at yhbt.net (Eric Wong) Date: Sun, 26 Apr 2009 18:53:56 -0700 Subject: [Mongrel] [Mongrel-development] Mongrel, cross compilation, Echoe and rake-compiler In-Reply-To: References: <71166b3b0904261732j6d5c50fay3d05fdca7f4a6b6e@mail.gmail.com> Message-ID: <20090427015356.GA2692@dcvr.yhbt.net> Evan Weaver wrote: > My plan is as so: > > Gossamer + Rack launch script + some optimizations/bugfixes + Ruby 1.9 > compat = more or less Mongrel 2.0. Cool. I'm pretty sure Unicorn and Gossamer are both 1.9-compatible (all the tests manage to pass), but I don't have any real code running on 1.9 yet (and nothing in production on 1.8, either, yet). Let me know if there are any optimizations/bugfixes in particular I can help with, too. -- Eric Wong From normalperson at yhbt.net Sun Apr 26 21:59:47 2009 From: normalperson at yhbt.net (Eric Wong) Date: Sun, 26 Apr 2009 18:59:47 -0700 Subject: [Mongrel] [Mongrel-development] Mongrel, cross compilation, Echoe and rake-compiler In-Reply-To: <71166b3b0904261836ua76ee21p35b46b999d02e2f8@mail.gmail.com> References: <71166b3b0904261732j6d5c50fay3d05fdca7f4a6b6e@mail.gmail.com> <71166b3b0904261836ua76ee21p35b46b999d02e2f8@mail.gmail.com> Message-ID: <20090427015947.GA15181@dcvr.yhbt.net> Luis Lavena wrote: > On Sun, Apr 26, 2009 at 10:12 PM, Evan Weaver wrote: > > My plan is as so: > > > > Gossamer + Rack launch script + some optimizations/bugfixes + Ruby 1.9 > > compat = more or less Mongrel 2.0. > > The work on this has already started? Gossamer is the codename? Did you miss my earlier message posted to this list? http://rubyforge.org/pipermail/mongrel-development/2009-April/000323.html > > This puts you in a tough spot, but it's probably best to branch off > > Gossamer and let me forward-port whatever is missing. The 1.x branches > > are effectively dead, except for a Ruby 1.9 compat update (v1.1.6). > > I've no problem working with bleeding edge stuff, as long I can find it :-) It's a branch of Unicorn and in the same repositories: git://git.bogomips.org/unicorn.git http://git.bogomips.org/unicorn.git git://repo.or.cz/unicorn.git (mirror) http://repo.or.cz/r/unicorn.git (mirror) Have fun! -- Eric Wong From luislavena at gmail.com Sun Apr 26 23:16:38 2009 From: luislavena at gmail.com (Luis Lavena) Date: Mon, 27 Apr 2009 00:16:38 -0300 Subject: [Mongrel] [Mongrel-development] Mongrel, cross compilation, Echoe and rake-compiler In-Reply-To: <20090427015947.GA15181@dcvr.yhbt.net> References: <71166b3b0904261732j6d5c50fay3d05fdca7f4a6b6e@mail.gmail.com> <71166b3b0904261836ua76ee21p35b46b999d02e2f8@mail.gmail.com> <20090427015947.GA15181@dcvr.yhbt.net> Message-ID: <71166b3b0904262016u2f5a7bbeo844067deb68c7dc6@mail.gmail.com> On Sun, Apr 26, 2009 at 10:59 PM, Eric Wong wrote: > Luis Lavena wrote: >> On Sun, Apr 26, 2009 at 10:12 PM, Evan Weaver wrote: >> > My plan is as so: >> > >> > Gossamer + Rack launch script + some optimizations/bugfixes + Ruby 1.9 >> > compat = more or less Mongrel 2.0. >> >> The work on this has already started? Gossamer is the codename? > > Did you miss my earlier message posted to this list? > > http://rubyforge.org/pipermail/mongrel-development/2009-April/000323.html > Actually ignored for the simple sake that states *nix compatibility only, which is not my case since I'm on Windows > > It's a branch of Unicorn and in the same repositories: > > ? ? ? ?git://git.bogomips.org/unicorn.git > ? ? ? ?http://git.bogomips.org/unicorn.git > ? ? ? ?git://repo.or.cz/unicorn.git (mirror) > ? ? ? ?http://repo.or.cz/r/unicorn.git (mirror) > > Have fun! > Will take a look, keeping in mind that *must* work across all the platforms, at least cleanly like Mongrel does. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From normalperson at yhbt.net Sun Apr 26 23:48:06 2009 From: normalperson at yhbt.net (Eric Wong) Date: Sun, 26 Apr 2009 20:48:06 -0700 Subject: [Mongrel] [Mongrel-development] Mongrel, cross compilation, Echoe and rake-compiler In-Reply-To: <71166b3b0904262016u2f5a7bbeo844067deb68c7dc6@mail.gmail.com> References: <71166b3b0904261732j6d5c50fay3d05fdca7f4a6b6e@mail.gmail.com> <71166b3b0904261836ua76ee21p35b46b999d02e2f8@mail.gmail.com> <20090427015947.GA15181@dcvr.yhbt.net> <71166b3b0904262016u2f5a7bbeo844067deb68c7dc6@mail.gmail.com> Message-ID: <20090427034806.GA15943@dcvr.yhbt.net> Luis Lavena wrote: > On Sun, Apr 26, 2009 at 10:59 PM, Eric Wong wrote: > > Luis Lavena wrote: > >> On Sun, Apr 26, 2009 at 10:12 PM, Evan Weaver wrote: > >> > My plan is as so: > >> > > >> > Gossamer + Rack launch script + some optimizations/bugfixes + Ruby 1.9 > >> > compat = more or less Mongrel 2.0. > >> > >> The work on this has already started? Gossamer is the codename? > > > > Did you miss my earlier message posted to this list? > > > > http://rubyforge.org/pipermail/mongrel-development/2009-April/000323.html > > > > Actually ignored for the simple sake that states *nix compatibility > only, which is not my case since I'm on Windows > Will take a look, keeping in mind that *must* work across all the > platforms, at least cleanly like Mongrel does. Of course, this is why Unicorn itself is a separate package from Mongrel. I think the UNIX-only stuff is mainly confined to the HttpServer class where the unportable stuff with forking, shared FDs, signals, pipes are. That and the SocketHelper that can bind UNIX domain sockets. The rest of it, mainly http_{request,response}.rb, is stripped-down from Mongrel to only work with Rack and should be droppable into Mongrel. The C/Ragel http11 parser interface has been simplified a lot with some minor speed improvements. It doesn't use any new functions so it should be fine on Windows . The JRuby version will need to be updated to use the simpler interface (or http_request to use the old interface). I've been planning on stealing (or writing) a pure-Ruby parser for Unicorn, as well... -- Eric Wong From lists at ruby-forum.com Tue Apr 28 01:53:45 2009 From: lists at ruby-forum.com (Peter Hug) Date: Tue, 28 Apr 2009 07:53:45 +0200 Subject: [Mongrel] Shared memory across mongrels In-Reply-To: <325148f70804210754n61c54785q8550f653a4570f36@mail.gmail.com> References: <966599840804210643n2d1d2d66s441277085129bd8d@mail.gmail.com> <466af3440804210656g5cdfbc41sae822f5bf07c9162@mail.gmail.com> <325148f70804210754n61c54785q8550f653a4570f36@mail.gmail.com> Message-ID: <8b9436d467a76d0ea3003c885e14be4d@ruby-forum.com> Sandeep's question initial really simple, yet nobody has given him a satisfactory answer. I wonder if Rails 2.2 or later provides built in support to share memory between multiple mongrel servers. I read that Rails 2.2 was multi-threaded so technically shared memory should be an optin. If not, Phusion Passenger makes similar claims, yet when I go through it's doco I can't find any relevant pointers. Pete -- Posted via http://www.ruby-forum.com/. From evan at cloudbur.st Tue Apr 28 12:00:55 2009 From: evan at cloudbur.st (Evan Weaver) Date: Tue, 28 Apr 2009 09:00:55 -0700 Subject: [Mongrel] Shared memory across mongrels In-Reply-To: <8b9436d467a76d0ea3003c885e14be4d@ruby-forum.com> References: <966599840804210643n2d1d2d66s441277085129bd8d@mail.gmail.com> <466af3440804210656g5cdfbc41sae822f5bf07c9162@mail.gmail.com> <325148f70804210754n61c54785q8550f653a4570f36@mail.gmail.com> <8b9436d467a76d0ea3003c885e14be4d@ruby-forum.com> Message-ID: There is no such facility. Passenger can't do it either, copy-on-write is an optimization, not a shared memory space. Using a local memcached instance is the easiest way. Multithreading is not shared memory across processes, but might give you enough throughput that you only need to run one mongrel; then the threads themselves will all share the same heap. Evan On Mon, Apr 27, 2009 at 10:53 PM, Peter Hug wrote: > Sandeep's question initial really simple, yet nobody has given him a > satisfactory answer. > > I wonder if Rails 2.2 or later provides built in support to share memory > between multiple mongrel servers. I read that Rails 2.2 was > multi-threaded so technically shared memory should be an optin. > > If not, Phusion Passenger makes similar claims, yet when I go through > it's doco I can't find any relevant pointers. > > Pete > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > -- Evan Weaver From lists at ruby-forum.com Wed Apr 29 03:51:19 2009 From: lists at ruby-forum.com (Alexander Melle) Date: Wed, 29 Apr 2009 09:51:19 +0200 Subject: [Mongrel] Mongrel_rails will not autostart Message-ID: <3156f99dd51c2591809bb4176d92dba2@ruby-forum.com> Hi, I'm running a ubuntu 8.04.2 LTS server. Using ruby 1.8.6 and Rails 2.0.2 I added the mongrel_rails start -d -c /app/ to the /etc/rc.local sofar so good.. Mongrel will start but will log Missing the rails 2.0.2 gem. Please 'gem install -v=2.0.2 ..... and then terminate When I log onto the the console I can start mongrel_rails and it will locate the right gems any ideas ? Thanks ahead Mellex -- Posted via http://www.ruby-forum.com/. From godber at gmail.com Wed Apr 29 08:36:09 2009 From: godber at gmail.com (Austin Godber) Date: Wed, 29 Apr 2009 08:36:09 -0400 Subject: [Mongrel] Mongrel_rails will not autostart In-Reply-To: <3156f99dd51c2591809bb4176d92dba2@ruby-forum.com> References: <3156f99dd51c2591809bb4176d92dba2@ruby-forum.com> Message-ID: <50c31cc40904290536t34425ca9tecc9498810beb516@mail.gmail.com> Perhaps the rails gem 2.0.2 is installed for your user but not systemwide. So its in ~/.gem rather than /usr/lib/ruby/gems/1.8 On Wed, Apr 29, 2009 at 3:51 AM, Alexander Melle wrote: > Hi, > > I'm running a ubuntu 8.04.2 LTS server. Using ruby 1.8.6 and Rails 2.0.2 > I added the mongrel_rails start -d -c /app/ to the ?/etc/rc.local > > sofar so good.. > > Mongrel will start but will log > > Missing the rails 2.0.2 gem. Please 'gem install -v=2.0.2 ..... > > and then terminate > > When I log onto the the console I can start mongrel_rails and it will > locate the right gems > > any ideas ? > > Thanks ahead > Mellex > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > From jerrod at indierockmedia.com Wed Apr 29 08:56:21 2009 From: jerrod at indierockmedia.com (Jerrod Blavos) Date: Wed, 29 Apr 2009 08:56:21 -0400 Subject: [Mongrel] Mongrel_rails will not autostart In-Reply-To: <3156f99dd51c2591809bb4176d92dba2@ruby-forum.com> References: <3156f99dd51c2591809bb4176d92dba2@ruby-forum.com> Message-ID: this happened to me recently. turns out i had a vendored copy of an older version of rails, which script/console will happily ignore if you have specified a rails version in your config/environment.rb. config/boot.rb is not so smart. -Jerrod On Apr 29, 2009, at 3:51 AM, Alexander Melle wrote: > Hi, > > I'm running a ubuntu 8.04.2 LTS server. Using ruby 1.8.6 and Rails > 2.0.2 > I added the mongrel_rails start -d -c /app/ to the /etc/rc.local > > sofar so good.. > > Mongrel will start but will log > > Missing the rails 2.0.2 gem. Please 'gem install -v=2.0.2 ..... > > and then terminate > > When I log onto the the console I can start mongrel_rails and it will > locate the right gems > > any ideas ? > > Thanks ahead > Mellex > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users From lists at ruby-forum.com Wed Apr 29 10:00:17 2009 From: lists at ruby-forum.com (Alexander Melle) Date: Wed, 29 Apr 2009 16:00:17 +0200 Subject: [Mongrel] Mongrel_rails will not autostart In-Reply-To: <50c31cc40904290536t34425ca9tecc9498810beb516@mail.gmail.com> References: <3156f99dd51c2591809bb4176d92dba2@ruby-forum.com> <50c31cc40904290536t34425ca9tecc9498810beb516@mail.gmail.com> Message-ID: <4b4a4df47e12de62f291b70394fe98f2@ruby-forum.com> Austin Godber wrote: > Perhaps the rails gem 2.0.2 is installed for your user but not > systemwide. So its in ~/.gem rather than /usr/lib/ruby/gems/1.8 That was exactly the case .... now it's fine Thanks for your help ! Mellex -- Posted via http://www.ruby-forum.com/.