A newer GlassFish V3 gem for JRuby and its known limitations

Newer GlassFish V3 gem for JRuby

It has been a while since a new version of the GlassFish V3 gem for JRuby was last released. Since I have picked up the effort of maintaining this gem from Jerome, thought I would start by releasing a version based on the latest GlassFish V3 bits. Additionally I have made one change to the gem, by creating 2 Rails instances where only one was being created before.


Known Limitations of the gem

Since we are targeting this gem to be used in the development environment, the gem should at a minimum provide for the functionalities that Webrick provides. Below I have listed out the limitations of the gem in the curent form. I would be working on improving the gem to fix these issues.

  • The gem starts up by default on port 8080 and the only way to change the port is by manually editing the port entry in domain.xml. There should be support for --port option to provide a port to the gem.
  • If the default port is being used, then the gem should look for the sequential port that could be used to start up.
  • Requests made to the process launched using
        jruby -S glassfish_rails  
    are not being queued up. Hence if there is no rails instance available to satisfy the request, then the next request is returned with a blank page. This has already been reported by the users with the earlier gem.
  • Creating rails instances to be pooled is a time consuming process. Based on tests on my Macbook pro, found the following when using JRuby 1.0.3
    • 1 rails instance takes 8-9secs,
    • 2 rails instance 10-11secs,
    • 3 rails instance 12-13secs,
    • 4 rails instance 14-16secs,
    • 5 rails instance 16-18secs,
    We could use the Goldspike approach, where we start with a minimum number of pool instances and then grow based on demand. In this case we would need to provide means to the user to set/change these values


Please feel free to add your comments to this blog to improve the GlassFish gem.


Comments:

[Trackback] Pramod published an updated JRuby Gem for GlassFish v3. Download the gem here. Here are the updates from last time: The Gem is now smaller - 2.4 MB instead of 2.9 MB (approx 20% smaller). The Gem is now using...

Posted by Arun Gupta's Blog on January 04, 2008 at 10:27 PM PST #

It seems that the very latest JRuby 1.1RC1 can't run this gem, due to missing /removed method Ruby.parse().

I've filed a JRuby issue for that: http://jira.codehaus.org/browse/JRUBY-1925

Thanks,
--Vladimir

Posted by Vladimir Sizikov on January 08, 2008 at 05:19 AM PST #

If this gem is targeted to development, what are you suggesting people use in production?

Posted by James Moore on January 10, 2008 at 07:30 AM PST #

Since GlassFish V3 is in the early stages of development we have released the gem as a development environment. For production our recommendation is to use GlassFish V2 as the platform. GF V2 is a well tested platform platform hence this recommendation.
Currently GlassFish V2 does not support native support for ROR, hence you would have to package their application as a WAR - using Goldspike, warbler. Once the WAR has been successfully created you could then deploy it to the GlassFish V2 server.

Thanks
Pramod

Posted by Pramod Gopinath on January 14, 2008 at 12:08 AM PST #

Hi Vladimir
Effective from Glassfish v3 gem v0.1.0 which is now hosted on RubyForge, the gem should work with both JRuby 1.0.x and JRuby 1.1x versions.
We were relying on internal methods and hence the code was not functioning when the JRuby versions were switched.

Thanks
Pramod

Posted by Pramod Gopinath on February 15, 2008 at 12:02 AM PST #

Free Reverse Cell Phone # Lookup Get Free Owner Information About Any Cell Phone...
Cell Phone Reverse Lookup - Search Free Any Phone Gets You People Data-Name, Address, Age & More....
http://www.cell-phone-lookups.info

Posted by cellphonelookup on September 07, 2009 at 05:18 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

pramodg

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today