It's quite often when we face problems of Random Service Crash in Windows VPS. You may come across situations wherein;
- Some of VPS services like MS SQL, MySQL, SmarterMail, WebsitePanel stop automatically.
- Random service crash occurs, and it reappears after some hours/days.
- Your applications failed to connect to the MS SQL database; you go ahead and check the MS SQL service and find the MS SQL service in stopped status. After restarting the MS SQL service manually, the application - database connection becomes normal.
- You cannot connect to the SmarterMail web interface due to the SmarterMail service crash.
- Your web pages with MySQL database backend throw database connectivity errors.
- After loading for a long time, WebsitePanel URL ends in error.
Check CPU and RAM Usage of VPS through Windows Task Manager >> Performance
1. Right-click on Task Bar and Select Start Task Manager.
You will see the current RAM and CPU usage of your VPS. Some of your VPS services won't function expectedly if your RAM and CPU usage is above 90%.
Check Diskspace Usage of VPS
1. Go to Start → Click Computer.
Configure Service Recovery Properties
Services can also be configured to recover automatically after the crash. Follow the below mentioned steps:
1. Go to Start → Run → Type services.msc Click OK.
2. In Services Window, locate the service you want to configure, Right click on the service name, and Click on Properties.
3. In the Service Properties Window, Click on the Recovery tab.
- Select the option Restart the Service in the First failure Dropdown.
- Select the option Restart the Service in the Second failure Dropdown.
- Select the option Restart the Service in the Third failure Dropdown.
- Click on Apply and then OK.
You can also set several other properties like Reset Failure Counter after x days and Restart the service after 1 minute since the crash. Repeat the above steps for each service you want to configure for the automatic recovery.
Determine the Root Cause of Service Crash Through Event Viewer
1. Go to Start → Run → Type eventvwr, and Click OK.
2. In the Event Viewer Window, Under Windows Logs, Check Application and System logs.
3. Locate the Error logs recently registered for the service in question.
4. Click on the Log entry.