Page 1 of 1
Allowed Memory (linux)
Posted: Fri Jul 01, 2011 2:02 pm
by diablodoro
Can some one tell me how to increase the "Allowed Memory"
i know how to do it in windows but in linux there isn't the option in the StartGameServer.sh
Code: Select all
+----| Allowed Memory: 1044416 KB| |= Allocated Memory: 1044416 KB (100.0000%)| |= Non-Allocated Memory: 0 KB (0.0000%)| Allocated Memory: 1044416 KB| |= Used Memory: 713825 KB (68.3468%)| |= Unused (cached) Memory: 330591 KB (31.6532%)| Useable Memory: 330591 KB (31.6532%)+----
Re: Allowed Memory (linux)
Posted: Fri Jul 01, 2011 2:25 pm
by Raikkon35
Add the same option option manually to the line of "java -Djava.util..."
Re: Allowed Memory (linux)
Posted: Fri Jul 01, 2011 6:41 pm
by diablodoro
Code: Select all
#!/bin/bash cd /home/loggon/L2J/gameserver/xterm -title 'Dwyllios' -e tail -f /home/loggon/L2J/gameserver/log/stdout.log &./GameServer_loop.sh &
mmm i don't have this line
Re: Allowed Memory (linux)
Posted: Fri Jul 01, 2011 6:52 pm
by badboy29
Edit your GameServer_loop.sh...
Re: Allowed Memory (linux)
Posted: Fri Jul 01, 2011 8:11 pm
by Raikkon35
Friend, I have told you in the other thread where you asked that (
viewtopic.php?f=89&t=21360&p=130707#p130708), that you must edit "GameServer_loop.sh", there is what you want.
Re: Allowed Memory (linux)
Posted: Fri Jul 01, 2011 8:23 pm
by diablodoro
i have miss that 10x alot

Re: Allowed Memory (linux)
Posted: Sun Jul 10, 2011 10:28 pm
by Bani
Well instead of making a new topic i would like to ask here instead since it does go with my problem also. I have 16 GB Memory on Ubuntu now i was wondering what to set as max heap and what else should i use to improve the server? How much memory to allocate to MySQL and how much to L2j ? Also how to set PermSize and how to make the garbage collector as effective as possible?
Thanks in advance for any answers and help

Re: Allowed Memory (linux)
Posted: Tue Jul 12, 2011 12:43 pm
by gabrielhw
First, install the Sun Java 64b.
Second install "mysql" 64b
Third change the file like this:
GameServer.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 -Xms3584m -Xmx7168m -cp ./../libs/*:l2jserver.jar com.l2jserver.gameserver.GameServer > log/stdout.log 2>&1 [ $? -ne 2 ] && break# /etc/init.d/mysql restart sleep 10done
MySql
Read:
http://dev.mysql.com/doc/refman/5.0/en/memory-use.html
See in /etc/my.cnf
Re: Allowed Memory (linux)
Posted: Fri Jul 15, 2011 10:09 am
by MELERIX