Page 1 of 1

[DONE HOPEFULLY] server lags every 5 minutes

Posted: Wed Mar 27, 2013 4:24 pm
by puredemonsss
L2J Revision 5808
L2JDP Revision 9461



so i properly installed and set the server from
http://www.l2jserver.com/nightly/

the problem is that the game lags every 5 minutes
i can see the cpu full loads at processes: javablabla.exe
i tried some older revisions and the same
i tried setting save data intervals to bigger butt no effect

I know i installed properly and leave it's retail settings, only a few sett up like atack speed bla bla autolearn skills

I have from the same branch another server that is running for an year and it haves not problem with lag
it barely using cpu lool XD !


widows xp sp3
MySQL Server 5.5 posibility that i need 5.6 ?
java7 SEDK

Re: server lags at 5 minutes

Posted: Sat Mar 30, 2013 2:45 pm
by Szponiasty
You're most likely out of RAM (I'm assuming you're using 32bit system).

Re: server lags at 5 minutes

Posted: Sun Mar 31, 2013 1:23 am
by puredemonsss
Szponiasty wrote:You're most likely out of RAM (I'm assuming you're using 32bit system).
i have 3 gig of ram, i know the limit at 32 bit is 3.2 gig
so when i'm playng i hava like 600 mb of ram free
the server ony takes like 1.3 gig and uses page file too

i don't tink the ram is the problem here
i tink the problem is that i have MySQL Server 5.5 and i need 5.6, i heard there is a lag problem related to 5.5 with those version for a while, or is just a scam !

Re: server lags every 5 minutes

Posted: Sun Mar 31, 2013 12:47 pm
by UnAfraid
Non properly configured mysql looks like to me

Re: server lags every 5 minutes

Posted: Mon Apr 01, 2013 12:54 pm
by puredemonsss
UnAfraid wrote:Non properly configured mysql looks like to me
[Do you mean that i have to install the 5.6 ? How do i config coz i usualy leave it on default setings !

Re: server lags at 5 minutes

Posted: Mon Apr 01, 2013 2:47 pm
by Szponiasty
puredemonsss wrote:
Szponiasty wrote:You're most likely out of RAM (I'm assuming you're using 32bit system).
i have 3 gig of ram, i know the limit at 32 bit is 3.2 gig
so when i'm playng i hava like 600 mb of ram free
the server ony takes like 1.3 gig and uses page file too

i don't tink the ram is the problem here
i tink the problem is that i have MySQL Server 5.5 and i need 5.6, i heard there is a lag problem related to 5.5 with those version for a while, or is just a scam !
In 32 bit OS you can allocate sth around 1.4G of RAM max to JVM :P

Re: server lags at 5 minutes

Posted: Tue Apr 02, 2013 1:42 pm
by puredemonsss
Szponiasty wrote: In 32 bit OS you can allocate sth around 1.4G of RAM max to JVM :P
Well i have a friend that uses 32bit like me and he dont have the same problem, and the proccess lags even with no client started at exact 5 min. I hope to finde the problem coz i still have some ideas. Il post it if i finde it !

Re: server lags every 5 minutes

Posted: Tue Apr 02, 2013 9:05 pm
by puredemonsss
ok i tink i got it thanx "Szponiasty" i hope :mrgreen:
so i only increase it from 1024 to 1280 mb

startGameServer.bat

Code: Select all

@echo offtitle Game Server Console:startecho Starting L2J Game Server.echo.REM -------------------------------------REM Default parameters for a basic server.java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms1280m -Xmx1280m -cp ./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServerREMREM If you have a big server and lots of memory, you could experiment for example withREM java -server -Xmx1536m -Xms1024m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOptsREM -------------------------------------if ERRORLEVEL 2 goto restartif ERRORLEVEL 1 goto errorgoto end:restartecho.echo Admin Restart ...echo.goto start:errorecho.echo Server terminated abnormallyecho.:endecho.echo server terminatedecho.pause
i hope the lag will not reapear i hope :mrgreen: [/b]

Re: server lags every 5 minutes

Posted: Tue Apr 02, 2013 9:29 pm
by MELERIX
puredemonsss wrote:ok i tink i got it thanx "Szponiasty" i hope :mrgreen:
so i only increase it from 1024 to 1280 mb

startGameServer.bat

Code: Select all

@echo offtitle Game Server Console:startecho Starting L2J Game Server.echo.REM -------------------------------------REM Default parameters for a basic server.java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms1280m -Xmx1280m -cp ./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServerREMREM If you have a big server and lots of memory, you could experiment for example withREM java -server -Xmx1536m -Xms1024m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOptsREM -------------------------------------if ERRORLEVEL 2 goto restartif ERRORLEVEL 1 goto errorgoto end:restartecho.echo Admin Restart ...echo.goto start:errorecho.echo Server terminated abnormallyecho.:endecho.echo server terminatedecho.pause
i hope the lag will not reapear i hope :mrgreen: [/b]
is wrong, read this: viewtopic.php?f=80&t=26806&p=158066#p158066

Re: server lags every 5 minutes

Posted: Tue Apr 02, 2013 9:52 pm
by puredemonsss
MELERIX wrote:is wrong, read this: viewtopic.php?f=80&t=26806&p=158066#p158066
ok i se but i have an poor pc so i thought that a little bit increase will do some good, but 8 gb, 8 cores, 64bit . . . is damn good PC, when my pc is like this :mrgreen:
windows xp sp3 32bit
ram 3 giga
cpu 1x @2790 mhz intel pentium 4 no HT (some prog. tell me that i have ht hoo knows :mrgreen: )
gpu hd 3650 512 mb
see what i mean ? :mrgreen:
but if you can give me a good config. pls post it and thanx for help
Ill try like this than, and hope is good :mrgreen:

Code: Select all

java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms1024m -Xmx1280m -cp ./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServer
[/b]

Re: [DONE HOPEFULLY] server lags every 5 minutes

Posted: Tue Apr 02, 2013 10:38 pm
by Arantir
From my experience I can say that with geodata and max memory size less than ~1.5gb there some "out of memory" errors could appear after a server runs for a day or longer, even if there are no players (it was a server for testing). With bigger memory size it's runs fine for weeks (without restarts, I meant). Without a geo it should be ~700mb less.
a server needs some memory just for it's proper work, and it's more than a server needs to just starts.