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?
What can I do to prevent that?
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.
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
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
ASKER
Can I do it from my vb.net applicetion remotly?
ASKER
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?
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.
ASKER
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?
I'm looking for that setting but I can't find it,
anyone knows what he mean?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.