Server performance

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
tropheo
Posts: 176
Joined: Tue Apr 21, 2009 3:09 pm

Server performance

Post by tropheo »

Hello all,
I have one new server with Ubuntu Desktop i7 920 4x 2x 2.66 GHz with 8 GB RAM some one can help a little on server performance?

GameServer

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=net.sf.l2j.util.L2LogManager -Xms1024m -Xmx1024m -cp ./../libs/*:l2jserver.jar net.sf.l2j.gameserver.GameServer > log/stdout.log 2>&1	[ $? -ne 2 ] && break#	/etc/init.d/mysql restart	sleep 10done
If I use -Xms1024m -Xmx3024m -cp i get :

Code: Select all

Error occurred during initialization of VMCould not reserve enough space for object heapCould not create the Java virtual machine.
:S??
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Re: Server performance

Post by qwerty13 »

Your OS is a x64?
User avatar
badboy29
Posts: 417
Joined: Fri Apr 24, 2009 5:34 am
Location: Brazil

Re: Server performance

Post by badboy29 »

tropheo, For 1 Quad Core with 8GB running in Debian 5.0 x64 i use this:

GS settings:
java -server -Dfile.encoding=UTF-8 -Xms768m -Xmx4g -Xmn256m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+DoEscapeAnalysis -XX:+UseCompressedOops -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31 -XX:+AggressiveOpts -cp ./../libs/*;l2jserver.jar net.sf.l2j.gameserver.GameServer
Mysql settings:
skip-external-locking
memlock
myisam-recover = BACKUP
key_buffer = 600M
join_buffer = 10M
join_buffer_size = 256K
max_allowed_packet = 32M
thread_stack = 256K
thread_cache_size = 16
max_connections = 600
table_cache = 1024
#thread_concurrency = 10
query_cache_limit = 128M
query_cache_size = 512M
query_cache_type = 1
I hope I have helped. Man see your pm or enter in msn :)
Aka UnHoly
f5inet
Posts: 24
Joined: Thu Nov 29, 2007 8:56 am
Location: Spain, ou yeah!

Re: Server performance

Post by f5inet »

you will need OS & JVM 64bits.
Post Reply