Skip to main content
Participant
February 3, 2022
Answered

CF 11 crashes for particular url

  • February 3, 2022
  • 1 reply
  • 194 views

Hi all,

 

I've inherrited an old web server running CF 11 on Ubuntu 14.04.  The server hasn't had a problem in the last 2 years that I've been here.

 

However, at about 2:00pm last Tuesday, it started to crash.  When a user tried to access the site with their browser, it would just spin.  On the server, we noted that the java task was using 100% cpu. 

 

When we restart coldfusion and apache, we are back to normal... for a while.

 

I've discovered that one particular url will consistently crash the server:

 

/shop/ItemAdd.cfm

 

I was working on that file, but I've backed out all of my changes, and to my knowledge, nothing else was changed on the server.

 

We've done a lot to try to diagnose this.

 

But here's where it gets odd.

 

If I rename ItemAdd.cfm to ItemAdd.cfm.orig, I would expect to get a 404 error when I point a browser to /shop/ItemAdd.cfm, but I don't.  It still crashes!  So, I don't THINK it's a code issue.

 

I've looked at the cf logs.  But they get new entries added even when the server seems to be running correctly.  Nothing changes in the logs when it crashes (hangs?)

 

I'm at a loss.

 

Any ideas?

 

Mike.

    This topic has been closed for replies.
    Correct answer BKBK

    An idea that immediately comes to mind: clear the caches. For example,

    1.  delete the contents of \WEB-INF\cfclasses;
    2.  go to the page Server Settings > Caching in the ColdFusion Administrator. Press each of the 3 buttons to clear the template, component and query caches;
    3.  restart the ColdFusion instance.

    1 reply

    BKBK
    Community Expert
    BKBKCommunity ExpertCorrect answer
    Community Expert
    February 4, 2022

    An idea that immediately comes to mind: clear the caches. For example,

    1.  delete the contents of \WEB-INF\cfclasses;
    2.  go to the page Server Settings > Caching in the ColdFusion Administrator. Press each of the 3 buttons to clear the template, component and query caches;
    3.  restart the ColdFusion instance.
    Participant
    February 4, 2022

    Thank you for getting back to me.  I was able to find the solution.

     

    It occured to me that cf must have some kind of reference the the problem file (ItemAdd.cfm) somewhere.  So I did:

     

    find /opt -type f -exec grep -hHi {} \;

     

    And sure enought, there were LOTS of references to that file.  I moved the content of that directory aside and the server resumed normal operations.

     

    Since I didn't install this system, I have no ideas where the Server Settings page is, but removing the content of this directory seems to have resolved the issue.

     

    Thanks again,

     

    Mike.

     

    Participant
    February 7, 2022

    As a follow up:

     

    I've been asked if it might make sense to schedule a script to delete the cache files periodically. We perceived that the website performed better right after we deleted these cache files....

     

    Also, we'd like to know what triggers these files to be created in the first place; are they simply created when someone accesses a given URL?

     

    Thanks again,
    Mike.