Garbage collection - WoWInterface
Thread Tools Display Modes
07-12-05, 12:30 AM   #1
A Defias Bandit
Join Date: Jul 2005
Posts: 2
Garbage collection

I have quite a lot of addons installed(about 80) and after enabling ui-mem I noticed that useage would steadily climb up and up, probably at a rate of about 20kb a second. This results in quite frequent garbage collection, which locks up the game for a few seconds and can often lead to my poor priest's death What I'd like to know is, is this normal? Does garbage collection only occur at the threshold, in which case it's inevitable, or is it ongoing? Any suggestions to reduce it would be much apprechiated.
  Reply With Quote
07-12-05, 12:50 AM   #2
Jack's raging bile duct
Kaelten's Avatar
Join Date: May 2005
Posts: 782
garbage collection only occures at that certain point which is normally about 6-8 mes above the initial. We have ZERO control over it.

If your experiancing these cleanups way too often then your initial memory is probably close to your max memory. you could try raising your max to see if this helps.

Also, 20kb isn't too bad really, I've seen my go over 1000kb per second. but then again I'm trying to fix KCET so it doesn't do that.
WowAce.com & CurseForge.com Adminstrator
Developer of Ace3, OneBag3, and many other addons and libraries
Project lead and Mac developer for the Curse Client

Anyone that needs what they want
And doesn't want what they need
I want nothing to do with
  Reply With Quote
07-12-05, 01:04 AM   #3
A Firelord
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 492
Garbage collection is normal and will always happen. Its threshhold is something the game determines based on memory use and previous garbage collections.

20k/sec is fairly bad but should be tolerable. I edited the titan performance plugin to always display kb/sec, and mine idles around .5k standing still doing nothing, goes to around 1.5k when running around and solo fighting, and occasionally peaks around 5k. (Groups are getting annoyed at me stopping when it breaks 2k/sec and I try to find out why lol)

You can increase your AddOn memory to make the garbage collection happen less frequently, but don't crank it up too high or when the garbage collection hits it's going to make the pauses longer. 48MB is probably a good first bump if you're at 32MB like most.

Best solution is to identify the problem mods and remove/replace them. LittleJohn wrote a handy mod called TraceEvent you can use to identify the problem mods. Be aware that examining the data can alter it. So I'd use it to find what mods are really busy or creating a lot of garbage and then try removing the mod and seeing what youre kb/sec goes down to.

If your garbage collection climbs at 20k/sec while idle (I hope not), you have some mods really abusing the OnUpdate event. Using TraveEvent, enter "OnUpdate$" without the quotes and hit Shift+Add, then hit Shift+Sort and it will display a list of mods' OnUpdates in order of UI memory increases.

But use it as a guide. In the examining of the data it can skew things wildly. Like a table.sort using another function may in actuality create 512 bytes of garbage, but with TraceEvent watching the flurry of table.sort it could appear to create 250k bytes. Remove the mod, reload the UI and see if memory use went down a lot.

Remember to backup SavedVariables when temporarily removing/experimenting with mods too. If a mod doesn't exist when the UI loads it will dump all the SavedVariable information for that mod.
  Reply With Quote
07-12-05, 12:03 PM   #4
A Defias Bandit
Join Date: Jul 2005
Posts: 2
Thanks for the replies I'll try TraceEvent now. If I am understanding correctly, there is no way for mods to collect garbage untill it reaches the threshold? Anyway, thanks again.

Edit: I've got it down to about 12kb/s idle now, the big users left is chronos and PlayerFrame, which I assume is the default UI?
Edit2: Also, ActionButton is going at a pretty swift 1700cps, I hope that's normal :P

Last edited by dynamicx : 07-12-05 at 12:54 PM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Garbage collection

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off