I am experiencing the same problem: we've deployed a Jruby/Rails app to
Tomcat 6 and it crashes Tomcat within 24 hours...nothing abnormal showing up
in the logs.  Anyone else seen this?


Raphaël Valyi wrote:
> 
> Hi all,
> 
> 
> Since even before JRuby 1.0, My JRuby on Rails app never lasted more
> than 24 hours in prod env when while being browsed by Google and Yahoo
> bots.
> 
> I investigated on this recently, and, while I'm not completely sure,
> it seems that JRuby (from 1.0 to head; Java 6u2; Linux 2.6.18) doesn't
> leak when using Webrick as a web server (In dev mode I'm using webrick
> and never saw any leak while loading my server and profiling/garbage
> collecting with JConsole.)
> 
> But with Goldspike, either under Glassfish v2, either under Tomcat 6,
> it seems that I'v got a very little memory leak that ends crashing my
> server.
> 
> With the JMeter load tool, I was able to fill my RAM (total 1 Go) by
> sending as much as several thousands of requests (at 2 Req/sec, all
> answered 200). And when letting my server in the WWW, It crashes in
> about 24 hours or less but with less request (so may be the
> variablitity has some influence).
> 
> I never saw any error in my Ruby log file.
> 
> It seems that the objects eating my RAM a(after jmap and jhat) are
> Ruby arrays of integers. I don't know were they do come from, but I'm
> quite sure they don't result from my specific code. My session dump is
> clean too.
> 
> Also I tried several jvm combinations such as: -Xmx512m -Xms80m and
> -Xmx256m -Xms40m...
> 
> So did anyone faced such a problem?
> 
> Thank you for your feedback.
> 
> Raphaël Valyi
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Goldspike-memory-leak-suspicion-tf4096635.html#a12034057
Sent from the JRuby - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to