Gamserver console crash

L2Elldoria

Vagabond
Customer
My game server console has been freezing daily, and automations like daily resets and PvP events stop working. It only unfreezes after I go to the VPS, select the game server console, and press enter. Then, suddenly, all the information appears. For example, at 2:34 PM, the messages stopped appearing (it froze). I had a TVT scheduled for 5 PM, I went to the console at 6:10 PM, pressed enter, and all the messages between 2:34 PM and 6:10 PM appeared, and the TVT call was initiated within the game.

Sometimes when I reload multisells, my game freezes and only unfreezes after I go to the console and press enter.

Does anyone know what might be happening?

The same thing happens when I run the test server locally on my machine.

Server Spec:
AMD Epyc 4x 2.90 Ghz 12 GB DDR4 50 GB NVMe

test server spec:
ryzen 5 5600g 16gb ram
 
This happens when you select something from the console, if you unselect everything will freeze until you press again in the console.
I think this is the issue maybe.
 
This happens when you select something from the console, if you unselect everything will freeze until you press again in the console.
I think this is the issue maybe.
I rarely select errors in the console, but I'll keep an eye on this behavior.
 
You don’t have a real server freeze.
The problem is how your GameServer is started.
You are running it attached to the console.
Start GameServer via StartGameServer.sh ( GameServer_loop.sh ) and redirect output to a file.
After that the console will stop “freezing”.
Code:
#!/bin/bash
while :;
do
java -server -Dfile.encoding=UTF-8 -Xmx4G -cp config:./* l2.gameserver.GameServer > log/stdout.log 2>&1

    [ $? -ne 2 ] && break
    sleep 30;
done
Don't forget to edit -Xmx4G for your server.

If you have Linux...
 
You don’t have a real server freeze.
The problem is how your GameServer is started.
You are running it attached to the console.
Start GameServer via StartGameServer.sh ( GameServer_loop.sh ) and redirect output to a file.
After that the console will stop “freezing”.
Code:
#!/bin/bash
while :;
do
java -server -Dfile.encoding=UTF-8 -Xmx4G -cp config:./* l2.gameserver.GameServer > log/stdout.log 2>&1

    [ $? -ne 2 ] && break
    sleep 30;
done
Don't forget to edit -Xmx4G for your server.

If you have Linux...
i'm on windows server 2016
 
i'm on windows server 2016
This is a known behavior on Windows Server 2016+.
Disable QuickEdit Mode in the Windows console.
  1. Open the cmd window where you start the server
  2. Right-click the title bar → Properties
  3. Go to Options
  4. Disable:
    • QuickEdit Mode
    • Insert Mode
  5. Restart the server
With QuickEdit enabled, any mouse click or text selection pauses the console output, which blocks Java stdout.
After disabling it, you can safely select and copy text, and in many cases this alone already fixes the issue.
 
This is a known behavior on Windows Server 2016+.
Disable QuickEdit Mode in the Windows console.
  1. Open the cmd window where you start the server
  2. Right-click the title bar → Properties
  3. Go to Options
  4. Disable:
    • QuickEdit Mode
    • Insert Mode
  5. Restart the server
With QuickEdit enabled, any mouse click or text selection pauses the console output, which blocks Java stdout.
After disabling it, you can safely select and copy text, and in many cases this alone already fixes the issue.
i'll try and give you a feedback! ty bro!
 
Back
Top