OutOfMemory Errors


#1

Starting to see a lot of strange OutOfMemory errors with 1.1.6… any
ideas here ? Charles is this that same Caching bug in 1.1.6 ?

SEVERE: Servlet.service() for servlet default threw exception
java.lang.OutOfMemoryError: GC overhead limit exceeded
at
org.jruby.runtime.DynamicScope.newDynamicScope(DynamicScope.java:46)
at
org.jruby.runtime.DynamicScope.newDynamicScope(DynamicScope.java:75)
at
org.jruby.runtime.ThreadContext.preMethodFrameAndScope(ThreadContext.java:1087)
at
org.jruby.internal.runtime.methods.CallConfiguration$1.pre(CallConfiguration.java:27)
at
org.jruby.internal.runtime.methods.DefaultMethod.jitPre(DefaultMethod.java:385)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:235)
at org.jruby.RubyClass.finvoke(RubyClass.java:468)
at
org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:304)
at
org.jruby.RubyBasicObject.callMethod(RubyBasicObject.java:320)
at
org.jruby.RubyBasicObject.respondsTo(RubyBasicObject.java:523)
at
org.jruby.util.TypeConverter.convertToType(TypeConverter.java:64)
at
org.jruby.util.TypeConverter.convertToTypeWithCheck(TypeConverter.java:134)
at
org.jruby.RubyBasicObject.checkArrayType(RubyBasicObject.java:664)
at org.jruby.RubyArray.flatten(RubyArray.java:2503)
at org.jruby.RubyArray.flatten_bang(RubyArray.java:2531)
at org.jruby.RubyArray.flatten(RubyArray.java:2546)
at
org.jruby.RubyArray$i_method_0_0$RUBYINVOKER$flatten.call(org/jruby/RubyArray$i_method_0_0$RUBYINVOKER$flatten.
gen)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:73)
at
ruby.jit.ruby.apphome.coolstack.tomcat5.webapps.myapp.WEB_minus_INF.gems.gems.activerecord_minus_2_dot_2_dot_
2.lib.active_record.association_preload.preload_associations924804429_1007790716.file(association_preload.rb:87)
at
org.jruby.ast.executable.AbstractScript.file(AbstractScript.java:39)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:321)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:196)
at
ruby.jit.ruby.apphome.coolstack.tomcat5.webapps.myapp.WEB_minus_INF.gems.gems.activerecord_minus_2_dot_2_dot_
2.lib.active_record.association_preload.preload_associations924804429_1007790716.block_1$RUBY$block(association_preloa
d.rb:95)
at
ruby.jit.ruby.apphome.coolstack.tomcat5.webapps.myapp.WEB_minus_INF.gems.gems.activerecord_minus_2_dot_2_dot_
2.lib.active_record.association_preload.preload_associations924804429_1007790716BlockCallback$block_1$RUBY$_block__xx1.ca
ll(Unknown Source)
at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:120)
at org.jruby.runtime.Block.yield(Block.java:133)
at org.jruby.RubyHash$10.visit(RubyHash.java:988)
at org.jruby.RubyHash.visitAll(RubyHash.java:542)
at org.jruby.RubyHash.each(RubyHash.java:985)
at
org.jruby.RubyHash$i_method_0_0$RUBYFRAMEDINVOKER$each.call(org/jruby/RubyHash$i_method_0_0$RUBYFRAMEDINVOKER$e
ach.gen)
at
org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:98)
at
ruby.jit.ruby.apphome.coolstack.tomcat5.webapps.myapp.WEB_minus_INF.gems.gems.activerecord_minus_2_dot_2_dot

2.lib.active_record.association_preload.preload_associations924804429_1007790716.file(association_preload.rb:93)


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#2

The stack here is mostly irrelevant, but there’s a good chance this is
one of several leaks fixed in JRuby 1.2. Can you give RC2 a try? We’ve
heard from others who saw leaks and memory issues go away in 1.2.

  • Charlie (mobile)

On Mar 13, 2009, at 15:56, AD removed_email_address@domain.invalid wrote:

org.
jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:
org.jruby.util.TypeConverter.convertToType(TypeConverter.java:64)
$flatten.call(org/jruby/RubyArray$i_method_0_0$RUBYINVOKER$flatten.
tomcat5.
at
apphome.
at
association_preload.
$each.call(org/jruby/RubyHash$i_method_0_0$RUBYFRAMEDINVOKER$e
coolstack.
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

#3

On Fri, Mar 13, 2009 at 4:18 PM, AD removed_email_address@domain.invalid wrote:

we were on trunk since trunk has the solaris getpwuid fix so we cant
use 1.2.0RC2. We were having a few issues with trunk though so went
back to 1.1.6 util 1.2.0 is out and stable. Not to say 1.2.0 is not
stable, we were just seeing some errors in the app and wanted to
remove 1.2.0 as a variable.

When is 1.2.0 final slated for ?

Monday barring any newly discovered blockers…

-Tom


Blog: http://www.bloglines.com/blog/ThomasEEnebo
Email: removed_email_address@domain.invalid , removed_email_address@domain.invalid


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#4

we were on trunk since trunk has the solaris getpwuid fix so we cant
use 1.2.0RC2. We were having a few issues with trunk though so went
back to 1.1.6 util 1.2.0 is out and stable. Not to say 1.2.0 is not
stable, we were just seeing some errors in the app and wanted to
remove 1.2.0 as a variable.

When is 1.2.0 final slated for ?

Adam

On Fri, Mar 13, 2009 at 5:11 PM, Charles Oliver N.
removed_email_address@domain.invalid wrote:

  at

org.jruby.util.TypeConverter.convertToTypeWithCheck(TypeConverter.java:134)
at
ruby.jit.ruby.apphome.coolstack.tomcat5.webapps.myapp.WEB_minus_INF.gems.gems.activerecord_minus_2_dot_2_dot_
at org.jruby.RubyHash$10.visit(RubyHash.java:988)
2.lib.active_record.association_preload.preload_associations924804429_1007790716.file(association_preload.rb:93)

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email