Memory Usage

Old bugs stored here for reference.
Locked
User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Memory Usage

Post by John Adams » Wed Jan 07, 2009 7:38 am

LE, can you please check if there is potentially any memory leaks in the current version? I have loaded a few more zones, which is admittedly a lot of unclean data yet to be worked on, but with these 1,000's more NPCs plus the hugeness of the Items list now - My EQ2World is throwing virtual memory errors when I use /reload spawns. I saw EQ2World.exe using 992mb ram just now before my VM crashed.

Giving it 2GB RAM now and will try messing with it again. Just a heads up in case something is wrong.

Here's my startup for comparison:

Code: Select all

[Status] Loading opcodes..
[Status] Loading structs..
[Status] Loading command list..
[Status] Loaded 114 entity command lists.
[Status] Loaded 7513 NPC(s).
[Status] Loaded 1219 Object(s).
[Status] Loaded 6 GroundSpawn(s).
[Status] Loaded 610 Widget(s).
[Status] Loaded 921 Sign(s).
[Status] Loading ground spawn items..
[Status] Loading loot data..
[Status]        Loaded 0 loot tables.
[Status]        Loaded 0 loot drops.
[Status]        Loaded 0 spawn loot lists.
[Status] Loading Transporter Information..
[Status]        Loaded 18 Teleporter(s)
[Status] Loaded global variables list..
[Status] Loaded visual states list..
[Status] Loading World Time..
[Status] Loading items.. (this might take a few minutes)
[Status]        Loaded 275 Bag(s)
[Status]        Loaded 1986 Food(s)
[Status]        Loaded 11932 Weapon(s)
[Status]        Loaded 28841 Armor/Shield Piece(s)
[Status]        Loaded 0 Skill Item(s)
[Status]        Loaded 9120 Regular Items
[Status] Loading spells..
[Status]        Loaded 3674 Spell(s)
[Status] Loading LUA spells..
[Status]        Loaded 23 LUA Spell(s)
[Status] Loading factions..
[Status]        Loaded 52 Factions
[Status] Loading skills..
[Status]        Loaded 129 Skills
[Status] Loading Quests..
[Status]        Loaded 50 Quest(s)
[Status] Loading Merchant Information..
[Status]        Loaded 0 Merchant List(s)
[Status]        Loaded 0 Merchant Multiplier(s)
[Status] Loading Spawn Script Information..
To my surprise, World is actually running a lot fatter than before with these new datas loaded heh. Wow. This is me online, alone, with 1 zone booted:
usage.png
After 1 /reload spawns:
usage2.png
After 2 /reload spawns:
usage3.png

Etc... That look normal to you?
You do not have the required permissions to view the files attached to this post.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Re: Memory Usage

Post by LethalEncounter » Wed Jan 07, 2009 3:09 pm

Nope, that doesnt look right. I'll take a look at it.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Memory Usage

Post by John Adams » Wed Jan 07, 2009 3:28 pm

In watching Zcoretri playing / reloading spells, this honestly may have always existed but was never noticable until all this data got loaded. I see World (with no /reload spawns) has grown about 50M since server startup - maybe about 30 mins, with huge desynching happening to a few clients, and he is likely using /reload luasystem and /reload spells.

Nowhere near as obvious as /reload spawns tho.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Re: Memory Usage

Post by LethalEncounter » Wed Jan 07, 2009 5:50 pm

It should be vastly improved now. When I get time to rewrite the spawn code (again) I'll try to reduce the amount of memory being used.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Memory Usage

Post by John Adams » Wed Jan 07, 2009 5:58 pm

Let me know when you start rewriting spawns (again), I have a laundry list of shit to throw at ya. :D j/k

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Memory Usage

Post by John Adams » Wed Jan 07, 2009 6:19 pm

You know I hate kissing anyone's ass in front of the entire world, but man you are amazing sometimes lol... Not only did you cut the size of the overall memory used at startup, but /reload spawns no longer appears to gobble up all resources.

I am more amazed by the first fix. :) Can't wait to see what else you got planned.

Startup w/ 2 zones booted:
usage4.png
After 1 /reload spawns:
usage5.png
You do not have the required permissions to view the files attached to this post.

Locked

Who is online

Users browsing this forum: No registered users and 0 guests