Jump to content
  • 0

[Help]Enable More RAM


Question

1 answer to this question

Recommended Posts

  • 0
Posted

You need to edit GameServer_loop.sh file

just type in: nano GameServer_loop.sh once you are in gameserver main directory and it will open that file!

Then you will see something like this:

 

#!/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 -server -Dfile.encoding=UTF-8 -Djava.util.logging.manager=l2.universe.util.L2LogManager -Xms1024m -Xmx8192m -cp ./../libs/*:l2universe.jar l2.univ$

        [ $? -ne 2 ] && break

#      /etc/init.d/mysql restart

        sleep 10

done

 

 

All you have to do is change -Xmx8192m this value i have it on 8192 because i want my GS to use 8GB RAM

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...