Assigning RAM

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
kornom
Posts: 227
Joined: Thu Sep 26, 2013 3:48 pm

Assigning RAM

Post by kornom »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:LAST
L2JDP Revision Number:LAST

Hey guyz.. Im trying to assign more ram to my server, no luck...

My settings>

Code: Select all

#!/bin/bash err=1until [ $err == 0 ]; 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"    nice -n -2 java -Xms128m -Xmx128m -cp ./../libs/*:l2jlogin.jar com.l2jserver.loginserver.L2LoginServer > log/stdout.log 2>&1    err=$?#   /etc/init.d/mysql restart    sleep 10;done 
Result:

GameServer: Started, free memory 230 Mb of 1365 Mb

My machine has 24 GBs of RAM
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

Re: Assigning RAM

Post by JMD »

im surpriced the server loaded you assigned only 128mb ram. try something like 12gb
kornom
Posts: 227
Joined: Thu Sep 26, 2013 3:48 pm

Re: Assigning RAM

Post by kornom »

JMD wrote:im surpriced the server loaded you assigned only 128mb ram. try something like 12gb

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 -Xms10240m -Xmx2048m -cp ./../libs/*:l2jserver.jar com.l2jserver.gameserver.GameServer > log/stdout.log 2>&1    [ $? -ne 2 ] && break#   /etc/init.d/mysql restart    sleep 10done
sorry JMD those are my correct settings!

Result still the same
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Assigning RAM

Post by jurchiks »

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.
kornom
Posts: 227
Joined: Thu Sep 26, 2013 3:48 pm

Re: Assigning RAM

Post by kornom »

I tried their settings, wont load at all now since it ct2.5 >.<
Coul anyone provide a configuration for latest beta please?

I got 24 gbs of ram... I can allocate everything to the server..
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Assigning RAM

Post by jurchiks »

Did you read the link in my post?
These are Java flags, not related to l2j at all.
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.
Post Reply