but after setting options, how to generate heap dump? i found "D:/java.hprof". but i encountered error when i analyze it using HAT. Started HTTP server on port 7000Reading from d:/java.hprof...Dump file created Thu Jun 21 15:01:28 SGT 2007java.io.EOFException at java.io.DataInputStream.readFully(Unknown Source) at java.io.DataInputStream.readFully(Unknown Source) at hat.parser.HprofReader.read(HprofReader.java:202) at hat.parser.Reader.readFile(Reader.java:90) at hat.Main.main(Main.java:149)
> Date: Thu, 21 Jun 2007 07:42:27 +0200> From: [EMAIL PROTECTED]> To: > users@tomcat.apache.org> Subject: Re: how to generate java heap dump from > tomcat 5.0.27> > I use the same method as you except the fact that all java > options are> within a file and I set the JAVA_OPTS to -Xoptionsfile=....> > > Le 21/06/2007 05:48, Guan Yu a écrit :> > i need to generate java heap dump > to trace memory leak in our web application. We are using tomcat 5.0.27.> > I > added "-agentlib:hprof=heap=dump,format=b,file=D:/java.hprof" to Java Options > using "Configure Tomcat". Is this the correct method? How do I continue from > here? > > _________________________________________________________________> > > Check out some new online services that are so new they haven’t even been > officially released yet.> > http://get.live.com/beta> > > > > ---------------------------------------------------------------------> To > start a new topic, e-mail: users@tomcat.apache.org> To unsubscribe, e-mail: > users- [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]> _________________________________________________________________ Did you know you can now customize your mailbox with different colours to suit your mood with Windows Live Hotmail? http://get.live.com/mail/features