PvP Server Kiralama & Oyun Sunucuları
0 Giriş Yap Kayıt Ol

Metin2 Server Performance Optimization and Lag Prevention Guide

Yazdır

Metin2 Server Performance Optimization and Lag Prevention Guide

In Metin2 PVP servers, increasing the number of players, map density or faulty technical configurations may cause delays (lag) and momentary freezes (ch drops) on the server over time. You can safely follow the steps below to maximize the performance of your server and optimize RAM and CPU usage.

1. Regular Log and Cache Cleaning

As long as your game server remains open, every action made by the players, monster spawns and syserr outputs are accumulated in the log folders. Swollen log files tire the disk and cause lag. You can use the automatic clearing script (clear.sh) for the solution:

  • with Filezilla/usr/gameconnect to the directory.
  • If it is available in your filesclear.shorlog.shRun the file via Putty:
    sh clear.sh
  • To automate this process in the Putty terminalcrontab -eYou can schedule automatic log cleaning every night using the command.

2. Editing Player Limit per Channel (CH) in CONFIG Files

The core structure of each channel has a certain memory limit. Unnecessarily high limits tire the server processor. To optimize your channels' CONFIG files:

  1. /usr/game/cores/channel1/CONFIGOpen the file with a text editor.
  2. USER_LIMIT Set the value to a reasonable level according to the RAM capacity of your server and your target player base (Ex: 500 or 1000).
  3. Repeat the same process for all CHs and CONFIG files in the game99 folder.

3. DB (Database) SQL Optimization and Table Caching

Metin2 pulls the data stream directly through Navicat. Delay in database queries is reflected as lag in the game. Perform the following optimization on Navicat:

  • Connect to your database from the Navicat program.
  • "player" Go to the database and select all tables.
  • By right clicking maintenance -> Optimized Tables Run the option. This process shortens the query time by organizing the indexes.

4. Server Operating System (FreeBSD) Network and Kernel Settings

You can optimize the FreeBSD kernel via Putty so that network packets are delivered to the server faster and do not wait in the queue./etc/sysctl.confYou can increase network performance by adding the following lines to the bottom of the file:

kern.ipc.somaxconn=1024
net.inet.tcp.recvspace=65536
net.inet.tcp.sendspace=65536

to your server for the changes to take effect.rebootJust throw it away.


This article is specially prepared for PvPServer.

Bu cevap yeterince yardımcı oldu mu?

Oyla

overlay spinner