Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cf8 - memory issue when running process - java.lang.OutOfMemoryError: Java heap space

New Here ,
Aug 17, 2009 Aug 17, 2009

Hi, I am running code in coldfusion 7 generally without issue.  I am now running it in coldfusion 8 and am getting the below java issue.

Can anyone make any suggestions as to what might be wrong?  Thanks.

Error Message
500
 
ROOT CAUSE: 
java.lang.OutOfMemoryError: Java heap space
     at java.util.Arrays.copyOf(Arrays.java:2882)
     at java.io.CharArrayWriter.write(CharArrayWriter.java:105)
     at coldfusion.runtime.CharBuffer.replace(CharBuffer.java:37)
     at coldfusion.runtime.CharBuffer.replace(CharBuffer.java:50)
     at coldfusion.runtime.NeoBodyContent.write(NeoBodyContent.java:254)
     at coldfusion.runtime.NeoPageContext.emitWhitespace(NeoPageContext.java:1870)
     at coldfusion.runtime.CfJspPage._whitespace(CfJspPage.java:2645)
     at cfassignperm2ecfm907071419.runPage(D:\coldfusion applications\pse.org\pages\administration\assignperm.cfm:88)
     at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
     at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
     at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661)
     at cfadministration2ecfm1867347072.runPage(D:\coldfusion applications\pse.org\administration.cfm:104)
     at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
     at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
     at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
     at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
     at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
     at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
     at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
     at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
     at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
     at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
     at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
     at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
     at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
     at coldfusion.CfmServlet.service(CfmServlet.java:175)
     at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
     at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
     at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
     at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
     at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
     at jrun.servlet.FilterChain.service(FilterChain.java:101)
 
 
javax.servlet.ServletException: ROOT CAUSE: 
java.lang.OutOfMemoryError: Java heap space
     at java.util.Arrays.copyOf(Arrays.java:2882)
     at java.io.CharArrayWriter.write(CharArrayWriter.java:105)
     at coldfusion.runtime.CharBuffer.replace(CharBuffer.java:37)
     at coldfusion.runtime.CharBuffer.replace(CharBuffer.java:50)
     at coldfusion.runtime.NeoBodyContent.write(NeoBodyContent.java:254)
     at coldfusion.runtime.NeoPageContext.emitWhitespace(NeoPageContext.java:1870)
     at coldfusion.runtime.CfJspPage._whitespace(CfJspPage.java:2645)
     at cfassignperm2ecfm907071419.runPage(D:\coldfusion applications\pse.org\pages\administration\assignperm.cfm:88)
     at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
     at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
     at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661)
     at cfadministration2ecfm1867347072.runPage(D:\coldfusion applications\pse.org\administration.cfm:104)
     at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
     at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
     at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
     at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
     at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
     at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
     at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
     at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
     at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
     at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
     at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
     at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
     at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
     at coldfusion.CfmServlet.service(CfmServlet.java:175)
     at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
     at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
     at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
     at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
     at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
     at jrun.servlet.FilterChain.service(FilterChain.java:101)
 
     at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:70)
     at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
     at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
     at jrun.servlet.FilterChain.service(FilterChain.java:101)
     at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
     at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
     at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
     at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
     at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
     at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
     at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

TOPICS
Advanced techniques
2.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 17, 2009 Aug 17, 2009

This should be related to your code. Generally heap space issue occurs if the code goes to infinite loop or is handling large data and the system RAM is very low.

-Prasanth

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 17, 2009 Aug 17, 2009

The box has a 7.9 gigs of memory. It is not an infinite loop, however a good deal of data being processed.

I think I need to increase the heap amount, however I cannot determine how to do this.  Someone told me to increase this in coldfusion 8 adminstrator, however I don't see any java/jvm setting under Server Settings.  It is the enterprise addition.

Any ideas?

Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 17, 2009 Aug 17, 2009
LATEST

I'm not sure about the enterprise edition settings and the Windows server settings. It should be the settings on OS that is restricting this option. Otherwise, if you are not logged in to CF administrator as admin, it is the user privilege settings. If it is allowed, you should see the option "Java and JVM" -> "Maximum JVM Heap Size (MB)" and increase the limit.

-Prasanth

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources