Get out of memory error when uploading excel in Confluence 4.3.0
Asked by Saneth Kumar:

I get the following error when trying to Upload an Excel 2007 Spreadsheet using the Office Macro. I looked online but couldn't find a resolution.

**Error rendering macro 'viewxls' : Java heap space**

Here's a copy of the logs.

```
2012-06-18 12:02:23,611 WARN [http-8085-2] [atlassian.plugin.webresource.DefaultResourceDependencyResolver] resolveDependencies Cannot find web resource module for: com.atlassian.confluence.plugins.confluence-paste:autoconvert-core -- url: /pages/createpage.action | userName: saneth | referer: http://49.248.31.219:8085/display/MITSD/Home2012-06-18 12:02:24,671 WARN [http-8085-2] [atlassian.plugin.webresource.DefaultResourceDependencyResolver] resolveDependencies Cannot find web resource module for: com.atlassian.confluence.plugins.confluence-paste:autoconvert-core -- url: /pages/createpage.action | userName: saneth | referer: http://49.248.31.219:8085/display/MITSD/Home2012-06-18 12:02:26,668 WARN [javamelody] [net.bull.javamelody] warn exception while collecting datajava.lang.OutOfMemoryError: Java heap space2012-06-18 12:02:39,335 WARN [http-8085-6] [atlassian.plugin.webresource.DefaultResourceDependencyResolver] resolveDependencies Cannot find web resource module for: com.atlassian.jira.gadgets:common -- url: /plugins/macrobrowser/browse-macros.action | userName: saneth | referer: http://49.248.31.219:8085/pages/createpage.action?spaceKey=MITSD&amp;fromPageId=21954562 | action: browse-macros2012-06-18 12:03:26,650 WARN [javamelody] [net.bull.javamelody] warn exception while collecting datajava.lang.OutOfMemoryError: Java heap space2012-06-18 12:04:26,663 WARN [javamelody] [net.bull.javamelody] warn exception while collecting datajava.lang.OutOfMemoryError: Java heap space2012-06-18 12:05:25,678 WARN [javamelody] [net.bull.javamelody] warn exception while collecting datajava.lang.OutOfMemoryError: Java heap space2012-06-18 12:06:25,707 WARN [javamelody] [net.bull.javamelody] warn exception while collecting datajava.lang.OutOfMemoryError: Java heap space2012-06-18 12:07:26,672 WARN [javamelody] [net.bull.javamelody] warn exception while collecting datajava.lang.OutOfMemoryError: Java heap space2012-06-18 12:08:25,733 WARN [javamelody] [net.bull.javamelody] warn exception while collecting datajava.lang.OutOfMemoryError: Java heap space2012-06-18 12:09:19,631 WARN [http-8085-6] [atlassian.plugin.webresource.DefaultResourceDependencyResolver] resolveDependencies Cannot find web resource module for: com.atlassian.confluence.plugins.confluence-paste:autoconvert-core -- url: /pages/docreatepage.action | userName: saneth | referer: http://49.248.31.219:8085/pages/createpage.action?spaceKey=MITSD&amp;fromPageId=219545622012-06-18 12:09:20,833 WARN [http-8085-6] [atlassian.plugin.webresource.DefaultResourceDependencyResolver] resolveDependencies Cannot find web resource module for: com.atlassian.confluence.plugins.confluence-paste:autoconvert-core -- url: /pages/docreatepage.action | userName: saneth | referer: http://49.248.31.219:8085/pages/createpage.action?spaceKey=MITSD&amp;fromPageId=219545622012-06-18 12:09:26,074 WARN [javamelody] [net.bull.javamelody] warn exception while collecting datajava.lang.OutOfMemoryError: Java heap space2012-06-18 12:09:31,097 ERROR [http-8085-6] [xhtml.view.macro.ViewMacroMarshaller] marshal Error rendering macro: viewxls -- url: /display/MITSD/MIT+JIRA+Environment+Information | page: 22118472 | userName: saneth | referer: http://49.248.31.219:8085/pages/docreatepage.action | action: viewpagejava.lang.OutOfMemoryError: Java heap space2012-06-18 12:09:42,314 WARN [http-8085-5] [atlassian.plugin.webresource.DefaultResourceDependencyResolver] resolveDependencies Cannot find web resource module for: com.atlassian.jira.gadgets:common -- url: /plugins/macrobrowser/browse-macros.action | userName: saneth | referer: http://49.248.31.219:8085/pages/docreatepage.action | action: browse-macros2012-06-18 12:10:26,134 WARN [javamelody] [net.bull.javamelody] warn exception while collecting datajava.lang.OutOfMemoryError: Java heap space2012-06-18 12:10:27,164 WARN [http-8085-5] [atlassian.plugin.webresource.DefaultResourceDependencyResolver] resolveDependencies Cannot find web resource module for: com.atlassian.confluence.plugins.confluence-paste:autoconvert-core -- url: /pages/editpage.action | userName: saneth | referer: http://49.248.31.219:8085/display/MITSD/MIT+JIRA+Environment+Information2012-06-18 12:10:28,287 WARN [http-8085-5] [atlassian.plugin.webresource.DefaultResourceDependencyResolver] resolveDependencies Cannot find web resource module for: com.atlassian.confluence.plugins.confluence-paste:autoconvert-core -- url: /pages/editpage.action | userName: saneth | referer: http://49.248.31.219:8085/display/MITSD/MIT+JIRA+Environment+Information2012-06-18 12:10:41,687 WARN [http-8085-6] [atlassian.plugin.webresource.DefaultResourceDependencyResolver] resolveDependencies Cannot find web resource module for: com.atlassian.jira.gadgets:common -- url: /plugins/macrobrowser/browse-macros.action | userName: saneth | referer: http://49.248.31.219:8085/pages/editpage.action?pageId=22118472 | action: browse-macros2012-06-18 12:11:26,132 WARN [javamelody] [net.bull.javamelody] warn exception while collecting datajava.lang.OutOfMemoryError: Java heap space2012-06-18 12:12:18,517 ERROR [http-8085-6] [xhtml.view.macro.ViewMacroMarshaller] marshal Error rendering macro: viewxls -- url: /display/MITSD/MIT+JIRA+Environment+Information | page: 22118472 | userName: saneth | referer: http://49.248.31.219:8085/pages/editpage.action?pageId=22118472 | action: viewpagejava.lang.OutOfMemoryError: Java heap space2012-06-18 12:12:26,785 WARN [javamelody] [net.bull.javamelody] warn exception while collecting datajava.lang.OutOfMemoryError: Java heap space2012-06-18 12:13:26,798 WARN [javamelody] [net.bull.javamelody] warn exception while collecting datajava.lang.OutOfMemoryError: Java heap space2012-06-18 12:14:27,560 WARN [javamelody] [net.bull.javamelody] warn exception while collecting datajava.lang.OutOfMemoryError: Java heap space2012-06-18 12:15:27,495 WARN [javamelody] [net.bull.javamelody] warn exception while collecting datajava.lang.OutOfMemoryError: Java heap space2012-06-18 12:16:28,444 WARN [javamelody] [net.bull.javamelody] warn exception while collecting datajava.lang.OutOfMemoryError: Java heap space2012-06-18 12:17:27,506 WARN [javamelody] [net.bull.javamelody] warn exception while collecting datajava.lang.OutOfMemoryError: Java heap space
```

Thanks.


Answers:
author: parthiban subramaniam
body: How big is this excel file?

Have a look at <https://confluence.atlassian.com/display/DOC/Fix+Out+of+Memory+Errors+by+Increasing+Available+Memory>

and increases your memory if you can.

comments: author: Saneth Kumar
body: It's very small, just 11KB!

I'll try increasing the memory and let you know.

Thanks!


author: Saneth Kumar
body: Thanks Pathis! It worked :)


Tags: error

macro

ms-excel