Alan Hargreaves' Weblog

The ramblings of an Australian SaND TSC* Principal Field Technologist

* Solaris and Network Domain Technology Support Centre - The group I work for

Tags

(update 1) acoustic bind birthday blues bugs cec cec2007 cec2008 china cmt contention cringley debugging dogs dtrace earthquake encumbered-binaries extra flash funny google guitar halloween huron install kids linux liveupgrade locking mdb music mysql newyear niagra openjava opensolaris oracle patches patents percussion performance redhat secondlife security solaris sru sun support sxcr t2 t2000 timeslider ufs upgrade virtualbox windows youtube zfs
pageicon Friday Jun 11, 2004

Finding memory leaks in application space

A colleague has just written a troubleshooting document (that should be on sunsolve in the next week or so as troubleshooting document 76774) about how to find memory leaks with libumem and mdb.

Now, I've always had to restart mozilla every couple of days on the Ultra 10 at home, as I've only got 192 mb of memory in it, and it just seems to keep growing.

Now on my work desktop (an ultra 80 with substantially more memory) I run two instances of mozilla in two different profiles. One for my mail and normal browsing (run on my right screen) and one for working in Apollo (the ticketing system that PTS ans RPE are now using). Just for laughs I thought, why not start up those two with libumem and see what we find.

The interesting numbers come from the mozilla I use for general browsing and email.

   Total   17858 buffers, 818536 bytes
That's a lot of leaks to happen in 10 hours. So where were the big ones?
CACHE     LEAKED   BUFCTL CALLER
00078208    8510 06819260 libCrun.so.1`__1c2n6FI_pv_+0x28
00078208    2150 0819f480 libCrun.so.1`__1c2n6FI_pv_+0x28
00073c08    2976 02dc4168 libplc4.so`PL_strdup+0x3c
And the stacks for these callers show that they come from:
8510,2150 /tmp/mozilla/components/libmailnews.so
2976      /tmp/mozilla/components/libmsgimap.so
Unfortunately, those libraries have been stripped, so I can't get any closer to those leaks yet. I'll have to have a chat with the folks who do the Sun SPARC build.

Once I get a little more information we might be able to start hitting bugzilla. Wouldn't it be nice if we closed down some of those leaks?

Long weekend

Well that's it for Australia this week. Most states get the Queen's Birthday Holiday on Monday. Not that it's her actual birthday, but I guess we don't really need an excuse for a long weekend.

Jake's off to soccer again tomorrow. I hope he has at least as good a game as he had last week. Lucy's off to Ballet and My wife and I are off to see the new Harry Potter movie tomorrow night (I knew those cheap tickets we bought a few months back would come in useful - lucky that they don't expire until the end of the month).