Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-01-2010, 09:13 AM
Irreverent
The Solo Server
 
Join Date: May 2007
Posts: 416
Default Brainstorming: Memory leak issue?

Team,

I've noticed that I have a huge memory issue if I leave my server running for more than 2 weeks without a reboot/refresh. At start up, my zone.exe's are running at about 10M each with 10M or so of VirtualMem as well. AFter a week the Memory is about 78-100M each, with 250-300M VMem. So, needless to say I get into a resource issue eventually. My questions is if there is a known memory leak, or is it due to my logging, etc?

My setup:
-Dedicated Database Server running MySql 5.0(Server'03)
-Dedicated Application Server(XP Pro)
-EMU: Most Recent Vanilla CVS code (1775 atm)
-Compiled with Studio Express '08
-Perl 5.10
-ZLib
-Tortoise CVS
-Log file uses all default values (Which after a week, easily a gig worth of log files)

Now that I've split my servers, the mem issue takes longer to run into constrants but it will still eventually happen where lag kicks and in zones start crashing.

Any thoughts?
__________________
OP of Irreverent Server (The Solo Server)
Our Forums
Reply With Quote
  #2  
Old 12-01-2010, 03:27 PM
melkor_41
Fire Beetle
 
Join Date: Jul 2010
Posts: 25
Default

load 2k3 on your app server or if you dont have another license swap them around and use the xp box as mysql and use the 2k3 box as the app server.

xp doesn't handle memory well for process that come and go like dynamic zones. It should be "ok" for a static service like mysql as long as you dont stay logged in with apps open. You could also do the app on the 2k3 box and use ubuntu or debian on the xp box for mysql for extra stability.
Reply With Quote
  #3  
Old 12-01-2010, 03:52 PM
Rogean's Avatar
Rogean
Administrator
 
Join Date: Jul 2003
Location: Massachusetts
Posts: 708
Default

get moar memories
__________________
EQEmulator Developer / Administrator
Reply With Quote
  #4  
Old 12-01-2010, 04:27 PM
Caryatis
Dragon
 
Join Date: May 2009
Location: Milky Way
Posts: 539
Default

Also seriously 2 weeks? If nothing else you should be updating something in a 2 week period that requires a restart lol.
Reply With Quote
  #5  
Old 12-01-2010, 09:40 PM
Rogean's Avatar
Rogean
Administrator
 
Join Date: Jul 2003
Location: Massachusetts
Posts: 708
Default

Quote:
Originally Posted by Caryatis View Post
Also seriously 2 weeks? If nothing else you should be updating something in a 2 week period that requires a restart lol.
We update once a month sometimes. (4 weeks~)
__________________
EQEmulator Developer / Administrator
Reply With Quote
  #6  
Old 12-01-2010, 09:54 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,072
Default

Quote:
Originally Posted by Rogean View Post
We update once a month sometimes. (4 weeks~)
You also have memory leaks pretty well taken care I'm sure. Whether it be 3rd party software or just solid source. Unless you just felt like saying that because the stability is awesome LOL.
Reply With Quote
  #7  
Old 12-01-2010, 10:58 PM
Rogean's Avatar
Rogean
Administrator
 
Join Date: Jul 2003
Location: Massachusetts
Posts: 708
Default

Quote:
Originally Posted by Akkadius View Post
You also have memory leaks pretty well taken care I'm sure. Whether it be 3rd party software or just solid source. Unless you just felt like saying that because the stability is awesome LOL.
All of that, plus I eat RAM for breakfast~
__________________
EQEmulator Developer / Administrator
Reply With Quote
  #8  
Old 12-01-2010, 10:59 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,072
Default

Quote:
Originally Posted by Rogean View Post
All of that, plus I eat RAM for breakfast~
LOL, I would expect no other response.
Reply With Quote
  #9  
Old 12-02-2010, 08:39 AM
Irreverent
The Solo Server
 
Join Date: May 2007
Posts: 416
Default

I typically update weekly, but only if there is something pertaining(like the month of bot-o'holic updates I didn't update for quite awhile)

But ok, in goes 21G of ram to feed the Rogean.

Well, maybe not. Going to update the other machine to 2003 and see how'that goes.
__________________
OP of Irreverent Server (The Solo Server)
Our Forums
Reply With Quote
  #10  
Old 12-03-2010, 02:26 PM
melkor_41
Fire Beetle
 
Join Date: Jul 2010
Posts: 25
Default

dont forget unless you upgrade to a 64 bit operating system adding ram past 4gb will do nothing for you. the OS cant even see the extra ram.
Reply With Quote
  #11  
Old 01-12-2011, 09:11 AM
Irreverent
The Solo Server
 
Join Date: May 2007
Posts: 416
Default

OK, computer was upgrade to Server'03 but still having a memory issue.

I have 50 zones running, world server, and chatserver(which crashes in 5mins anyway).

But after a couple days, several zone.exe's are using 300k M and around 1G of VM. Which, I think it quite high. Granted, its hard to know which service = which zone actually running, but when I just TaskManager kill it, I watch my zones up and sometimes they're an active zone or sometimes idle.

Now, I don't have a /logs directory at the moment. But, even when I did I had this issue..but it did seam to take longer before memory got ate up.

To repeat setup:
3G Ram CAS2
AMD 4400x2 x939
Perl 10
Studio Express
ZLib
Vanilla compiles from most recent svn
default log.ini(empty)

Run 50 dyanmic zones, 1 launcher.

Nothing else runs on this computer. Whiped clean, only has required files/applications to get it to run.
-zlib
-perl
-visio express
-cvs
-all updated windows patches

The MySQL server is a different box.

Any other thoughts, as eventually if I don't want my machine I get a VM too low warning, zones start randomly crashing, zoning-lag-LDs, and other ghosts start showing up. Well, within system/advanced/memory would it really matter if server was running with cpu and/or memory to serve priority to background or applications? Tried both, but since these are applications that's what I have selected.(but on the MYSql server I have it as background services...and that machine is perfect)
__________________
OP of Irreverent Server (The Solo Server)
Our Forums
Reply With Quote
  #12  
Old 01-12-2011, 12:11 PM
Congdar
Developer
 
Join Date: Jul 2007
Location: my own little world
Posts: 751
Default

Thought I would add some information about what i've noticed with the growing zone.exe processes in windows2k3. The zone.exe process that grows the most for me is kithicor, and it crashes repeatedly. This may have something to do with the day/night perl operation. Not neccessarily perl, but it might be something to do with mob_list and/or npc_list.
As the script changes from the bixies to the skellies the lists grow and grow until they hit the hard coded 300 limit. When that happens, assigning a name to them creates logging errors adding ! to the beginning of the npc names until the zone crashes. It appears that the mobs are removed from the list or at least one of the lists but maybe it's not working correctly.
__________________
The Realm
Reply With Quote
  #13  
Old 01-12-2011, 12:25 PM
Irreverent
The Solo Server
 
Join Date: May 2007
Posts: 416
Default

Yikes, I haven't had the ! issue yet.

But some other things:
1) Issue still existed with XP, as well as VISTA...since server did exist on those before...but not the current extreme
2) It MAY be when the VM/Mem goes up, but my perl acts all screwy too. I'll get a mob using quests stuff from a different zone if they have the same name. (Example:(Infamous) Marl Kastane's Version in CoM using Katta's chatter. Or Briana in Burning Woods)

I know perl has issues, but I can't explain why since the structure only looks at /quests/zone/npc_name.pl on how its getting it from another zone(unles its cached and not properly purging/filtering...and why zones grow LARGE) If that's the case, upon "idle" is there a way to clearcache each time? That way on player re-entry is clears it out nice and fresh(and low memory?)
__________________
OP of Irreverent Server (The Solo Server)
Our Forums
Reply With Quote
Reply


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

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

Forum Jump

   

All times are GMT -4. The time now is 04:12 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3