Highlighted

Does ColdFusion 11 go into sleep mode after a period of non-use?

New Here ,
Jan 26, 2015

Copy link to clipboard

Copied

I've just installed CF11 on my cloud server (running Windows Server 2008 R2) for a shopping cart app using SQL Express Edition in the backend. After periods of inactivity, especially every morning, when I go into my app, it clocks for about a minute then errors out. Eventually, after another try, I'm able to run my app but it's sluggish for another couple clicks then it's back to normal. 

I've been running this app on an older version of CF for almost a decade (I just upgraded to CF11 last month) and this problem never happened during that time. Can you provide any guidance on how I can fix this problem?

Most Valuable Participant
Correct answer by Carl_Von_Stetten | Most Valuable Participant

Try Charlie Arehart's ColdFusion Consulting Services.  He's also pretty active here on the forums (mainly in the ColdFusion Server Administration community).

-Carl V.

Views

608

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Does ColdFusion 11 go into sleep mode after a period of non-use?

New Here ,
Jan 26, 2015

Copy link to clipboard

Copied

I've just installed CF11 on my cloud server (running Windows Server 2008 R2) for a shopping cart app using SQL Express Edition in the backend. After periods of inactivity, especially every morning, when I go into my app, it clocks for about a minute then errors out. Eventually, after another try, I'm able to run my app but it's sluggish for another couple clicks then it's back to normal. 

I've been running this app on an older version of CF for almost a decade (I just upgraded to CF11 last month) and this problem never happened during that time. Can you provide any guidance on how I can fix this problem?

Most Valuable Participant
Correct answer by Carl_Von_Stetten | Most Valuable Participant

Try Charlie Arehart's ColdFusion Consulting Services.  He's also pretty active here on the forums (mainly in the ColdFusion Server Administration community).

-Carl V.

Views

609

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jan 26, 2015 0
Adobe Community Professional ,
Jan 26, 2015

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 26, 2015 0
Most Valuable Participant ,
Jan 26, 2015

Copy link to clipboard

Copied

There are a number of factors that could be involved. 

  1. What service are you using for your "cloud server"?  Does it "sleep" or shut down when inactive, and spin up automatically on first request?
  2. What are your application timeout settings in CF Administrator and/or Application.cfc/.cfm?
  3. Do you have database-intensive stuff going on in your Application.cfm or the onApplicationStart() method of Application.cfc?

-Carl V.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 26, 2015 0
New Here ,
Jan 26, 2015

Copy link to clipboard

Copied

HI Carl,

I'm not a technical person so I'm not sure 100% sure about the answers to your questions. If I've answered them incorrectly, please let me know how I can get that information to you.

1. I believe the answer to this question is IIS. I've had Rackspace (our host company) in the past make the required changes to the server in order to keep it "awake" if that's the correct term.

2. I don't have an answer to this question.

3. The CF app probably has a few people on it at any given moment in the day; in a typical hour, the most that would be on the server working with the app is around 20 users.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 26, 2015 0
Most Valuable Participant ,
Jan 26, 2015

Copy link to clipboard

Copied

Unfortunately, you really only answered the first question: Rackspace.  I would double check with them to make sure your virtual server itself isn't going into a sleep mode during off-hours.

For question 2, you will need to log into CF Administrator and note the Application and Session timeout settings, and let us know.  Also, you need to examine your Application.cfm or Application.cfc and see if server-wide timeouts are being overridden (look for ApplicationTimeout and SessionTimeout).

For question 3: you said in your initial post "After periods of inactivity, especially every morning".  This implies there are periods where NO users are using the app, and is quite likely when your timeouts are occurring.  If the application times out in ColdFusion, the application is stopped and the first request after it is stopped will restart it.  Depending on what you have in your Application.cfm/.cfc, this could either be a very quick process or a very lengthy one.

Another possibility is the database.  Depending on the level of activity and if you have any scheduled database tasks running (like database maintenance/index rebuilding or SSIS packages running), the database itself could be the issue.  SQL Server Express is throttled to only use one CPU core, 1 GB of memory, and has a size limit on databases (the limit varies depending on which release of SQL Server you are using).

-Carl V.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 26, 2015 0
New Here ,
Jan 26, 2015

Copy link to clipboard

Copied

Lots to think about Carl!

Do you know of a fee-for service whereby a certified Adobe CF person could connect remotely to my server and make the necessary changes?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 26, 2015 0
Most Valuable Participant ,
Jan 26, 2015

Copy link to clipboard

Copied

Try Charlie Arehart's ColdFusion Consulting Services.  He's also pretty active here on the forums (mainly in the ColdFusion Server Administration community).

-Carl V.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 26, 2015 1
New Here ,
Jan 26, 2015

Copy link to clipboard

Copied

Thanks Carl ­ I can¹t write it enough times!!

I¹ll give Charlie a call now.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 26, 2015 0
Advocate ,
Jan 27, 2015

Copy link to clipboard

Copied

Have you fully updated your CF11 (Currently on update 3)? There were a few fixes in Update 1 for the behaviour you mention. I had a Win 2k8 server running IIS and experienced these issues, after installing the update and re applying the website connector it all went away.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 27, 2015 0
Cono22 LATEST
New Here ,
Jan 27, 2015

Copy link to clipboard

Copied

Thanks haxtbh - I'll give that a try.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 27, 2015 0