?
Solved

Webserver need's restart very often...

Posted on 2009-12-29
8
Medium Priority
?
218 Views
Last Modified: 2012-05-08
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?
0
Comment
Question by:JustAskMe
  • 4
  • 4
8 Comments
 
LVL 9

Expert Comment

by:Sean Meyer
ID: 26141550
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.
0
 

Author Comment

by:JustAskMe
ID: 26141557
How do I do that?
0
 
LVL 9

Expert Comment

by:Sean Meyer
ID: 26141669
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

0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 

Author Comment

by:JustAskMe
ID: 26141679
Can I do it from my vb.net applicetion remotly?
0
 

Author Comment

by:JustAskMe
ID: 26141695
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?
0
 
LVL 9

Expert Comment

by:Sean Meyer
ID: 26141702
Oh and you probably want to make sure you run the file silently.  
0
 

Author Comment

by:JustAskMe
ID: 26141723
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?
0
 
LVL 9

Accepted Solution

by:
Sean Meyer earned 2000 total points
ID: 26142873
It is really a guessing game from here. You can check your event logs for clues or just pick services associated with the web server and you application and slowly see which one fixes the issue.

Try to get that "someone" to explain in greater detail what they know about that setting.  We may be able to more precisely diagnose the problem.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question