Hi,
I’m evaluating Jruby for running a rails pp, and to install the gem, I
had to pass the mx flag to java, to make it use 1024M of memory. With
512M, it always raised out of memory exceptions.
I’m getting afraid that the memory requirements will be too big for
running the rails application. Can someone confirm this or reassure
me? Does Jruby on Rails have huge memory needs?
Thanks in advance
Raphaël
Web database: http://www.myowndb.com
Free Software Developers Meeting: http://www.fosdem.org
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
On Fri, Sep 26, 2008 at 3:58 AM, Raphael B. [email protected]
wrote:
Hi,
I’m evaluating Jruby for running a rails pp, and to install the gem, I
had to pass the mx flag to java, to make it use 1024M of memory. With
512M, it always raised out of memory exceptions.
I’m getting afraid that the memory requirements will be too big for
running the rails application. Can someone confirm this or reassure
me? Does Jruby on Rails have huge memory needs?
Which version of JRuby are you using? RubyGems before version 1.2 used
a lot of memory, and it increased with the number of released gems
on RubyForge. JRuby 1.1.3 and later includes RubyGems 1.2, which
should have much less memory consumption and should also be much
quicker.
/Nick
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
In my deployments of Rails apps on Jruby, I typically see about 20mb of
heap space for a basic application, so not much (compared to 512MB) at
all. If you’ve got a complicated rails app, it may well take more than
that, though. If your Rails app wasn’t taking a huge amount of space
before, though, I wouldn’t imagine that it would take a huge amount of
space running on Jruby.
Raphael B. wrote:
Raphaël
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
In our deployment, we have 6 rails instances sharing 2 GB of RAM, and
haven’t had memory issues in production. Our footprint is 50-250MB per
jruby/rails instance.
Jacob K. wrote:
I’m evaluating Jruby for running a rails pp, and to install the gem, I
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
On Mon, Sep 29, 2008 at 4:22 PM, Matt B. [email protected] wrote:
In our deployment, we have 6 rails instances sharing 2 GB of RAM, and
haven’t had memory issues in production. Our footprint is 50-250MB per
jruby/rails instance.
What application server are you using?
I am using Tomcat 6.x for my own deployment, and it takes up a lot of
memory
(though not escalating through continuous usage.)
/Anders
how do you find out how much memory each runtime is using in Tomcat
using
Jconsole ?
In our deployment, we have 6 rails instances sharing 2 GB of RAM,
and haven’t had memory issues in production. Our footprint is
50-250MB per jruby/rails instance.
What application server are you using?
WebSphere 6.1.
I am using Tomcat 6.x for my own deployment, and it takes up a lot of
memory (though not escalating through continuous usage.)
The size estimates are not from running under an app server. For
instance, on our test system, top shows 1.2G res for the entire app
server, and it’s not really being used. (On the test system, the app
server is configured to use only 1G of heap space, so it’s basically
sitting at the limit.) (I don’t have access to the prod system, so the
best information I have about it is that 2GB max heap for 6 runtimes has
not resulted in OOM exceptions.) The “50-250 MB” estimates are from
watching jmongrel on a dev system.
One thing I’d add about WebSphere and heap usage is this: redeploying
(either as an upgrade or as an uninstall/install) applications (or ours,
at least) seems to leak memory. Our CI build was scripted to deploy the
application to an instance of WebSphere. Initially, we did this by
uninstalling the old and installing the new. After a few cycles of this,
plus some light usage, WebSphere would fail due to OOM exceptions. We
added a step to the build that restarts WebSphere after installing the
new war file, and we have had very few OOM problems since.
–
Matt
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
On Fri, Sep 26, 2008 at 6:29 PM, Nick S. [email protected]
wrote:
Which version of JRuby are you using? RubyGems before version 1.2 used
a lot of memory, and it increased with the number of released gems
on RubyForge. JRuby 1.1.3 and later includes RubyGems 1.2, which
should have much less memory consumption and should also be much
quicker.
HI,
sorry for the late reaction, but your hint was the right one. I
thought I had downloaded the latest release, but my hand must have
slipped at the time of the click because I had the 1.1 installed. With
the 1.1.4 release I could install it ealily.
Thanks to you and all who answered to my question with useful info!
I’m now looking to use Jruby for this app.
Raph
/Nick
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
–
Web database: http://www.myowndb.com
Free Software Developers Meeting: http://www.fosdem.org
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email