Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    via oracle.com by Unknown author

    An easy way to solve OutOfMemoryError in java is to increase the maximum heap size by using JVM options -Xmx512M, this will immediately solve your OutOfMemoryError.

  2. ,
    via Stack Overflow by Eugene Yokota

    In Eclipse : go to Run --> Run Configurations --> then select the project under maven build --> then select the tab "JRE" --> then enter -Xmx1024m.

    This should increase the memory heap for all the builds/projects. The above memory size is 1 GB.

java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:3332) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137) at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:569) at java.lang.StringBuffer.append(StringBuffer.java:369) at java.io.BufferedReader.readLine(BufferedReader.java:370) at java.io.BufferedReader.readLine(BufferedReader.java:389) at org.opensolaris.opengrok.analysis.Ctags.readTags(Ctags.java:182) at org.opensolaris.opengrok.analysis.Ctags.doCtags(Ctags.java:173) at org.opensolaris.opengrok.analysis.plain.PlainAnalyzer.analyze(PlainAnalyzer.java:78) at org.opensolaris.opengrok.analysis.plain.AbstractSourceCodeAnalyzer.analyze(AbstractSourceCodeAnalyzer.java:69) at org.opensolaris.opengrok.analysis.AnalyzerGuru.populateDocument(AnalyzerGuru.java:307) at org.opensolaris.opengrok.index.IndexDatabase.addFile(IndexDatabase.java:606) at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:870) at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:835) at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:835) at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:835) at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:835) at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:835) at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:835) at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:835) at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:835) at org.opensolaris.opengrok.index.IndexDatabase.update(IndexDatabase.java:383) at org.opensolaris.opengrok.index.IndexDatabase$1.run(IndexDatabase.java:168) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)