Just a question to the developers

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
hnoke
Posts: 3
Joined: Wed Feb 18, 2009 6:14 pm

Just a question to the developers

Post 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.
Hyrelius
Posts: 257
Joined: Thu Dec 16, 2010 5:16 am

Re: Just a question to the developers

Post 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.
Image
I don't mind helping - however: I only do so if I want to.
No support for other server packs than L2J.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Just a question to the developers

Post 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.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
LasTravel
Posts: 888
Joined: Tue Jan 05, 2010 12:08 am
Location: Spain

Re: Just a question to the developers

Post by LasTravel »

You can check what's going with a java profiler.
faris
Posts: 1
Joined: Fri Jan 31, 2014 6:32 am

Re: Just a question to the developers

Post by faris »

Well, what I need to compile that? or modify in the files I have, any guide ? (thank u) =)
vampir
Posts: 113
Joined: Sun Mar 28, 2010 6:17 pm

Re: Just a question to the developers

Post 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.
Post Reply