It is currently Tue Dec 02, 2008 5:32 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Tool tips memory leak&lag
PostPosted: Wed Oct 24, 2007 4:46 am 
Offline

Joined: Wed Aug 29, 2007 2:44 pm
Posts: 24
Recently we were facing problems with lags and memory leaks. It usually started after there was more then 80 players. After that, in few hours and jumps (each jump cca 300MB), memory jumped to 3GB and server became totally unpredictible. Lags started when the memory reached over 2.5GB (after first jump).
We shut down toolstips and that problem disappeard. Server is holding around 2GB without any problem.


We have now more then 130 players in the peak and quite big data, pol allocates cca 2GB after start.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 24, 2007 9:59 am 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 843
Location: Bowling Green, KY
What core are you using?

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 24, 2007 11:10 am 
Offline

Joined: Fri Aug 10, 2007 3:30 pm
Posts: 9
We are using latest RC5. And by shuting down tooltips Demostenes means that we changed UOFeatureEnable from 0x1a0 to 0x00 -> so we disabled little more features, but I think tooltips was the reason for memory leaks and lags.
This memory leaks are quite strange - it just "jump" in few minutes/sec from 2,250GB to 2,550+, then for few hours hold there and then "jump" again to 2850+ .., but this happens only after few hours ( we have auto restarts in 4:00am and first "jump" is in 17:00+, maybe number of players having something to do with it ).

After setting UOFeatureEnable=0x00 is everything OK server is running second day without any problems with lags or memory.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 24, 2007 1:12 pm 
Offline

Joined: Sun Feb 05, 2006 4:35 pm
Posts: 162
Location: Poland
I have same problem after hooking megacliloc packet.

Here is my problem related to memory leak:
http://forums.polserver.com/ftopic1880.php

It happens after ~ 24h uptime.

_________________
Shutdown();


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 24, 2007 1:12 pm 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 843
Location: Bowling Green, KY
Could you try setting Feature Enable back to how it was, and just disable that packet hook?

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 28, 2007 3:49 pm 
Offline

Joined: Wed Aug 29, 2007 2:44 pm
Posts: 24
Small update: Memory is still leaking, but many times slower (cca 10x). With previous version of POL we were running (0.95) there were no problems, so we are suspecting there is some problem with new core.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 31, 2007 7:55 am 
Offline

Joined: Tue Mar 27, 2007 6:30 am
Posts: 24
MuadDib: out of curiosity, what algorhitm/memory scheme do you use for caching the tooltips? If any...
Or are the packets being generated over and over again every time any client asks for them?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 31, 2007 8:19 am 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 843
Location: Bowling Green, KY
Tooltips themselves are generated if a client requests it, on the spot.

Would be nice for someone to report any difference between with a hook, and without. Might help narrow it down some too.

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 31, 2007 8:22 am 
Offline

Joined: Tue Mar 20, 2007 7:17 am
Posts: 106
Location: Poland
I can report some...

As I tested there was no difference if the packet was hooked or not (I even moved the directory away)

I had UoFeatureenable set 0x1a8 (to show the single click window)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 01, 2007 4:41 pm 
Offline

Joined: Fri Aug 10, 2007 3:30 pm
Posts: 9
MuadDib wrote:
Tooltips themselves are generated if a client requests it, on the spot.

Would be nice for someone to report any difference between with a hook, and without. Might help narrow it down some too.


It seems that the our problem with memory "jumps" has only little to do with tooltips after all, turning tooltip off has only slown down the problem 10x +- :) ( as Demostenes write before me ), maybe it is in all packet hooks and tooltips was just one of most used, or maybe it is somewhere else, i dont really know, but now server can work for few days, before first memory jump occurs.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 18, 2008 11:25 am 
Offline

Joined: Wed Aug 29, 2007 2:44 pm
Posts: 24
Any progress with this?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 27, 2008 1:37 pm 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 9:28 am
Posts: 292
Location: Germany, Bavaria
just try latest core...

Shinigami


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 27, 2008 2:17 pm 
Offline

Joined: Fri Aug 10, 2007 3:30 pm
Posts: 9
Shinigami wrote:
just try latest core...

Shinigami


Thx for the new release !

Sure, i am going to test it right now on our shard. Will post results in few days.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 04, 2008 10:30 am 
Offline

Joined: Tue Mar 20, 2007 7:17 am
Posts: 106
Location: Poland
Any progress???

This allocation problem makes me tired:(


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl