Elitist Jerks
Register
Blogs
Urban Rivals
Forums
New Posts


Go Back   Elitist Jerks > Public Discussion > Public Discussion
Elitist Jerks Login

gamerDNA Login

Welcome to Elitist Jerks
We're testing some new features on the site regarding OpenID registration and coordination with gamerDNA. If you experience any issues with registering an account, please take the time to fill out a report and send it to this e-mail address. We would appreciate any assistance you could provide in making sure everything is functioning as intended. Thanks!

If this is your first visit, please be sure to check out the FAQ and the forum rules. Users must register to post and new registrations are subject to a one day "mute" period to get acquainted with the community.

Reply
 
LinkBack Thread Tools
Old 01/31/07, 3:03 PM   #1
Andeh
Relapsing Feels Good
 
Orc Rogue
 
Balnazzar
I was wondering if there are some "best practices" for tracking down which mods have slow but steady memory leaks.

To elaborate, I run a rather large collection of addons, of which about 70% are Ace2, plus Nurfed and a couple others. When I first load or force a garbage collection, my memory usage is at around 19 MB. Over the course of playing for 15 minutes or so, this balloons up to 49 MB. While I think my machine can handle this fine, this sort of excessive increase in memory usage indicates (to me) poorly written code. I've tried using TekSupport to identify the culprit(s), but unfortunately it seems that often the latest build ends up locking your UI during combat (which is when the increases seem to occur). I managed to identify MetaHUD/DHUD as quite the little piggy and replaced it with my recoded Nurfed HUD, but the problem hasn't entirely gone away.

Any suggestions? I'd post a list of my current mods, but I'm at work right now.

Edit: I should mention that I have considered the "no-brainer" solution of individually disabling mods and reloading. The problem is that this leak seems to be occurring at a rather slow pace until I get into mass combat. I'll log in, putz around town for 5-10 minutes and only be at ~22 MB. I'll head into an instance, and 2 pulls in I'll be at 39 MB. It may very well come down to the trial and error method of detection, but I'd prefer to find a more elegant solution.
 
User is offline.
Reply With Quote
Old 01/31/07, 6:19 PM   #2
 Kalman
And It's Delicious
 
Kalman's Avatar
 
<>
Orc Shaman
 
No WoW Account
There are some differences in the way 2.0 handles tables that cause memory utilization to be higher than would be observed previously. I don't know details, though. A more important stat, in some ways, than current memory in use is increase rate.

Originally Posted by Vontre
Oh, nah, I just type things for the sake of typing things. ^_^
Originally Posted by Lyta
The dog nailed me like three times that day. It resulted in my ass hitting the ground and my legs waving in the air.
 
User is online.
Reply With Quote
Old 01/31/07, 7:48 PM   #3
Andeh
Relapsing Feels Good
 
Orc Rogue
 
Balnazzar
Ahhh, I figured that it could be something like that Kalman. Maybe that mods were not allowed to create new or destroy old tables as part of the "trusted interface" deal, and thus were just getting slightly larger each fight. Change in memory usage is quite small outside of combat, but climbs quickly to a certain size while in combat.
 
User is offline.
Reply With Quote
Old 01/31/07, 7:55 PM   #4
Kaacee
Raid Parrot
 
Dwarf Priest
 
Khadgar
On a related note, are any mods doing automatic garbage collection? I'm tired of clicking performancefu.
 
User is offline.
Reply With Quote
Old 01/31/07, 8:58 PM   #5
Saroz
Piston Honda
 
Saroz's Avatar
 
Human Paladin
 
Kul Tiras (EU)
Garbage collection in 2.0 is really screwed up, mine loads at 30 MiB used, I have it set to GC at 50MiB and everything freezes for 3-4 seconds when it does GC, it didn't do this before 2.0 at all.

Saroz

Author of sRaidFrames: http://www.wowace.com/wiki/SRaidFrames
... aswell as: BadgeWatch, Aurora, FuBar_AlchemyFu, FuBar_CombatTimeFu & Memento Mori
 
User is offline.
Reply With Quote
Old 01/31/07, 9:12 PM   #6
Wodahs
Don Flamenco
 
Human Rogue
 
Lightbringer
Garbage collection is different now. You wont see it hit untill the ui memory setting you make is reached. It defaults to 48 megs. Once you hit 48, it will do a gc, and your mem use will drop. Its not the same as it was. If you want, you can actually figure out how much mem you use, add 25%, and set that as your ui mem in the addons screen, and you will have more frequent, but shorter gc's.
 
User is offline.
Reply With Quote
Old 02/01/07, 5:18 AM   #7
 mutagen
My Ice Stone has Melted
 
mutagen's Avatar
 
Dwarf Priest
 
Proudmoore
I suspect (but don't know for sure) that some of the increasing memory usage is inherent in the way Lua handles variable allocation and is difficult to avoid. Certainly identifying the worst offenders and deciding if the addon is worth the memory leak would be useful.

KLHPerformanceMonitor might be useful for tracking down the memory hogs in your addon collection. TekSupport may also be useful.

Originally Posted by Vaccine View Post
You already have Holyform.
 
User is offline.
Reply With Quote
Reply

Go Back   Elitist Jerks > Public Discussion > Public Discussion

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Totemus Memory Hog? Y/N Ramah76 The Dung Heap 2 06/12/07 12:47 AM
Tracking down UI lag Lrigatonmai User Interface and AddOns 31 05/25/07 12:08 PM
RFC: Raid Tracking mod Northerner User Interface and AddOns 0 05/17/07 6:24 AM
Arena Targetting and Tracking Mods Jekar User Interface and AddOns 5 04/03/07 11:59 AM