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
096.4 & memory problem
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096
Display posts from previous:   

Author Message
orii



Joined: 08 Jan 2007
Posts: 13

PostPosted: Sat Feb 10, 2007 8:24 am    Post subject: 096.4 & memory problem Reply with quote

I've got a problem with Pol 096, which services 2 realms at the momment, and loads about 1500 scripts during the start.
When the server is up, operating system notifies, that memory takes away about 800MB, and when the players are connected, about 1GB, and this is where the real problem starts. Every uptime hour causes increase of occupied memory for about 100MB, in spite of almost constant number of nps's, pc's and items. In spite of all, we quickly approach 2GB memory limit (windows 2k3), and a server crushes.

I wander, if you could show me the best way of tracking that memory leak, or if I set in my boot.ini file /3GB paramter, server will achieve additional 1GB of memory, which will give us some more time to server crash.

Author Message
SMJ



Joined: 10 May 2006
Posts: 113

PostPosted: Sat Feb 10, 2007 8:15 pm    Post subject: Reply with quote

First thing to do: Upgrade from 096.4 to 096.5 and see if there's still a problem.

Author Message
orii



Joined: 08 Jan 2007
Posts: 13

PostPosted: Sat Feb 10, 2007 8:32 pm    Post subject: Reply with quote

there is a bug with stairs & etc
..o, and nothing about memory leak in core-changes.

Author Message
OldnGrey



Joined: 04 Feb 2006
Posts: 520

PostPosted: Sat Feb 10, 2007 8:39 pm    Post subject: Reply with quote

I ran 096 in its various releases for over a year in test and was most impressed with the way it didn't grow in RAM usage. I could easily leave the server up for 1 week without the ram getting our of control.

I'd have to suggest it isn't the core causing your problems.

What's your problem with stairs? The height of the player has been changed a couple of times iirc. In 097 for instance I have had to raise the ceiling in a few players to allow players to walk. I can't remember if 096.6 is going to include a change for char height to fix a problem reported by CWO, but I think that's not coming out for a while, being paradoxically tied to 097 and the 097 distro being released at the same time as the 097 core.

Author Message
orii



Joined: 08 Jan 2007
Posts: 13

PostPosted: Sat Feb 10, 2007 10:06 pm    Post subject: Reply with quote

stairs are not a problem. memory leak is a problem ;p
..and i dont know where is problem (core or script)

i just searching for a tools or advice to find where is 1GBram.

Author Message
orii



Joined: 08 Jan 2007
Posts: 13

PostPosted: Sun Feb 11, 2007 4:31 am    Post subject: Reply with quote

this :

Code:

use uo;
use polsys;
use file;

program txtlogerscript(who)
    who := who;
    var pdict  := dictionary;
    LogToFile(":commandlog:logs/scripts.log","=============================================================");
    foreach thg in (polcore().all_scripts)
        pdict[thg.name] := Cint(pdict[thg.name]) + thg.var_size;
    endforeach
    foreach thg in (pdict.keys())
        LogToFile(":commandlog:logs/scripts.log","["+thg+"]["+pdict[thg]+"]");
    endforeach
endprogram


not show any problem in scripts, so where?

Author Message
orii



Joined: 08 Jan 2007
Posts: 13

PostPosted: Thu Feb 15, 2007 10:27 am    Post subject: Reply with quote

or maybe, please, anyone can say - what is that:

Remaining script objectimps: xxxx

last line after shutdown.

Author Message
orii



Joined: 08 Jan 2007
Posts: 13

PostPosted: Mon Feb 19, 2007 7:34 am    Post subject: Reply with quote

really noone know what is that:
"Remaining script objectimps xxx"
? :>

some screenshot
1) after restart

2) after several hours


1269884 (main memory)
1916928 (VM size)

Author Message
Bracco



Joined: 28 Dec 2006
Posts: 80

PostPosted: Sun Mar 04, 2007 6:18 pm    Post subject: Reply with quote

i'm sorry to bring up this post, but did you find any solution?

Author Message
orii



Joined: 08 Jan 2007
Posts: 13

PostPosted: Tue Mar 06, 2007 7:42 pm    Post subject: Reply with quote

no, sorry
i think-there is still problem with packethook-memory-leak
but...without packethook my shard is totaly unplayble, i can`t test this.

Author Message
Shinigami
POL Core Developer


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

PostPosted: Wed Mar 07, 2007 8:00 am    Post subject: Reply with quote

1. Please check your script base for usage of AppendConfigFile!

2. Do u modifiy Config files using external applications while server is running?

Shinigami

Author Message
orii



Joined: 08 Jan 2007
Posts: 13

PostPosted: Fri Mar 09, 2007 7:01 am    Post subject: Reply with quote

1 ) no, with AppendConfigFile i have only script "staticsexport/import/check" etc. (i don`t remember when i used this last time - meany years ago ;p - so i think it`s not a problem)
1b) i have many scripts with datafile & logfile
2) i have external aplication : this aplication have access to data/accounts.txt (r/o)

Author Message
Bracco



Joined: 28 Dec 2006
Posts: 80

PostPosted: Fri Mar 09, 2007 7:26 am    Post subject: Reply with quote

that should be fine, but instead there must be some other thing that causes that high memory usage... i have the same problem, and just can't figure out what's causing this

Author Message
OldnGrey



Joined: 04 Feb 2006
Posts: 520

PostPosted: Fri Mar 09, 2007 7:50 am    Post subject: Reply with quote

You can always try the crude methods.

What about on a test shard: does ram usage grow without players, if you remove the npcs files and turn off the spawner does it still grow? Can you reproduce the things that do cause ram usage to grow? Are there any situations where you can stop it growing - turn off packages etc.

I would expect RAM usage to grow slightly over time due to scripts loading and staying resident. Even unloadcfg has little effect on my RAM, certainly nothing to worry about.

Checked script.log, datafile.log?

The packet hooks in the 097 distro don't cause problems on my shard either. I guess it comes down to trying to get it to misbehave on a test shard.

Author Message
Bracco



Joined: 28 Dec 2006
Posts: 80

PostPosted: Fri Mar 09, 2007 7:59 am    Post subject: Reply with quote

OldnGrey wrote:
You can always try the crude methods.

What about on a test shard: does ram usage grow without players, if you remove the npcs files and turn off the spawner does it still grow? Can you reproduce the things that do cause ram usage to grow? Are there any situations where you can stop it growing - turn off packages etc.

I would expect RAM usage to grow slightly over time due to scripts loading and staying resident. Even unloadcfg has little effect on my RAM, certainly nothing to worry about.

Checked script.log, datafile.log?

The packet hooks in the 097 distro don't cause problems on my shard either. I guess it comes down to trying to get it to misbehave on a test shard.


i am using 097 RC2, ram usage doesn't grow without players, i checked script.log, pol.log, debug.log and found nothing strange.
to me it seems like nearly every script that runs does not release all the memory it used... so the more players, the more script runs, the more memory grows, and grows faster

i remember this problem was introduced with one of the first 096 betas, but seems like something similar was in there from before (see my post in bug reports 097)

imho, it could be related to the script caching system or something like that

Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096 All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 




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