java.lang.OutOfMemoryError: Java heap space


Solutions on the web

Solution icon of web
via JIRA by Martin Crespo, 1 year ago
Java heap space

Solution icon of web
via JIRA by Martin Crespo, 1 year ago
Java heap space

Stack trace

java.lang.OutOfMemoryError: Java heap space
	at org.joni.OptExactInfo.<init>(OptExactInfo.java:33)
	at org.joni.NodeOptInfo.<init>(NodeOptInfo.java:27)
	at org.joni.Analyser.optimizeNodeLeft(Analyser.java:2113)
	at org.joni.Analyser.optimizeNodeLeft(Analyser.java:1928)
	at org.joni.Analyser.optimizeNodeLeft(Analyser.java:2177)
	at org.joni.Analyser.optimizeNodeLeft(Analyser.java:1928)
	at org.joni.Analyser.optimizeNodeLeft(Analyser.java:2165)
	at org.joni.Analyser.optimizeNodeLeft(Analyser.java:1939)
	at org.joni.Analyser.setOptimizedInfoFromTree(Analyser.java:2208)
	at org.joni.Analyser.compile(Analyser.java:157)
	at org.joni.Regex.<init>(Regex.java:162)
	at org.joni.Regex.<init>(Regex.java:139)
	at org.jruby.RubyRegexp.makeRegexp(RubyRegexp.java:165)
	at org.jruby.RubyRegexp.getPreprocessedRegexpFromCache(RubyRegexp.java:214)
	at org.jruby.RubyRegexp.preparePattern(RubyRegexp.java:474)
	at org.jruby.RubyString.gsubCommon19(RubyString.java:3119)
	at org.jruby.RubyString.gsubCommon19(RubyString.java:3107)
	at org.jruby.RubyString.gsub19(RubyString.java:3065)
	at org.jruby.RubyString$INVOKER$i$gsub19.call(RubyString$INVOKER$i$gsub19.gen)
	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:336)
	at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:179)
	at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:188)
	at org.jruby.ast.CallOneArgBlockNode.interpret(CallOneArgBlockNode.java:60)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:225)
	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:214)
	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:346)
	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204)
	at org.jruby.ast.FCallTwoArgNode.interpret(FCallTwoArgNode.java:38)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.