Without seeing the code my first thought is that you are opening a file stream or file handler without closing it within the loop. make sure that if there are any open files that they are closed.
Cheers, Simon On 23 October 2017 at 14:38, Scott Thornton < scott.thorn...@hnehealth.nsw.gov.au> wrote: > Hi, > > > > ( In case anyone is still subscribed to cfaussie ) > > > > I have recently moved some code from cf6 to cf9 enterprise and a > particular process consumes all of the resources and hangs the CF server. > The exact same code on CF9 standard works okay ( although different windows > server version ). > > > > The code is processing HL7 messages ( health messaging, admission, > discharge messages etc ) and basically it works in a continuous cfloop, > selecting the top 1 message from the database, and calls a bunch of extra > pages to process the messages. > > > > > > My errors look like the following, from the log file: > > > > 10/12 14:58:20 error ROOT CAUSE: > > java.lang.OutOfMemoryError: GC overhead limit exceeded > > at java.util.IdentityHashMap. > init(IdentityHashMap.java:244) > > at java.util.IdentityHashMap.<init>(IdentityHashMap.java: > 190) > > at coldfusion.monitor.memory.MemoryTrackerProxy. > registerMemoryTracker(MemoryTrackerProxy.java:182) > > at coldfusion.monitor.memory.MemoryTracker. > registerWithObject(MemoryTracker.java:222) > > at coldfusion.monitor.memory.MemoryTracker.onAddObject( > MemoryTracker.java:174) > > at coldfusion.monitor.memory.MemoryTrackerProxy. > onReplaceValue(MemoryTrackerProxy.java:598) > > at coldfusion.monitor.memory.MemoryTrackerProxy.onReplace( > MemoryTrackerProxy.java:551) > > at coldfusion.runtime.Variable. > setInternal(Variable.java:143) > > at coldfusion.runtime.Variable.set(Variable.java:71) > > at coldfusion.runtime.LocalScope. > bindInternal(LocalScope.java:362) > > at cfsbbp03_pims_hl72ecfm1750835129$ > funcHL7LISTGETAT.runFunction(D:\WWWRoot\HNEPlatypus2\Batch\ > sbbp03_pims_hl7.cfm:86) > > at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) > > at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter. > invoke(UDFMethod.java:368) > > at coldfusion.filter.FunctionAccessFilter.invoke( > FunctionAccessFilter.java:55) > > at coldfusion.runtime.UDFMethod. > runFilterChain(UDFMethod.java:321) > > at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) > > at coldfusion.runtime.CfJspPage._ > invokeUDF(CfJspPage.java:2582) > > at cfsbbp03_pims_hl72ecfm1750835129._factor7(D: > \WWWRoot\HNEPlatypus2\Batch\sbbp03_pims_hl7.cfm:403) > > at cfsbbp03_pims_hl72ecfm1750835129._factor16( > D:\WWWRoot\HNEPlatypus2\Batch\sbbp03_pims_hl7.cfm:319) > > at cfsbbp03_pims_hl72ecfm1750835129._factor17( > D:\WWWRoot\HNEPlatypus2\Batch\sbbp03_pims_hl7.cfm:317) > > at cfsbbp03_pims_hl72ecfm1750835129._factor24( > D:\WWWRoot\HNEPlatypus2\Batch\sbbp03_pims_hl7.cfm:180) > > at cfsbbp03_pims_hl72ecfm1750835129._factor26( > D:\WWWRoot\HNEPlatypus2\Batch\sbbp03_pims_hl7.cfm:1) > > at cfsbbp03_pims_hl72ecfm1750835129.runPage(D:\ > WWWRoot\HNEPlatypus2\Batch\sbbp03_pims_hl7.cfm:1) > > at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) > > at coldfusion.filter.CFVariablesScopeFilter.invoke( > CFVariablesScopeFilter.java:56) > > at coldfusion.tagext.lang.ModuleTag.doStartTag( > ModuleTag.java:271) > > at coldfusion.runtime.CfJspPage._ > emptyTcfTag(CfJspPage.java:2722) > > at cfsb_hl7_table_processor2ecfm1950658070._ > factor6(D:\WWWRoot\HNEPlatypus2\Batch\sb_hl7_table_processor.cfm:552) > > at cfsb_hl7_table_processor2ecfm1950658070._ > factor8(D:\WWWRoot\HNEPlatypus2\Batch\sb_hl7_table_processor.cfm:518) > > at cfsb_hl7_table_processor2ecfm1950658070._ > factor13(D:\WWWRoot\HNEPlatypus2\Batch\sb_hl7_table_processor.cfm:439) > > at cfsb_hl7_table_processor2ecfm1950658070._ > factor14(D:\WWWRoot\HNEPlatypus2\Batch\sb_hl7_table_processor.cfm:1) > > at cfsb_hl7_table_processor2ecfm1950658070. > runPage(D:\WWWRoot\HNEPlatypus2\Batch\sb_hl7_table_processor.cfm:1) > > > > I have moved the process back to my old server ( cf6 ), but the server > admin team would prefer that the server is removed sooner rather than later. > > > > I am contemplating putting another website on the cf9 server and running > it from there. > > > > There are few online forums with posts regarding similar problems, which > mostly refer to var scoping variables in functions, or are looking at > object creation. > > > > I am seeking specific advice regarding what to do in this instance. Any > gotcha, quick fixes, things to double check? > > > > > Unless explicitly attributed, the opinions expressed in this email are > those of the author only and do not represent the official view of Hunter > New England Local Health District nor the New South Wales Government.. > ------------------------------ > > -- > You received this message because you are subscribed to the Google Groups > "cfaussie" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cfaussie+unsubscr...@googlegroups.com. > To post to this group, send email to cfaussie@googlegroups.com. > Visit this group at https://groups.google.com/group/cfaussie. > For more options, visit https://groups.google.com/d/optout. > -- Kind regards Simon Haddon -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at https://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout.