Link to home
Start Free TrialLog in
Avatar of JustAskMe
JustAskMe

asked on

Webserver need's restart very often...

I have a pocked pc that connects to the database using a WebService, every few hours it just time out trieng to connect, but a restart does the trick.

What can I do to prevent that?
Avatar of Sean Meyer
Sean Meyer
Flag of United States of America image

Simple way would be to create a task which would restart the service every 30 minutes.  I have had services like this with connectivity issues and setup the task to restart every 10 min.  No problems since.
Avatar of JustAskMe
JustAskMe

ASKER

How do I do that?
Ok first look at this technet article on how to start and stop a service with the command line -
http://technet.microsoft.com/en-us/library/cc736564(WS.10).aspx

Then open notepad and use the commands in the article and save the file as   .bat

last open Start --> Control Panel --> Scheduled tasks --> Add scheduled task --> browse to the location of the batch file you just saved.

Voila... restart the service every X minutes

Can I do it from my vb.net applicetion remotly?
Ok I see what I need to do... Thanks for your help!

now my problem is that there are too many services in the list...

Which one I need to restart?
Oh and you probably want to make sure you run the file silently.  
Some one told me that there is a setting that after a few sessins it needs a restart.

I'm looking for that setting but I can't find it,

anyone knows what he mean?
ASKER CERTIFIED SOLUTION
Avatar of Sean Meyer
Sean Meyer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial