java.lang.OutOfMemoryError: Java heap space
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
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.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.
Solutions on the web
via Atlassian JIRA by Yilin Mo [Atlassian], 1 year ago
via Stack Overflow by dimas
, 2 years agovia Stack Overflow by Karthik Ramachandran
, 2 years agovia Stack Overflow by Kardu
, 2 years agovia Coderanch by Konstantinos Vasileiou, 1 year ago
via Google Groups by Everton Lima, 2 years ago
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2734)
at java.util.ArrayList.ensureCapacity(ArrayList.java:167)
at java.util.ArrayList.add(ArrayList.java:351)
at com.aspose.cells.b.a.a.e.a(Unknown Source)
at com.aspose.cells.bG.a(Unknown Source)
at com.aspose.cells.bG.a(Unknown Source)
at com.aspose.cells.cn.a(Unknown Source)
at com.aspose.cells.cn.i(Unknown Source)
at com.aspose.cells.cn.b(Unknown Source)
at com.aspose.cells.cn.e(Unknown Source)
at com.aspose.cells.cn.a(Unknown Source)
at com.aspose.cells.cn.a(Unknown Source)
at com.aspose.cells.Chart.toImage(Unknown Source)
at com.benryan.conversion.SpreadsheetConverter.collectImageObjects(SpreadsheetConverter.java:283)
at com.benryan.conversion.SpreadsheetConverter.convert(SpreadsheetConverter.java:85)
at com.benryan.conversion.XlsConverter$1.doConversion(XlsConverter.java:47)
at com.benryan.conversion.DocConverter.execute(DocConverter.java:61)
at com.benryan.conversion.macro.ConverterMacro.execute(ConverterMacro.java:254)
at com.benryan.conversion.macro.ViewOfficeFile.execute(ViewOfficeFile.java:75)
at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshal(ViewMacroMarshaller.java:88)
at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshal(ViewMacroMarshaller.java:24)
at com.atlassian.confluence.content.render.xhtml.DefaultXhtmlContent.convertMacroDefinitionToView(DefaultXhtmlContent.java:153)
at sun.reflect.GeneratedMethodAccessor642.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
at com.sun.proxy.$Proxy241.convertMacroDefinitionToView(Unknown Source)
at sun.reflect.GeneratedMethodAccessor642.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)