Jump to content
  • 0

Question

Posted

Hi!Can someone help me with settings the start login and start gameserver.sh for linux?Im need good settings for 8Gb memory with starting my server in -server mode. Thx

 

Login:

# !/bin/bash

 

err=1

until [ $err == 0 ];

do

. ./setenv.sh

[ -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 -Dfile.encoding=UTF-8 -Xmx64m net.l2emuproject.loginserver.L2LoginServer > log/stdout.log 2>&1

err=$?

# /etc/init.d/mysql restart

sleep 10;

done

 

Gameserver:

# !/bin/bash

err=1

until [ $err == 0 ];

do

. ./setenv.sh

[ -f log/java0.log.0 ] && mv log/java0.log.0 "log/java/`date +%Y-%m-%d_%H-%M-%S`_java0.log.0"

[ -f log/stdout.log ] && mv log/stdout.log "log/stdout/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"

# For developers mostly (1. line gc logrotate, 2. line parameters for gc logging):

# [ -f log/gc.log ] && mv log/gc.log "log/gc/`date +%Y-%m-%d_%H-%M-%S`_gc.log"

# -verbose:gc -Xloggc:log/gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -XX:+PrintTenuringDistribution

# Alternative startup by NB4L1

# java -Dfile.encoding=UTF-8 -Xmn128m -Xms512m -Xmx1024m -server net.l2emuproject.gameserver.util.BootManager > log/stdout.log 2>&1

java -Dfile.encoding=UTF-8 -Xmx1024m net.l2emuproject.gameserver.util.BootManager > log/stdout.log 2>&1

err=$?

# /etc/init.d/mysql restart

sleep 10;

done

1 answer to this question

Recommended Posts

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...