On Friday 08 Feb 2008, Marco Antonio C. Santos wrote: > Tom, may be an OT but Mark Mandel recommends instantiate javaLoader in > server scope. Please look this link: > http://www.compoundtheory.com/?action=displayPost&ID=212
Oh, no, no, not OT at all- this is on CF8, but I'll give it a try. Hmm... that does seem to have done the trick, so it looks like the URLLoader bug is still there. I'm running the latest patch roll up (number 2). What's more, having read the article I think I can explain what I'm seeing. My CFC created a JavaLoader in the variables scope, and my test page (the one that I would request a few times before the server ran out of memory) would create this CFC and then use it too generate two PDF files. So each run would make CF keep "a strong reference to the Class object that refers to that Java object". When the page finished running, this would mean "the JavaLoader CFC may well be garbage collected, but the URLClassLoader isn't, which can cause a memory leak." Incidently, a version of the code not using JavaLoader (just CreateObject(), but with the .jar copied to the CF server's lib dir) ran over 400 times with no issues, and Server Monitor's memory usage summary had a nice saw tooth look to it. Using JavaLoader in variables would only run a dozen times before CF crashed, with ServerMonitor showing a steep upward slope. Using JavaLoader in server is now up to 100 requests, and Server Monitor has a nice saw tooth look to it. -- Tom Chiverton Helping to globally disseminate front-end web-readiness on: http://thefalken.livejournal.com **************************************************** This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298693 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

