RE: Memory Leak due to CMS

"Sukesh Shetty" <[email protected]> Fri, 18 Feb 2005 17:55:23 +0530
Newsgroups gmane.linux.redhat.ccm.general
Message-ID <[email protected]>
Mr Matt,

Thanks for the response.Our server is running using sun SDK 1.4.2, is
there any tool to find memory leaks in this case.

Thanks,
Sukesh Shetty

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Matthew David
Booth
Sent: Friday, February 18, 2005 5:31 PM
To: [email protected]
Subject: RE: [redhat-ccm-list] Memory Leak due to CMS

On Fri, 2005-02-18 at 17:06 +0530, Sukesh Shetty wrote:
> Mr David Matthew,
Matt ;)

>=20
> Thanks for the response.I downloaded HeapWizard.jar but I'm not able=20
> to debug the source of the memory leak.We are using tomcat server for=20
> our application and due to memory leak problem we are rebooting our=20
> server every alternate days.
> Can you please give some guidelines regarding how to use HeapWizard.

IBM has excellent documentation. You'll need to look up the specifics
yourself, but in short:

You must obviously use the IBM JDK.
Set the environment variable IBM_HEAPDUMP=3Dtrue When your server runs ou=
t
of memory, it will create a file containing the heap dump. It should
tell you about this in one of your log files (wherever stderr goes,
probably).
Find the HeapRoots tool (http://www.alphaworks.ibm.com/tech/heaproots)
to analyze this file.
It is also possible to signal the JVM to generate a heapdump immediately
without exiting.

Look for large, similar allocations of memory, probably attached to a
single structure. Chances are that even if there is more than one memory
leak that one is by far the biggest at the time you get OOM.

Matt

>=20
> Thanks,
> Sukesh Shetty
>=20
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Matthew David

> Booth
> Sent: Friday, February 18, 2005 3:46 PM
> To: [email protected]
> Subject: RE: [redhat-ccm-list] Memory Leak due to CMS
>=20
> Hmm, I don't think we've fixed any memory leaks since 1.0.1. Using=20
> source is unlikely to be a problem.
>=20
> I would very much appreciate it if you were able to debug the source=20
> of the memory leak. Some tools we've found helpful in the past have=20
> been the heapdump feature of IBM jdks
> (http://www-1.ibm.com/support/docview.wss?uid=3Dswg24004782) and java=20
> debugging tools such as OptimizeIt. In practise, heapdump has been the

> most useful. If you can show me a section of heap which grows and what

> it contains, I should be able to fix the problem.
>=20
> Matt
>=20
> On Fri, 2005-02-18 at 15:20 +0530, Sukesh Shetty wrote:
> > Mr Matt,
> > Thanks for the response, yes we are using latest version of aplaws=20
> > ie "aplaws-plus-src-1.0.1".
> > Is using source instead of rpm creating this problem?
> >=20
> > Thanks,
> > Sukesh Shetty
> >=20
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]] On Behalf Of Matthew=20
> > David
>=20
> > Booth
> > Sent: Friday, February 18, 2005 2:46 PM
> > To: [email protected]
> > Subject: Re: [redhat-ccm-list] Memory Leak due to CMS
> >=20
> > Have you tried running CMS and WAF from APLAWS
> (aplaws.sourceforge.net).
> > We've fixed a couple of memory leak bugs in there, and it could be=20
> > that your problem has been fixed.
> >=20
> > Matt
> >=20
> > On Fri, 2005-02-18 at 12:36 +0530, Sukesh Shetty wrote:
> > > Hi All,
> > >=20
> > > We are using CMS 6.1 & WAF 6.1.
> > > Our server has 1GB of RAM & is used only to run the cms=20
> > > application.Problem is whenever we publish,unpublish & create new=20
> > > articles in content-section there seems to be a memory leak & the=20
> > > RAM usage increases upto 900 GB.After some time we get "out of=20
> > > memory exception" and the application stops.Restarting of CMS also

> > > doesn't help ,we have to reboot the system to get back the used=20
> > > memory.Is this
> >=20
> > > a bug in CMS or have we missed any configuration.
> > > Any help regarding this issue will be greatly appreciated.
> > >=20
> > > Thanking in Advance,
> > > Sukesh Shetty
> > >=20
> >=20
> > --
> > Redhat-ccm-list mailing list
> > [email protected]
> > https://www.redhat.com/mailman/listinfo/redhat-ccm-list
> > Archives: https://www.redhat.com/pipermail/redhat-ccm-list/
> >=20
> >=20
> >=20
> >=20
>=20
> --
> Redhat-ccm-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/redhat-ccm-list
> Archives: https://www.redhat.com/pipermail/redhat-ccm-list/
>=20
>=20
>=20
>=20

--
Redhat-ccm-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-ccm-list
Archives: https://www.redhat.com/pipermail/redhat-ccm-list/





--=20
Redhat-ccm-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-ccm-list
Archives: https://www.redhat.com/pipermail/redhat-ccm-list/