Page 1 of 1

Server Lag

Posted: Mon Dec 05, 2011 11:02 pm
by DareStrike
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision L2J_Server_BETA/5101:
L2JDP Revision L2J_DataPack_BETA/8584:

where everything starts to lag well. I mean with freya 200 players no lag. someone tell me what I do not have lag;
I saw them here the posts and I want to know what to do

http://l2jserver.com/old-forum/thread.p ... adid=27154
viewtopic.php?f=80&t=12159&start=15

online server 200 players

CentOS Linux 5.7
Kernel and CPU: Linux 2.6.18-274.7.1.el5 on x86_64
Processor information: AMD Athlon(tm) II X4 605e Processor, 4 cores
CPU usage:2% user, 1% kernel, 0% IO, 96% idle
Real memory:7.55 GB total, 2.33 GB used
100Mbps


GameServer_loop.sh

Code: Select all

 #!/bin/bash # exit codes of GameServer:#  0 normal shutdown#  2 reboot attempt while :; do    [ -f log/java0.log.0 ] && mv log/java0.log.0 "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"    [ -f log/stdout.log ] && mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"    java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms1024m -Xmx2048m -cp ./../libs/*:l2jserver.jar com.l2jserver.gameserver.GameServer > log/stdout.log 2>&1    [ $? -ne 2 ] && break#   /etc/init.d/mysql restart    sleep 10done 

Re: Server Lag

Posted: Tue Dec 06, 2011 1:00 am
by tukune
java -server

Re: Server Lag

Posted: Tue Dec 06, 2011 8:05 am
by DareStrike
1.7

Re: Server Lag

Posted: Tue Dec 06, 2011 9:55 am
by DareStrike
help for ram my pc

server 2g no problem
server3g problem for this

Code: Select all

 ## There is insufficient memory for the Java Runtime Environment to continue.# Native memory allocation (malloc) failed to allocate 65536 bytes for Arena::Amalloc# An error report file with more information is saved as:# /l2j/game/hs_err_pid5558.log 
http://pastebin.com/eYSqPBGi

gameserver_loop.sh

Code: Select all

 #!/bin/bash # exit codes of GameServer:#  0 normal shutdown#  2 reboot attempt while :; do    [ -f log/java0.log.0 ] && mv log/java0.log.0 "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"    [ -f log/stdout.log ] && mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"    java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms1024m -Xmx3072m -cp ./../libs/*:l2jserver.jar com.l2jserver.gameserver.GameServer > log/stdout.log 2>&1    [ $? -ne 2 ] && break#   /etc/init.d/mysql restart    sleep 10done 

Re: Server Lag

Posted: Tue Dec 06, 2011 10:33 am
by badboy29
You need OS + JDK x64(64 bits).

Your JDK:
JRE version: 7.0-b147
Java VM: Java HotSpot(TM) Server VM (21.0-b17 mixed mode linux-x86 )
:roll:

Btw your JDK is outdated.

Re: Server Lag

Posted: Tue Dec 06, 2011 12:13 pm
by DareStrike
I did the java installation of the company. what is new to make it


gameserver_loop.sh

Code: Select all

 #!/bin/bash # exit codes of GameServer:#  0 normal shutdown#  2 reboot attempt while :; do    [ -f log/java0.log.0 ] && mv log/java0.log.0 "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"    [ -f log/stdout.log ] && mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"    java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -XX:MaxPermSize=1024m -Xmx5g -server -XX:+AggressiveOpts -XX:ParallelGCThreads=2 -XX:+UseParNewGC -cp ./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServer > log/stdout.log 2>&1    [ $? -ne 2 ] && break#   /etc/init.d/mysql restart    sleep 10done  
this error :S

Code: Select all

 Error occurred during initialization of VMThe size of the object heap + VM data exceeds the maximum representable size[11:24:49] Aquilo(John): Error: Could not find or load main class .....libs.bsh-engine.jar 

Re: Server Lag

Posted: Tue Dec 06, 2011 3:46 pm
by tukune
:!:

Re: Server Lag

Posted: Wed Dec 07, 2011 1:41 pm
by DareStrike
what is wrong there

Re: Server Lag

Posted: Wed Dec 07, 2011 5:43 pm
by MELERIX
that you are using x86 Java where you should use a x64 version of Java.

also I noticed that your Java version and Linux Kerner version are outdated.

Re: Server Lag

Posted: Wed Dec 07, 2011 6:33 pm
by iquelite
I encountered the same problem Server Lag after start a day .
L2J Revision L2J_Server_BETA/5101:
L2JDP Revision L2J_DataPack_BETA/8584:
CPU: E7400
RAM:8G
OS:WindowsServer2008 R2 x64
JAVA:JDK1.7 x64

Re: Server Lag

Posted: Sun Dec 11, 2011 9:38 am
by Szponiasty
iquelite wrote:I encountered the same problem Server Lag after start a day .
L2J Revision L2J_Server_BETA/5101:
L2JDP Revision L2J_DataPack_BETA/8584:
CPU: E7400
RAM:8G
OS:WindowsServer2008 R2 x64
JAVA:JDK1.7 x64
How to determine what causes gameserver to lag:
http://www.youtube.com/watch?v=tT3TXlN_ ... e=youtu.be

:)