Allowed Memory (linux)

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
diablodoro
Posts: 67
Joined: Thu Oct 11, 2007 8:54 pm

Allowed Memory (linux)

Post 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%)+---- 
User avatar
Raikkon35
Posts: 178
Joined: Sat Mar 08, 2008 2:54 pm

Re: Allowed Memory (linux)

Post by Raikkon35 »

Add the same option option manually to the line of "java -Djava.util..."
User avatar
diablodoro
Posts: 67
Joined: Thu Oct 11, 2007 8:54 pm

Re: Allowed Memory (linux)

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

Re: Allowed Memory (linux)

Post by badboy29 »

Edit your GameServer_loop.sh...
Aka UnHoly
User avatar
Raikkon35
Posts: 178
Joined: Sat Mar 08, 2008 2:54 pm

Re: Allowed Memory (linux)

Post 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.
User avatar
diablodoro
Posts: 67
Joined: Thu Oct 11, 2007 8:54 pm

Re: Allowed Memory (linux)

Post by diablodoro »

i have miss that 10x alot :)
Bani
Posts: 21
Joined: Sun Jan 30, 2011 11:55 pm

Re: Allowed Memory (linux)

Post 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 :)
gabrielhw
Posts: 77
Joined: Thu Jun 17, 2010 6:32 pm

Re: Allowed Memory (linux)

Post 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
MELERIX FOR PRESIDENT
\O/
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Allowed Memory (linux)

Post by MELERIX »

that is the old manual.

here is for MySQL 5.5.x: http://dev.mysql.com/doc/refman/5.5/en/memory-use.html
Post Reply