PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Tool tips memory leak&lag

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 097
Display posts from previous:   

Author Message
Demostenes



Joined: 29 Aug 2007
Posts: 24

PostPosted: Wed Oct 24, 2007 8:46 am    Post subject: Tool tips memory leak&lag Reply with quote

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.

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Wed Oct 24, 2007 1:59 pm    Post subject: Reply with quote

What core are you using?

Author Message
Keryan



Joined: 10 Aug 2007
Posts: 9

PostPosted: Wed Oct 24, 2007 3:10 pm    Post subject: Reply with quote

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.

Author Message
qrak



Joined: 05 Feb 2006
Posts: 157
Location: Poland

PostPosted: Wed Oct 24, 2007 5:12 pm    Post subject: Reply with quote

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.

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Wed Oct 24, 2007 5:12 pm    Post subject: Reply with quote

Could you try setting Feature Enable back to how it was, and just disable that packet hook?

Author Message
Demostenes



Joined: 29 Aug 2007
Posts: 24

PostPosted: Sun Oct 28, 2007 7:49 pm    Post subject: Reply with quote

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.

Author Message
tartaros



Joined: 27 Mar 2007
Posts: 24

PostPosted: Wed Oct 31, 2007 11:55 am    Post subject: Reply with quote

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?

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Wed Oct 31, 2007 12:19 pm    Post subject: Reply with quote

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.

Author Message
coltain



Joined: 20 Mar 2007
Posts: 87
Location: Poland

PostPosted: Wed Oct 31, 2007 12:22 pm    Post subject: Reply with quote

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)

Author Message
Keryan



Joined: 10 Aug 2007
Posts: 9

PostPosted: Thu Nov 01, 2007 8:41 pm    Post subject: Reply with quote

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 +- Smile ( 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.

Author Message
Demostenes



Joined: 29 Aug 2007
Posts: 24

PostPosted: Mon Feb 18, 2008 3:25 pm    Post subject: Reply with quote

Any progress with this?

Author Message
Shinigami
POL Core Developer


Joined: 30 Jan 2006
Posts: 292
Location: Germany, Bavaria

PostPosted: Wed Feb 27, 2008 5:37 pm    Post subject: Reply with quote

just try latest core...

Shinigami

Author Message
Keryan



Joined: 10 Aug 2007
Posts: 9

PostPosted: Wed Feb 27, 2008 6:17 pm    Post subject: Reply with quote

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.

Author Message
coltain



Joined: 20 Mar 2007
Posts: 87
Location: Poland

PostPosted: Sun May 04, 2008 2:30 pm    Post subject: Reply with quote

Any progress???

This allocation problem makes me tired:(

Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 097 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty