Server Lag

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
User avatar
DareStrike
Posts: 376
Joined: Sun May 01, 2011 1:20 pm

Server Lag

Post 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 
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: Server Lag

Post by tukune »

java -server
User avatar
DareStrike
Posts: 376
Joined: Sun May 01, 2011 1:20 pm

Re: Server Lag

Post by DareStrike »

1.7
User avatar
DareStrike
Posts: 376
Joined: Sun May 01, 2011 1:20 pm

Re: Server Lag

Post 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 
User avatar
badboy29
Posts: 417
Joined: Fri Apr 24, 2009 5:34 am
Location: Brazil

Re: Server Lag

Post 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.
Aka UnHoly
User avatar
DareStrike
Posts: 376
Joined: Sun May 01, 2011 1:20 pm

Re: Server Lag

Post 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 
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: Server Lag

Post by tukune »

:!:
You do not have the required permissions to view the files attached to this post.
User avatar
DareStrike
Posts: 376
Joined: Sun May 01, 2011 1:20 pm

Re: Server Lag

Post by DareStrike »

what is wrong there
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Server Lag

Post 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.
User avatar
iquelite
Posts: 7
Joined: Tue Jun 07, 2011 7:41 pm

Re: Server Lag

Post 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
User avatar
Szponiasty
Advanced User
Advanced User
Posts: 557
Joined: Mon Apr 21, 2008 1:31 pm
Location: Eastern Poland

Re: Server Lag

Post 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

:)
And in the next chronicle they went into space, fighting the evil empire... In a galaxy far, far away xD
Post Reply