An OOM appeared to me for a strange reason
------------------------------------------
Key: JRUBY-2110
URL: http://jira.codehaus.org/browse/JRUBY-2110
Project: JRuby
Issue Type: Bug
Reporter: Ola Bini
Assignee: Thomas E Enebo
Priority: Critical
I have a smallish application that I'm running some performance testing on. For
some reason it's twice as slow as MRI. When I gave it more iterations to run, I
finally got this OOM:
{noformat}
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:45)
at java.lang.StringBuilder.<init>(StringBuilder.java:68)
at java.lang.StackTraceElement.toString(StackTraceElement.java:157)
at java.lang.String.valueOf(String.java:2827)
at java.lang.StringBuilder.append(StringBuilder.java:115)
at java.lang.Throwable.printStackTrace(Throwable.java:512)
at
org.jruby.exceptions.RaiseException.buildMessage(RaiseException.java:86)
at org.jruby.exceptions.RaiseException.<init>(RaiseException.java:96)
at
org.jruby.exceptions.RaiseException.createNativeRaiseException(RaiseException.java:80)
at
org.jruby.javasupport.JavaSupport.createRaiseException(JavaSupport.java:182)
at
org.jruby.javasupport.JavaSupport.handleNativeException(JavaSupport.java:177)
at
org.jruby.javasupport.JavaMethod.invokeWithExceptionHandling(JavaMethod.java:217)
at org.jruby.javasupport.JavaMethod.invoke(JavaMethod.java:184)
at
org.jruby.javasupport.JavaClass$InstanceMethodInvoker.execute(JavaClass.java:422)
at
org.jruby.internal.runtime.methods.SimpleCallbackMethod.call(SimpleCallbackMethod.java:67)
at
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:60)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:78)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:358)
at
execute11160316_11938198.__file__(/Users/olabini/workspace/tw/skunkworks_git/app/plumbing/persistence/adapters/jdbc_adapter.rb:114)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:144)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:78)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:358)
at
ruby.Users.olabini.workspace.tw.skunkworks_git.script.perf_31_dot_rb.closure4(script/perf1.rb:51)
at
ruby.Users.olabini.workspace.tw.skunkworks_git.script.perf_31_dot_rbBlockclosure4xx1.call(Unknown
Source)
at
org.jruby.runtime.CompiledBlockLight.yield(CompiledBlockLight.java:111)
at org.jruby.runtime.Block.yield(Block.java:114)
at
run9537082_11938198.__rescue_1(/Users/olabini/workspace/tw/skunkworks_git/app/plumbing/persistence/database/session.rb:19)
at
run9537082_11938198.__ensure_1(/Users/olabini/workspace/tw/skunkworks_git/app/plumbing/persistence/database/session.rb)
at
run9537082_11938198.__file__(/Users/olabini/workspace/tw/skunkworks_git/app/plumbing/persistence/database/session.rb:18)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:144)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:82)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:370)
{noformat}
At the moment I have no idea why this shows up, but it looks a little bit as if
lots of native exceptions are being thrown at some point.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email