T
twtw
Guest
I recently needed to switch from shared hosting to a dedicated server because of increased traffic, and I am trying to learn how to manage my server, but I need to learn a lot. My server has been slowing down and sometimes crashing during times when virtually nothing is happening on the server (very low traffic days) and I don't know why. I have looked in the logs, and there is nothing that indicates an error or anything like that. I have been watching the memory allocation via "top", "free" and "vmstat" and I suspect there may be a memory problem because as time goes by, the memory values keep increasing. I would like to run a restart script at night, that way each day my server starts with the memory reset. I created a server_restart.sh script that looks like
#!/bin/bash
shutdown -r now
and added a cron job via Plesk
bash /private/scripts/server_restart.sh
The logs indicate that the script ran, but it doesn't actually restart the server.
Any help is appreciated!
#!/bin/bash
shutdown -r now
and added a cron job via Plesk
bash /private/scripts/server_restart.sh
The logs indicate that the script ran, but it doesn't actually restart the server.
Any help is appreciated!