Dude, just do this... on the command line where you run java ..... com.yourstuff.YourClass add this parameter -Xrunhprof:file=java.hprof.txt,heap=all,format=a,doe=y Look at the end of the file. It will have all the objects allocated/deallocated. Run your program for a while. Look for the objects that get allocated but NEVER deallocated. These are many times static objects like singletons and such that don't clean up well. enjoy, Michael Lee Architect Afterbot [EMAIL PROTECTED]
----- Original Message ----- From: "Billy Ng" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, August 28, 2002 2:38 PM Subject: Re: Memery Leak > So you think it's not from Struts? I would not think so either. Otherwise, > there must be many people complaining about it. Do you mean to use > OptimizeIt to check it? By the way, I have a Account Manager object in the > session. If user click on the Log out, it will remove the object form the > session. What about the user exit the program without click on Log Out. > Will the object being holding in the session forever? How should I hamdle > this? > > Thanks! > > Billy Ng > > ----- Original Message ----- > From: "Cliff Rowley" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Wednesday, August 28, 2002 10:59 AM > Subject: Re: Memery Leak > > > > Ok, then it's possibly not that. I should check your code, as suggested > > use a profiler - which will give you an indication as to what is causing > > the leak. > > > > On Wed, 2002-08-28 at 19:09, Billy Ng wrote: > > > I don't know. Yes, the memory usage is getting higher and higher. > > > > > > Billy Ng > > > > > > ----- Original Message ----- > > > From: "Cliff Rowley" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > Sent: Wednesday, August 28, 2002 2:15 AM > > > Subject: RE: Memery Leak > > > > > > > > > > Could it be the old javac memory leak bug? Does memory usage get > > > > progressively bigger? The bug is fixed in JDK 1.4.1-beta, but it's > not > > > > a recommended upgrade yet as there are other bugs in it. > > > > > > > > On Wed, 2002-08-28 at 09:53, Martin Samm wrote: > > > > > have you tried profiling your application? It could be objects not > be > > > garbage collected. Check your tags/servlets to ensure they are garbage > > > collecting correctly. > > > > > > > > > > -----Original Message----- > > > > > From: Billy Ng [mailto:[EMAIL PROTECTED]] > > > > > Sent: 28 August 2002 09:50 > > > > > To: [EMAIL PROTECTED] > > > > > Subject: Memery Leak > > > > > > > > > > > > > > > Hi folks, > > > > > > > > > > I am using Tomcat 4.0.3, Struts 1.0.2, and Debian Linux 2.2.19. I > > > notice > > > > > the size of the free memory is going down everytime there is a user > > > hitting > > > > > my app. It will never go back up. Anybody having the same problem? > > > > > > > > > > Billy Ng > > > > > > > > > > _________________________________________________________________ > > > > > Send and receive Hotmail on your mobile device: > http://mobile.msn.com > > > > > > > > > > > > > > > -- > > > > > To unsubscribe, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > > > For additional commands, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > > > > > > -- > > > > > To unsubscribe, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > > > For additional commands, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > > > > > -- > > > > > > > > Regards > > > > > > > > ------------------------------------------- > > > > Cliff Rowley | [EMAIL PROTECTED] > > > > Software Engineer | www.doctype.co.uk > > > > +44 (0) 1206 514263 | www.cliffrowley.com > > > > ------------------------------------------- > > > > > > > > > > > > -- > > > > To unsubscribe, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > > For additional commands, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > -- > > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > > > -- > > > > Regards > > > > ------------------------------------------- > > Cliff Rowley | [EMAIL PROTECTED] > > Software Engineer | www.doctype.co.uk > > +44 (0) 1206 514263 | www.cliffrowley.com > > ------------------------------------------- > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

