How to deal with a Random Service Crash in Windows VPS (Visual guide)

Computer crashes occur when a computer program such as operating system or a software application fails to respond and exits. This is most commonly caused by an overheating in the computer device and the Central Processing Unit (CPU). They also occur as a result of entering incorrect or undefined orders which can confuse and frustrate the program to the point of crash. Most applications have implemented methods of dealing with this issue, and there are also ways to overcome such issue in Windows VPS.

Image result for windows vps
Why do Random Service Crashes occur?
  • Heavy services demand high CPU, Disk space etc.

Windows VPS is a relatively demanding environment with quite heavy default services such as MySQL, MS SQL, SmarterMail, DNS, and IIS. These Windows VPS services demand a significant amount of resources like CPU, RAM and Disk space. When your VPS can’t provide these services with the required RAM, CPU and Disk space they will get crashed. Usually, Random Service Crash occurs when VPS is heavily utilizing allotted CPU and RAM resources.

What happens during a Random Service Crash in Windows VPS?
  • These errors may occur if any of your VPS services have been crashed
  • Some of VPS services MS SQL, MySQL, SmarterMail, WebsitePanel may stop automatically.
  • You may find that due to due to SmarterMail service crash it’s not possible to connect to SmarterMail web interface
  • After loading for long time, WebsitePanel URL ends in error.
  • A Random service crash may occur and reappears after some hours or days.
  • Your web pages backed by MySQL show connectivity errors.
  • You check the MS SQL service when your applications failed to connect to MS SQL database, and you find the MS SQL service in status: stopped. (You can restart the MS SQL service manually and your database – app connections become normal)
What to do?

In case you face such problem, go through following checkpoints:

  • Check CPU and RAM Usage of VPS through Windows Task Manager
  • Right click on Task Bar, Select Start Task Manager.
random service crash1
  • Click Performance Tab.

Note This will show the current RAM and CPU usage of your VPS. If RAM and CPU usage of your VPS is above 90%, some VPS services fail to function properly.

  • Check Disk space Usage of VPS
  • Go to Start > Click Computer.
random service crash2

Note The current VPS diskspace usage is shown here. If your diskspace usage is more than 95%, again, some of your VPS services won’t function properly. In order to free up disk space, you can remove (delete) unwanted data from VPS so as to release some diskspace. You can also purchase additional VPS diskspace.

  • Service Recovery Properties Configuration
  • Follow these mentioned steps to configure Services to recover automatically after crash.
  • Go to Start > Run > Type services.msc Click OK.
random service crash3
  • In Services Window, find the service you want to configure > Right click on the service name > Click on Properties.
  • In the Service Properties Window, Click on Recovery tab.
random service crash4
  • Select the option Restart the Service in First failure, Drop down.
  • Select the option Restart the Service in Second failure, Drop down.
  • Select the option Restart the Service in Third failure, Drop down.
  • Click on Apply and then OK.

Note You can also set other properties like, Reset Failure Counter after n days and Restart the service after 1 minute from the occurring of the crash. Repeat the above steps for each service you want to configure for the automatic recovery.

  • Through Event Viewer, determine the root cause of Service Crash
  • Go to Start > Run > Type eventvwr, Click OK.
random service crash5
  • In Event Viewer Window, find Windows Logs, Check Application and System logs
random service crash6
random service crash6
  • Find the Error logs recently registered for that service.
  • Click on Log entry.

Note Event Viewer is a tool used for checking logs of various warnings and errors registered on VPS. Each application/program or service crash is logged in the Event viewer with sufficient information to inform of the crash or whereabouts of the problem most times. The event viewer can usually be found at C:\Windows\system32\eventvwr.exe showing the Application event logs once launched.

In the General tab, a full description of the log error is available. Source, Event ID, User, Exception Code etc. are the important info given to us here. Exception code explains what this error means. Hereon, you can use the exception window to Google it for more info on a registered log.

Note As mentioned previously, Random Service Crashes may also occur as a result of hardware overheating especially in the Central Processing Unit of your computer. You might want to consider taking a look at the cooling systems of your PC before checking for software-related causes as well!

0 0 vote
Article Rating
Notify of
Inline Feedbacks
View all comments
Money-Back Guarantee Close Button
Would love your thoughts, please comment.x