Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ---------------------------------
- # Сетевые настроки сервера
- # ---------------------------------
- # 1 - Адрес на котором прослушивается игровой сервер.
- # 0.0.0.0 - все доступные.
- # * - все доступные.
- # 2 - Порт игрового сервера
- GameServerHostName = *
- GameServerPort = 7774
- # 1 - Порт логин сервера
- # 2 - Адрес логин сервера
- LoginPort = 9013
- LoginHost = localhost
- # Внешнесетевой адрес сервера
- ExternalHostname = 186.2.166.65
- # Внутрисетевой адрес сервера
- InternalHostname = 186.2.166.65
- # ------------------------------------
- # Section: Subnets & Advanced Routing
- # ------------------------------------
- # Define optional networks and router IPs
- #
- # Format:
- #
- # Subnet = host, net/mask; host, net/mask, net/mask
- #
- # host - IP address (200.100.200.100) or
- # fully qualified domain name (example.org)
- #
- # net/mask - mask 192.168.0.0/16 or 192.168.0.0/255.255.0.0
- # would be 192.168.*.*
- #
- # External - external hostname, you defined in server.properties
- # Internal - internal hostname, you defined in server.properties
- #
- # Example:
- # Subnet = 169.254.1.100, 169.254.0.0/16, 111.222.333.0/255.255.255.0
- InternalNetworks =
- OptionalNetworks =
- Subnet =
- # Список хостов доступных для подключения к Telnet
- ListOfHosts = 127.0.0.1,localhost
- # ----------------------------
- # Настройка базы данных
- # ----------------------------
- # Тип используемого пула
- PoolType = ru.catssoftware.sql.HikariDatabaseFactory
- # MySQL драйвер
- Driver= com.mysql.jdbc.jdbc2.optional.MysqlDataSource
- # Адрес базы данных
- URL = jdbc:mysql://localhost/l2mad_x100_craftpvp?useUnicode=true&characterEncoding=utf-8
- # 1 - Логин базы данных
- # 2 - Пароль базы данных
- Login = root
- Password =
- # Максимальное количество подключений к базе данных
- # Если у игроков лаги, увеличьте количество подключений
- # 400 коннектов хватит с головой до 2к онлайна.
- MaximumDbConnections = 400
- ########################################################
- # Server socket backlog size
- # Default: 50
- # See http://www.linuxjournal.com/files/linuxjournal.com/linuxjournal/articles/023/2333/2333s2.html
- ServerBindSocketBacklog = 50
- # IO execution mode
- # Default: POOLED(<cpu_core_count>)
- # - POOLED All IO operations are executed in a special thread IO execution pool.
- # - FIXED All IO operations execution is spread across fixed number of treads
- #
- IOExecutionMode = POOLED
- # Num of IO execution threads.
- # Default: -1 - Num of CPU cores.
- #
- IOExecutionThreadNum = -1
- # Income packet execution mode.
- # Default: DIRECT
- # - DIRECT - The worst. Income packets are directly executed after receiving and decrypting. As packets here implemented terribly, it not only increases latency, but decrease overall performance significant.
- # - OFFLOAD - Offloads execution to a IOExecutor(when IOExecutionMode set to POOLED) or a default ThreadPoolManager. Good option with POOLED IOExec mode. Increases throughput but also may increase context switch count.
- # - QUEUED - Same as OFFLOAD but packets are queued before execution. May decrease latency, may not.
- #
- PacketExecMode = QUEUED
- # Client socket options.
- # Default: SO_SNDBUF(4096);SO_RCVBUF(4096);TCP_NODELAY(true)
- # - SO_SNDBUF - the size of the socket's send buffer. On most systems this the size of a kernel buffer so be careful! See RFC1323.
- # - SO_RCVBUF - the size of the socket's receive buffer. On most systems this the size of a kernel buffer so be careful! See RFC1323.
- # - TCP_NODELAY - The Nagle algorithm. Enabling it increases throughput but also increases latency. See RFC1122.
- ClientSocketOptions = SO_SNDBUF(8192);SO_RCVBUF(8192);TCP_NODELAY(true)
- # Server socket options.
- # Default: SO_REUSEADDR(false);SO_RCVBUF(4096)
- # - SO_REUSEADDR - if true, prevents socket from usage until all opened sockets are really closed. See RFC793.
- ServerSocketOptions = SO_REUSEADDR(true);SO_RCVBUF(4096)
- # Size of buffer for income packets in bytes.
- # Default: 32768
- #
- RecvBufferSize = 32768
- # Type of buffer for income packets. DIRECT or HEAP
- # Default: DIRECT
- #
- RecvBufferType = DIRECT
- # Size of buffer for outcome packets in bytes.
- # Default: 65536
- #
- SendBufferSize = 65536
- # Type of buffer for outcome packets. DIRECT or HEAP
- # Default: DIRECT
- #
- SendBufferType = DIRECT
- # Enables packet logging for teriann hosts. Must be disabled during normal operation.
- # Default: false
- #
- PktDbgEnabled = false
- # Hosts for logging. Delimiters are ';' or ','
- # Example: 127.0.0.1;11.22.33.44;192.168.0.1
- #
- PktDbgHosts = 127.0.0.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement