Solved

Restart the CF application service automatically?

Posted on 2003-11-07
7
715 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
  • 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
Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

 
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

New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
nginx with multiple websites --need help with phpmyadmin please 5 54
IIS Site Configuration Copy 2 70
Public IP Address Amazon Servers 2 43
Domino Website - Redirection 12 47
This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

914 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now