Re: JAXBContext leaks memory

2010-05-17 Thread Mark Shifman
Hi Pid, et al: Things are curiouser and curiouser. I decided to deploy the struts blank app after starting tomcat with startup.sh. Well there is no memory leak after undeploy and redeploy. If I start tomcat with jsvc, I get a memory leak. This is the minimal init script I used to start the

Re: JAXBContext leaks memory

2010-05-17 Thread Pid
On 17/05/2010 18:36, Mark Shifman wrote: Hi Pid, et al: Things are curiouser and curiouser. I decided to deploy the struts blank app after starting tomcat with startup.sh. Well there is no memory leak after undeploy and redeploy. If I start tomcat with jsvc, I get a memory leak. This is

Re: JAXBContext leaks memory

2010-05-17 Thread Konstantin Kolinko
2010/5/3 Mark Shifman mark.shif...@yale.edu: Using jmap -histo pid, I can watch com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl, etc increase in number (...) The JAXBContext instance is created with a singleton that is an enum (using Josh Block's pattern): The cause might be

Re: JAXBContext leaks memory

2010-05-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, I know you posted this a while ago, but I have some comments: On 5/4/2010 9:10 AM, Mark Shifman wrote: public T T getNextElement(String theElement, String elementAfter, Class Tclazz) { String elname = ; T

Re: JAXBContext leaks memory

2010-05-15 Thread Pid
On 14/05/2010 19:21, Mark Shifman wrote: After playing around I don't think the leak is from JAXBContext. My web app is running under struts 1.3.10. I tested the blank web apps that comes with struts 1.3.10 and it showed a memory leak on undeploying and redeploying. (so did the blank web

Re: JAXBContext leaks memory

2010-05-14 Thread Mark Shifman
After playing around I don't think the leak is from JAXBContext. My web app is running under struts 1.3.10. I tested the blank web apps that comes with struts 1.3.10 and it showed a memory leak on undeploying and redeploying. (so did the blank web app for the current struts 2). Using Eclipse

Re: JAXBContext leaks memory

2010-05-10 Thread Shaun Senecal
jvisualvm is an excellent tool, and so is MAT (http://www.eclipse.org/mat/downloads.php). If you can figure out which instances are increasing (as Pid indicated) its very easy to check the path of those objects to the garbage collector using one of these tools. From there its usually easy to see

Re: JAXBContext leaks memory

2010-05-04 Thread Mark Shifman
On 05/03/2010 02:53 PM, Pid wrote: On 03/05/2010 18:30, Mark Shifman wrote: On 05/03/2010 12:48 PM, Pid wrote: On 03/05/2010 17:15, Mark Shifman wrote: I have a web app running under tomcat-6.0.26 with JreMemoryLeakPreventionListener, java jdk1.6.0_18. Using jmap -histo pid, I can watch

Re: JAXBContext leaks memory

2010-05-04 Thread Pid
On 04/05/2010 14:10, Mark Shifman wrote: On 05/03/2010 02:53 PM, Pid wrote: On 03/05/2010 18:30, Mark Shifman wrote: On 05/03/2010 12:48 PM, Pid wrote: On 03/05/2010 17:15, Mark Shifman wrote: I have a web app running under tomcat-6.0.26 with JreMemoryLeakPreventionListener, java

Re: JAXBContext leaks memory

2010-05-04 Thread Mark Shifman
Thanks. I'll try Jconsole. mas On 05/04/2010 12:28 PM, Pid wrote: On 04/05/2010 14:10, Mark Shifman wrote: On 05/03/2010 02:53 PM, Pid wrote: On 03/05/2010 18:30, Mark Shifman wrote: On 05/03/2010 12:48 PM, Pid wrote: On 03/05/2010 17:15, Mark Shifman wrote: I have a web app running under

JAXBContext leaks memory

2010-05-03 Thread Mark Shifman
I have a web app running under tomcat-6.0.26 with JreMemoryLeakPreventionListener, java jdk1.6.0_18. Using jmap -histo pid, I can watch com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl, etc increase in number after running my unmarshal action, followed by undeploy and redeploy. Find Leaks

Re: JAXBContext leaks memory

2010-05-03 Thread Pid
On 03/05/2010 17:15, Mark Shifman wrote: I have a web app running under tomcat-6.0.26 with JreMemoryLeakPreventionListener, java jdk1.6.0_18. Using jmap -histo pid, I can watch com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl, etc increase in number after running my unmarshal action,

Re: JAXBContext leaks memory

2010-05-03 Thread Mark Shifman
On 05/03/2010 12:48 PM, Pid wrote: On 03/05/2010 17:15, Mark Shifman wrote: I have a web app running under tomcat-6.0.26 with JreMemoryLeakPreventionListener, java jdk1.6.0_18. Using jmap -histo pid, I can watch com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl, etc increase in number

RE: JAXBContext leaks memory

2010-05-03 Thread Caldarale, Charles R
From: Mark Shifman [mailto:mark.shif...@yale.edu] Subject: Re: JAXBContext leaks memory This is also in the webapp in WEB-INF/classes/org/blablabla When you say also, does that mean the class is in more than one place? (That would be a Bad Thing.) - Chuck THIS COMMUNICATION MAY CONTAIN

Re: JAXBContext leaks memory

2010-05-03 Thread Mark Shifman
On 05/03/2010 02:18 PM, Caldarale, Charles R wrote: From: Mark Shifman [mailto:mark.shif...@yale.edu] Subject: Re: JAXBContext leaks memory This is also in the webapp in WEB-INF/classes/org/blablabla When you say also, does that mean the class is in more than one place? (That would

Re: JAXBContext leaks memory

2010-05-03 Thread Pid
On 03/05/2010 18:30, Mark Shifman wrote: On 05/03/2010 12:48 PM, Pid wrote: On 03/05/2010 17:15, Mark Shifman wrote: I have a web app running under tomcat-6.0.26 with JreMemoryLeakPreventionListener, java jdk1.6.0_18. Using jmap -histo pid, I can watch