tag:blogger.com,1999:blog-4704664917418794835.post6783927713194777147..comments2023-07-01T05:41:30.469-07:00Comments on Headius: Zero to Production in 15 Minutesheadiushttp://www.blogger.com/profile/15717357218364947795noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-4704664917418794835.post-11608388066186122052008-08-24T21:23:00.000-07:002008-08-24T21:23:00.000-07:00I can understand why you had to use GlassFish for ...I can understand why you had to use GlassFish for an example (GlassFish is by SUN). But , out there in the wild the most commonly used containers are Tomcat & jetty . Will the same steps work for these containers ? or are they not supported ate all?noblehttp://www.blogger.com/profile/13526516941061887735noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-29330577699268470332008-08-25T05:33:00.000-07:002008-08-25T05:33:00.000-07:00Great write-up! However, the word "App Server...Great write-up! However, the word "App Server" sounds like "I'll eat all your memory" to me. <br><br>What is the memory footprint of Glassfish and what's the recommended system to run on? I think this is one aspect of jruby/app servers that no one seems to be talking about. <br><br>Currently I'm running ±5 Rails apps on Apache+Passenger. I'm willing to give Glassfish a try, but does it run on a 512Mb VPS?<br><br>I hope to learn a lot more about jruby at RailsConfEurope. Are you going to be there?Ariejan de Vroomhttp://ariejan.netnoreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-90027325686715090832008-08-25T05:44:00.000-07:002008-08-25T05:44:00.000-07:00I Installed Netbeans 6.5 last week and tried the j...I Installed Netbeans 6.5 last week and tried the jruby and glassfish installed with it - but got in to some "bundle symbolic name" hell, also it didn't seem to find my Gems even through they were on the path listed.<br><br>I really want to give jruby a spin, I'll try and make some time for it next week.mtkdwww.prj2.comnoreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-39281915734419124802008-08-25T10:27:00.000-07:002008-08-25T10:27:00.000-07:00'war'bler -- I get it.Man I feel dumb.'war'bler -- I get it.<br><br>Man I feel dumb.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-30212817716033307182008-08-25T11:21:00.000-07:002008-08-25T11:21:00.000-07:00Great information. This kind of goes along the li...Great information. This kind of goes along the line of ariejan's post.<br><br>It's pretty easy to understand how a mongrel cluster or passenger works, but how does JRuby + Glassfish work? Does it spawn threads as needed (passenger) or does it just run what you tell it to run (mongrel)?<br><br>I guess it just seems a bit walled off, but that's because I have no clue how Java web servers work.Stephen H. Gerstackerhttp://www.blogger.com/profile/07455583932893162403noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-39194592202780846052008-08-25T14:54:00.000-07:002008-08-25T14:54:00.000-07:00stephen: Currently, Warbler (using jruby-rack) sca...stephen: Currently, Warbler (using jruby-rack) scales up and down Rails instances as needed. As far as threading, that's handled by the app server, and most servers use a pool of threads to handle incoming requests, parking requests until a thread comes available.<br><br>julien: Thanks for that links, I didn't know about those installers :)Charles Oliver Nutterhttp://www.blogger.com/profile/06400331959739924670noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-24101991339033204872008-08-25T18:47:00.000-07:002008-08-25T18:47:00.000-07:00I'm curious if you did anything to secure/hard...I'm curious if you did anything to secure/harden the installation? <br><br> - Did you modify default settings/configuration or file system permissions in any way?<br><br> - Did you delete unnecessary files/configs/samples or anything like that?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-11535736066626652872008-08-25T22:09:00.000-07:002008-08-25T22:09:00.000-07:00anonymous: No, I left hardening as an exercise for...anonymous: No, I left hardening as an exercise for the user. Those steps would not be particularly different from hardening any server, and certainly aren't Rails-specific, so they're somewhat out of scope for this walkthrough. I'd welcome a pointer to such instructions for GlassFish and other servers.Charles Oliver Nutterhttp://www.blogger.com/profile/06400331959739924670noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-74059528318935151412008-08-28T01:02:00.000-07:002008-08-28T01:02:00.000-07:00Thanks for the great writeup. JRuby is a fine tech...Thanks for the great writeup. JRuby is a fine technology, but just to put the "15 minutes" in perspective, porting a rather complex application with a number of external dependencies from ruby to jruby took about a week (which I thought was perfectly reasonable). Some of that time was learning curve, some was swapping in different gems, and the one issue I hadn't predicted was jdbc. We were using DB2, and the JDBC adapter has some different behavior than the native ibm_db gem.David Andersonhttp://www.blogger.com/profile/07368424071580409612noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-9907913383143154982008-08-28T09:53:00.000-07:002008-08-28T09:53:00.000-07:00I started up glassfish v2ur2 on a solaris containe...I started up glassfish v2ur2 on a solaris container at joyent and the default memory heap params as listed in the admin console are: -XX:MaxPermSize=192m and -Xmx512m. The current memory consumption without any apps deployed is 171 MB.<br><br>I have a small rails app for development running on mongrel on the same container and it's only using 42 MB. I can only assume adding my rails app war to glassfish is going to increase memory consumption from 171 MB, not decrease it.<br><br>How can I justify using glassfish over mongrel in this case? Get rid of those default startup memory heap params? Thanks.Renenoreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-49604649854855436582008-08-28T14:25:00.000-07:002008-08-28T14:25:00.000-07:00Its great to finally have a step-by-step on how to...Its great to finally have a step-by-step on how to get things running... but my concern is how to develop a Rails application for deployment through JRuby and Warbler. It seems a bit of a pain to have to warble the project every time I want to test it. Although, I suppose that I could just warble an empty project and then unpack the war...Ed Powellnoreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-88883712218976717122008-08-28T16:14:00.000-07:002008-08-28T16:14:00.000-07:00@Rene: The base footprint of a JRuby deployment is...@Rene: The base footprint of a JRuby deployment is almost always going to be higher. However, you're likely to see real advantages once you start running more applications, especially if you're following "best practices" and running four or more Mongrels per application. Adding a new Ruby runtime to the pool within a single GlassFish instance is almost guaranteed to use less RAM than a full copy of Mongrel, since the JVM can share loaded classes and core library objects between threads.<br><br>I've also found that you can get the memory footprint of a JRuby Rails WAR deployment down considerably by using a lighter-weight servlet container like Jetty or Winstone. Of course, you lose all the nice management and administration features that GlassFish offers, and you can't host full-stack J2EE apps in the same container, but for simple web applications on resource-constrained servers, it can be worth it.rcoderhttp://www.blogger.com/profile/15044818722181140240noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-25673121676884502292008-10-07T12:27:00.000-07:002008-10-07T12:27:00.000-07:00Great guide.. got it running in a few hours with a...Great guide.. got it running in a few hours with an application that's in the middle of it's development cycle and had never run on JRuby before. The biggest hurdle was working around gems with native extensions (byebye RMagick, hello ImageVoodoo). <br><br>I was looking for a sensible deployment method for this application and this looks pretty nice. I'm just wondering: Should I combine this with a webserver/proxy (e.g. nginx) for serving static files? I would guess so, but prehaps Glassfish is unexpectedly fast.Martijnnoreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-65732062795951612892009-01-06T11:46:00.000-08:002009-01-06T11:46:00.000-08:00Should I try V3? It seems to be more Rails-friend...Should I try V3? It seems to be more Rails-friendly.danieltsadokhttp://danieltsadok.wordpress.com/noreply@blogger.com