Cannot help you figure things out without details.
You can restart the server as often as you want. Just set it up to do so in cron or using your chosen server manager. We do ours every 12 hours. If you are on Windows, you need to do it every 6-8 hours. Vanilla Linux will usually be good for 18-24 hours, but adding mods can shorten the time.