Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Sun Jun 12, 2005 6:23 pm   

zMUD 7.11a memory usage
 
Hi all,

I've noticed that when zmud starts then it uses about 8mb ram, but after 10 hours of being connected with a few characters it's risen to 60, 80 even 100mb+ memory usage according to task manager. Anyone know if this is a common thing or why it might rise so much?

I don't use the mapper, or anything exotic really. just a few hundred triggers, aliases etc, the .mud file is only 71k. Got v7.11a installed fresh having removed 7.05 fully. Running an Athlon XP 2200+, 1GB RAM and WinXP Pro SP2.

Nothing seems to prompt a spike in usage, it just gradually grows and grows, you can even watch it rising in Task Manager slowly. If there's anything worth checking let me know.

Thanks
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sun Jun 12, 2005 7:04 pm   
 
For me Zmud 7.11a on all night with the mapper and a open sticks anywhere between 15 and 25 megs which is normal, If you are going higher then that make sure you have a reasonable number of scrollback lines set (each line uses memory), Also you could have a a really messed up trigger or three too, or even using a comand via a trigger that creates a memory leak, the only way to find out is to disable triggers until memory stops increasing.
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Mon Jun 13, 2005 9:27 am   
 
from
#show Triggers: %session.NumTriggers Aliases: %session.NumAliases Variables: %session.NumVars Paths: %session.NumPaths Macros: %session.NumMacros

Triggers: 1584 Aliases: 650 Variables: 597 Paths: 341 Macros: 48

fresh reboot, zmud, mapper, mob database, eq database, chat capture window, full status window
Memory set to 1000 lines for all 3 - child, edit, and main windows:
Mem Useage: 52,488 K

After a few hours of use:
Mem Useage: 81,612 K

Minimized:
Mem Useage: 5,892 K

pretty much the same for quite a few versions (it has actually dropped for me from 7.0X.
Reply with quote
Rorso
Wizard


Joined: 14 Oct 2000
Posts: 1368

PostPosted: Mon Jun 13, 2005 11:38 am   
 
Private wrote:

Minimized:
Mem Useage: 5,892 K

pretty much the same for quite a few versions (it has actually dropped for me from 7.0X.

You cant look at the minimized memory usage. When an application is minimized Windows dumps as much as possible to the swap file. That memory usage isn't shown in the task manager as far as I know.

So check the size of the swap file too :).
Reply with quote
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Mon Jun 13, 2005 6:34 pm   
 
swap didnt change from normal to minimized
Reply with quote
Rainchild
Wizard


Joined: 10 Oct 2000
Posts: 1551
Location: Australia

PostPosted: Mon Jun 13, 2005 11:40 pm   
 
You want to enable the "VM Size" column in task manager to get a better idea of the resource breakdown.

My zMUD has 15mb in RAM 11mb in VM .. I only just logged on tho, maybe I'll check usage again later in the day.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Jun 13, 2005 11:45 pm   
 
Private, also keep in mind that if you have the mapper open, then it is using the Windows ADO/MDAC database software. This software is notorious for caching lots of stuff in memory and growing over time.

Also, I'm afraid that with 1584 triggers, your chance of having a trigger with a problem is pretty large. If you are using the #WAIT command in your triggers or have complex loops, then it's likely that you are creating more and more of the same trigger stuck in the background.

As Nexela said, the only way to debug that is to start disabling triggers until you find the problem.

I've run a memory leak detector on the latest version and it didn't find anything, so I think this version (7.11 also didn't have any leaks) is clean.
Reply with quote
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Tue Jun 14, 2005 3:54 am   
 
Naa Zugg, i aint griping at all bout the mem useage, it doesnt appear to leak. I figure for an app that i have so much going on at once, the mem useage aint bad. (also notice my comment about 7.11a using less it seems then 7.05)

Rainchild, im very familiar with task manager, VM Size is already on, thus my comment of swap didnt change from minimized to restored.

After 6:53 of cpu time:
Window restored:
Mem Useage: 30,996 Peak Mem Useage: 51,744 VM Size: 54,748
Minimized:
Mem Useage: 10,684 Peak Mem Useage: 51,744 VM Size: 54,748

swap ("virtual memory") doesnt change.

I'll check after a week or so, it usually hits it's real peak by then.

the peak after a week was like 85meg in 7.05, aint had 7.11a installed that long (or up that long) yet.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net