sometimes the npc lock and return to work, it's like I'm missing something or memory settings this misplaced
My dedicated have 8 cores and 24 gb ram , whit exelent latency...
Configs :
PD : i use Java jdk 8 in debian
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 -server -Dfile.encoding=UTF-8 -Xms2048m -Xmx12288m -cp config/xml:./../libs/****-1.9.5.jar:./../libs/*:reunion-core.jar com.****.**** l2r.gameserver.GameServer > log/stdout.log 2>&1 [ $? -ne 2 ] && break# /etc/init.d/mysql restart sleep 10done
Code: Select all
# ---------------------------------------------------------------------------# Client packet queue tuning settings# --------------------------------------------------------------------------- # Queue size, do not set it too low !# 0 - use value MaxReadPerPass + 2 (from mmo.properties)# Default: 0ClientPacketQueueSize = 80 # Maximum number of packets in burst.# Execution will be aborted and thread released if more packets executed in raw.# 0 - use value MaxReadPerPass + 1 (from mmo.properties)# Default: 0ClientPacketQueueMaxBurstSize = 70 # Maximum number of packets per second.# Flood detector will be triggered if more packets received.# After triggering all incoming packets will be dropped until flooding stopped.# Default: 80ClientPacketQueueMaxPacketsPerSecond = 160 # Average number of packets per second calculated during this interval.# Using larger value decrease number of false kicks, but slower reaction to flood.# Avoid using too low or too high values, recommended between 3 and 10.# Default: 5ClientPacketQueueMeasureInterval = 15 # Maximum average number of packets per second during measure interval.# Flood detector will be triggered if more packets received.# After triggering all incoming packets will be dropped until flooding stopped.# Default: 40ClientPacketQueueMaxAveragePacketsPerSecond = 120 # Maximum number of flood triggers per minute.# Client will be kicked if more floods detected.# Default: 2ClientPacketQueueMaxFloodsPerMin = 5 # Maximum number of queue overflows per minute.# After overflow all incoming packets from client are dropped until queue is flushed.# Client will be kicked if more queue overflows detected.# Default: 1ClientPacketQueueMaxOverflowsPerMin = 10 # Maximum number of buffer underflows per minute.# Client will be kicked if more underflow exceptions detected.# Default: 1ClientPacketQueueMaxUnderflowsPerMin = 10 # Maximum number of unknown packets per minute.# Client will be kicked if more unknown packets received.# Default: 5ClientPacketQueueMaxUnknownPerMin = 5

Code: Select all
#port = 3306socket = /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.socknice = 0open-files-limit = 8192 [mysqld]## * Basic Settings#user = mysqlpid-file = /var/run/mysqld/mysqld.pidsocket = /var/run/mysqld/mysqld.sockport = 3306basedir = /usrdatadir = /var/lib/mysqltmpdir = /tmplanguage = /usr/share/mysql/englishskip-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 whendefault-storage-engine= INNODB # Set the SQL mode to strictsql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" max_connections = 1200 table_cache = 2500query_cache_size = 16Mquery_cache_type = 1tmp_table_size = 64Mquery_cache_limit=10Mmax_heap_table_size = 64M memlockthread_concurrency = 8thread_cache_size = 200log_slow_queriesthread_concurrency = 8max_allowed_packet = 32Mread_buffer_size = 128Kread_rnd_buffer_size = 32Mjoin_buffer_size = 8Msort_buffer_size = 16Mtransaction_isolation = READ-COMMITTED # #*** INNODB Specific options ***innodb_additional_mem_pool_size =32Minnodb_buffer_pool_size = 4096Minnodb_data_file_path = ibdata1:10M:autoextendinnodb_flush_log_at_trx_commit = 2innodb_log_buffer_size= 32Minnodb_max_dirty_pages_pct = 90innodb_thread_concurrency = 8innodb_file_per_table = 1innodb_open_files = 2000innodb_file_io_threads = 4innodb_support_xa = 0innodb_lock_wait_timeout = 160innodb_file_per_table = 1
[05:15:27] ERROR: Could not update item Greater CP Potion(20353)[269348578] in DB: Reason: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
I need to configure?