Jump to content
  • 0

Server dedicated, with 24 gb ram


Question

Posted

Well I wanted to ask here to advise me the best settings for my server .. since I have seen 2 or 3 guides .. but I was enough .. if anyone can contribute best, would be grateful and to use those 24 gb and serve!

 

Dedicated:

AMD Opteron 3280

24 GB DDR3-RAM

2x 2,000 GB SATA II HDD

Unlimited traffic

 

Gameserver.sh

#!/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 -Xmx8192m -Xms4096m -Xmn2048m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts -cp ./../libs/*:l2jserver_server.jar com.l2jserver.gameserver.GameServer > log/stdout.log 2>&1
[ $? -ne 2 ] && break
#	/etc/init.d/mysql restart
sleep 10
done

 

Mysql Config:

#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/serve ... ables.html

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port            = 3306
socket          = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket          = /var/run/mysqld/mysqld.sock
nice            = 0
open-files-limit = 8192

[mysqld]
#
# * Basic Settings
#
user            = mysql
pid-file        = /var/run/mysqld/mysqld.pid
socket          = /var/run/mysqld/mysqld.sock
port            = 3306
basedir         = /usr
datadir         = /var/lib/mysql
tmpdir          = /tmp
language        = /usr/share/mysql/english
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address            = 0

# The default storage   engine that will be used when create new tables when
default-storage-engine= INNODB

# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

max_connections = 800

table_cache = 3000
query_cache_size = 0
query_cache_type = 0
tmp_table_size = 64M
max_heap_table_size = 64M
memlock
thread_concurrency = 8
thread_cache_size = 200
log_slow_queries
thread_concurrency = 8
max_allowed_packet = 16M
read_buffer_size = 128K
read_rnd_buffer_size = 10M
join_buffer_size = 10M
sort_buffer_size = 10M
transaction_isolation = READ-COMMITTED

#*** MyISAM Specific options

myisam_max_sort_file_size = 1G
myisam_max_extra_sort_file_size = 1G
myisam_sort_buffer_size = 128M
key_buffer_size = 187M


# #*** INNODB Specific options ***
innodb_additional_mem_pool_size =256M
innodb_buffer_pool_size = 2048M
innodb_data_file_path = ibdata1:10M:autoextend
innodb_flush_log_at_trx_commit = 2
innodb_log_buffer_size= 16M
innodb_max_dirty_pages_pct = 90
innodb_thread_concurrency = 16
innodb_file_per_table = 1
innodb_open_files = 3000
innodb_flush_method = O_DIRECT

skip-federated

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[mysqlhotcopy]
interactive-timeout

#
# * IMPORTANT: Additional settings that can override those from this file!
#   The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/

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

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock