Solved

Restart the CF application service automatically?

Posted on 2003-11-07
7
723 Views
Last Modified: 2013-12-24
The are something wrong with our system lately that  the application hangs from time to time. I am not 100% confident what it's causing this but one thing I am sure our database server is under powered, where we store the session variables. When the DB server is slow, our application hangs... However, when the DB server backs to normal,  we have to restart the cold fuion service manually anyway. Besides buying a new DB server, what should I do to prevent this? I thought it's going to restart itself because:

I have the following settings in the administrator page.

Limit simultaneous requests to  10
Timeout requests after  1200 seconds
Restart at 10 unresponsive requests
Restart when requests terminate abnormally

Are they good settings? I am also thinking about restart the application service once every night, just to clear any cumulative memory leak from previous days or maybe just for fun ... Is there a way to do it?
0
Comment
Question by:lyrix1999
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 1

Expert Comment

by:kjuliff
ID: 9702440
I stop and start mt CF server twice a day with scheduled tasks. Depending upon your operating system, just modify the .bat file

at 04:30 /every:M,T,W,Th,F,S,Su net stop "Cold Fusion Executive"
at 04:31 /every:M,T,W,Th,F,S,Su net stop "Cold Fusion RDS"
at 04:33 /every:M,T,W,Th,F,S,Su net stop "Cold Fusion Application Server"
at 04:35 /every:M,T,W,Th,F,S,Su net start "Cold Fusion Application Server"
at 04:36 /every:M,T,W,Th,F,S,Su net start "Cold Fusion RDS"
at 04:37 /every:M,T,W,Th,F,S,Su net start "Cold Fusion Executive"
0
 
LVL 1

Expert Comment

by:kjuliff
ID: 9702462
On restarting - I have had no problem, even with an overloaded srever. Here are my settings
Limit simultaneous requests to 5
Timeout requests after   seconds 360
Restart at   unresponsive requests 3
 Restart when requests terminate abnormally (checked)
0
 

Author Comment

by:lyrix1999
ID: 9702936
Kjuliff, thanks for your comments.

What .bat file? Or do you just create two .bat (stop and start), and run them in windows' scheduler task? I usually only stop/start application server, what's the role for CF Executive and CF RDS service?
0
Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

 
LVL 1

Expert Comment

by:kjuliff
ID: 9703887
Yes. Creat a bat file to set up the start and stop. It is generally called cf.bat.

Then run it once. It sets up the schedule.

You will not need the RDS in your version of CF (that was from an earlier one and I forgot it was there - sorry). Executive may as well stop and start too. It handles scheduled tasks and other things but  I like to clear everything out twice a day.

You just need one .bat file. Of course you could type it all into the Windows scheduler but I just find this is easier. It's easier to edit the times.


0
 

Author Comment

by:lyrix1999
ID: 9704058
Thanks. Actually I was searching if there is a .bat in the folder, I did find one in

\cfusion\bin\cycle.bat.

Looks like it has exactly same code you posted... and the REM line basically indicates the same thing you said... Cool, I never knew you can write a .bat file with 'at' clause...

I am wondering since it looks like being written by Alliure, do I have to add the .bat into scheduler, or it has been in there or called by the CF server to restart every night and I just didn't know...
0
 
LVL 1

Accepted Solution

by:
kjuliff earned 125 total points
ID: 9704162
No it will not have been executed.  Go to the command prompt at type

AT

Any sheduled tasks will be listed.

The cycle.bat will put the scheduled tasks there. It isn't a scheduler in itself.

So once you run it, type
AT
again and you'll see the tasks listed.

0
 

Author Comment

by:lyrix1999
ID: 9704241
Thanks. Now I understand this batch file is for adding the automatic stop/start in the windows scheduler.

Hope it can fix my problem.
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to go to page 12 115
Moving web servers into a DMZ? 3 86
http to https 3 83
how can i find the index of all downloads for a site 3 13
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
What You Need to Know when Searching for a Webhost Provider
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Suggested Courses

734 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