Page 1 of 1

Just a question to the developers

Posted: Sun Jan 12, 2014 8:57 pm
by hnoke
Hello,

I only have a small question. I'm running a heavily modified L2JServer's Freya based server with about 130 players on.

In the last 3-4 days, the server kinda froze a few times. Mobs stopped respawning, some of them even disappeard (kinda like unspawned). There might be more things that stucked, but so far this is all I noticed as at that moment I usually triggered restart.

There are no errors, exceptions in the console, nothing I could use to solve the issue.

I'm not asking for an exact solution, just for your opinion, do you have any idea in what area this problem could be? In one case, we did a quick reload skills right after the server started, before players joined joined, in another case I did an access rights reload, but in my opinion those things are not responsible for it (especially because the server stucked many hours after this reload). So, any clue where should I be searching for this issue?

Thank you.

Re: Just a question to the developers

Posted: Mon Jan 13, 2014 4:05 am
by Hyrelius
It's very difficult to say - it's actually not much more than guessing into the blue.

The server I played on used to be restarted every 24-48 hours (game server) and perhaps less frequently the login server. I am not sure what purpose it serves, but I assume, that the garbage collector just doesn't remove every unused variable or the variables are not unused / not marked for garbage collection.

Check processor and RAM usage over time. If you strange things happen when your server runs low on RAM or processor power (though I think it'll rather be RAM), it might not have enough resources (RAM) in order to respawn everything. Especially if there are a lot of scripts, chances are the variables within those scripts aren't properly disposed and hence take up space instead of freeing it.

Edit: I'm a developer, just not a decorated and knowledgeable L2J-developer (I'm still working on this). If the problem isn't solved by my suggestions, perhaps you'll be lucky enough to hear from some real dev, who might know what usually goes wrong in such situations.

Re: Just a question to the developers

Posted: Mon Jan 13, 2014 8:48 am
by jurchiks
If your server is heavily modified, there could be any number of things going wrong. You might have a memory leak or deadlocks somewhere, so you'll just have to debug your server. Profiling might also help.

Re: Just a question to the developers

Posted: Sat Jan 18, 2014 12:09 am
by LasTravel
You can check what's going with a java profiler.

Re: Just a question to the developers

Posted: Fri Jan 31, 2014 6:35 am
by faris
Well, what I need to compile that? or modify in the files I have, any guide ? (thank u) =)

Re: Just a question to the developers

Posted: Thu Feb 06, 2014 9:05 pm
by vampir
If system of your machine is Linux, that's really good guide how to profile it remotely:
http://www.yourkit.com/docs/95/help/attach_wizard.jsp

Place somewhere in the machine Linux version of YourKit.
Use putty and run ./yjp.sh -attach
Choose correct process.

Then just connect to it from YourKit installed on your PC. If server is stucked forever, i don't think it should be hard to find it.