<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Tomcat 7 EhCache Terracotta JXM WebappClassLoader Leak"]]></title>
		<link>http://forums.terracotta.org/forums/posts/list/5.page</link>
		<description><![CDATA[Latest messages posted in the topic "Tomcat 7 EhCache Terracotta JXM WebappClassLoader Leak"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Tomcat 7 EhCache Terracotta JXM WebappClassLoader Leak</title>
				<description><![CDATA[ Hello,

I have been trying for a couple of days to solve this issue. Will most likely turn out to be a config issue but I would appreciate your help.

<b>Problem Description</b>
Reloading a Tomcat Web Application using ehCache with a Terracotta Network Cache causes a WebappClassLoader memory leak

<span style="font-size: 18px; line-height: normal"><b>Env</b></span>
<b>OS:</b> Mac (dev) Linux Debian (test)
<b>Tomcat:</b> apache-tomcat-7.0.26
<b>Terracotta:</b> terracotta-3.6.1
<b>Webframework: </b> Spring 3.1.1
<b>Java: </b>
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11D50)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
<b>ehcache.xml</b>
<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">&lt;ehcache name="FCAppsCache" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:noNamespaceSchemaLocation="ehcache.xsd" updateCheck="true" monitoring="autodetect" dynamicConfig="true"&gt;
 &lt;terracottaConfig url="localhost:9510" /&gt;
 &lt;cache name="ObjectCache" maxElementsInMemory="10000" eternal="true" overflowToDisk="false"&gt;
  &lt;terracotta /&gt;
 &lt;/cache&gt;
 &lt;cache name="ObjectCache.id" maxElementsInMemory="10000" eternal="true" overflowToDisk="false"&gt;
  &lt;terracotta /&gt;
 &lt;/cache&gt;
&lt;/ehcache&gt;
</pre>
		</div>

<b> Reproducible:</b> Always

I can also provide the Heap Dump upon request.
The below links link to screen shots (tried attaching them here, however the img with="" tag was not working)

<a href='http://www.finalconcept.com.au/images/tmp-terracotta-bug-report/TomcatManagerShowingOneInstanceOfDevHouseAppWith3LeakingInstances.png' target='_new' rel="nofollow">http://www.finalconcept.com.au/images/tmp-terracotta-bug-report/TomcatManagerShowingOneInstanceOfDevHouseAppWith3LeakingInstances.png</a>
<b>This image shows the Tomcat manager interface after reloading the dev-house application 3 times, then clicking the "Find Leaks" button</b>

<a href='http://www.finalconcept.com.au/images/tmp-terracotta-bug-report/EclipseMatShowing3-2MBWebappClassLoaderLeaks.png' target='_new' rel="nofollow">http://www.finalconcept.com.au/images/tmp-terracotta-bug-report/EclipseMatShowing3-2MBWebappClassLoaderLeaks.png</a>
<b>This image shows  the 4 WebappClassLoaders with 3 of them all being dead and taking up 2MB of memory (I suspect is is more than this with all the references)</b>

<a href='http://www.finalconcept.com.au/images/tmp-terracotta-bug-report/EclipseMatAboutToGetGCRoot.png' target='_new' rel="nofollow">http://www.finalconcept.com.au/images/tmp-terracotta-bug-report/EclipseMatAboutToGetGCRoot.png</a>
<b>Showing how i came to the conclusion that it was a JMX instance by selecting all hard references</b>

<a href='http://www.finalconcept.com.au/images/tmp-terracotta-bug-report/EclipseMatShowing3-WebappClassLoadersWithStartedFalse.png' target='_new' rel="nofollow">http://www.finalconcept.com.au/images/tmp-terracotta-bug-report/EclipseMatShowing3-WebappClassLoadersWithStartedFalse.png</a>
<b>Showing three WebappClassLoader's with started = false</b>

<a href='http://www.finalconcept.com.au/images/tmp-terracotta-bug-report/EclipseMatShowing4BaseNotificationBroadcasterEntry.png' target='_new' rel="nofollow">http://www.finalconcept.com.au/images/tmp-terracotta-bug-report/EclipseMatShowing4BaseNotificationBroadcasterEntry.png</a>
<b>Showing the 4 BaseNotificationBroardcastEntry when I think there should only be one </b>]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/6801.page#34190</guid>
				<link>http://forums.terracotta.org/forums/posts/list/6801.page#34190</link>
				<pubDate><![CDATA[Mon, 19 Mar 2012 07:48:28]]> GMT</pubDate>
				<author><![CDATA[ agp]]></author>
			</item>
			<item>
				<title>Re:Tomcat 7 EhCache Terracotta JXM WebappClassLoader Leak</title>
				<description><![CDATA[ Can you please share the use case source , logs to reproduce and analyze this.]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/6801.page#34781</guid>
				<link>http://forums.terracotta.org/forums/posts/list/6801.page#34781</link>
				<pubDate><![CDATA[Wed, 25 Apr 2012 03:12:04]]> GMT</pubDate>
				<author><![CDATA[ rajoshi]]></author>
			</item>
	</channel>
</rss>