Skip to content

Instantly share code, notes, and snippets.

@kaykay
Created November 26, 2008 19:54
Show Gist options
  • Save kaykay/29538 to your computer and use it in GitHub Desktop.
Save kaykay/29538 to your computer and use it in GitHub Desktop.
[foobar@irvsrddev4 moonstone]$ time jruby -J-Xms512m -J-Xmx1024m -S bin/gumshoe_with_distance index
I, [2008-11-26T19:02:49.919584 #6164] INFO -- : Indexing ...
java.lang.String:-2:in `intern': java.lang.OutOfMemoryError: PermGen space (NativeException)
from org/apache/lucene/document/Field.java:266:in `<init>'
from org/apache/lucene/document/Field.java:232:in `<init>'
from sun.reflect.NativeConstructorAccessorImpl:-2:in `newInstance0'
from sun.reflect.NativeConstructorAccessorImpl:-1:in `newInstance'
from sun.reflect.DelegatingConstructorAccessorImpl:-1:in `newInstance'
from java.lang.reflect.Constructor:-1:in `newInstance'
from org/jruby/javasupport/JavaConstructor.java:226:in `new_instance'
from org/jruby/java/invokers/ConstructorInvoker.java:80:in `call'
... 31 levels...
from ./lib/engine/document.rb:26:in `index'
from ./lib/engine/base.rb:53:in `index'
from bin/gumshoe_with_distance:33
Complete Java stackTrace
java.lang.OutOfMemoryError: PermGen space
at java.lang.String.intern(Native Method)
at org.apache.lucene.document.Field.<init>(Field.java:266)
at org.apache.lucene.document.Field.<init>(Field.java:232)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.jruby.javasupport.JavaConstructor.new_instance(JavaConstructor.java:226)
at org.jruby.java.invokers.ConstructorInvoker.call(ConstructorInvoker.java:80)
at org.jruby.java.invokers.ConstructorInvoker.call(ConstructorInvoker.java:147)
at org.jruby.RubyClass.finvoke(RubyClass.java:353)
at org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:298)
at org.jruby.java.proxies.ConcreteJavaProxy$2.call(ConcreteJavaProxy.java:40)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:42)
at org.jruby.RubyClass$SpecificArityNew.call(RubyClass.java:543)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:136)
at org.jruby.java.proxies.ConcreteJavaProxy$ConcreteNewMethod.call(ConcreteJavaProxy.java:148)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:250)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:34)
at org.jruby.ast.CallManyArgsNode.interpret(CallManyArgsNode.java:59)
at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
at org.jruby.ast.CaseNode.interpret(CaseNode.java:112)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:202)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:153)
at org.jruby.runtime.Block.yield(Block.java:116)
at org.jruby.RubyString.each_line(RubyString.java:3320)
at org.jruby.RubyString$i_method_0_1$RUBYFRAMEDINVOKER$each_line.call(org/jruby/RubyString$i_method_0_1$RUBYFRAMEDINVOKER$each_line.gen)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:226)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:270)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
real 30m18.617s
user 1m38.025s
sys 2m0.682s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment