Server Command Line freezes after a while

After running the server for about 5 minutes, the server command line freezes and I am not able to type in it. The server still runs properly in the background.

Is there any way to fix this?

We can’t know unless you post more information. Logs? Startup script? Anything you’ve noticed?