CF Server hangs every few days

Ask a Question related to Coldfusion Server Administration, Design and Development.

  1. #1

    Default CF Server hangs every few days

    Every couple of days, ranging from 1 day to 2 weeks, we get an application that
    hangs when trying to access a page that uses a database query. I have to
    manually restart the CF application server service to correct the problem. I
    am unsure what is causing this.

    My Server.log shows multiple entries of the same error message, but reported
    in 30 second intervals (which I believe is due to the option in CF
    administrator "Timeout Requests after ( seconds ) [30]" )
    Here is one line of the Server.log, and this line repeats over and over in
    close to 30 second intervals:
    "Warning","jrpp-206","02/23/07","13:51:36",,"Thread: jrpp-206, processing
    template: C:\Inetpub\wwwroot\CFMX7\tagout\login.cfm, completed in 30 seconds,
    exceeding the 30 second warning limit"

    this error message continued through "completed in 1009 seconds" before I
    restarted the CF service.

    When I restart the server, is all back to normal. Sometimes it can go only a
    few days before hanging, sometimes up to 2 weeks. But rarely longer than 2
    weeks without a hang.

    I have read the "ColdFusion MX Hanging Condition Investigation" thread, but I
    didn't get much help from it. I couldn't tell if my problem was either of the
    cases described. So I've come here hoping that someone has the answer! :)

    EvolvedDSM Guest

  2. Similar Questions and Discussions

    1. #39560 [NEW]: Inconsistent behaviour of strtotime when days > days in month
      From: php at colin dot guthr dot ie Operating system: Linux PHP version: 5.2.0 PHP Bug Type: Date/time related Bug...
    2. My server runs great for 4 to 7 days and then CRASHES
      My server runs like a champ for between 4 to 7 days and then CRASH! Here's my Server Config. Dell Server Dual CPU, 2GB RAM, IIS6 Coldfusion...
    3. My server runs great for 4 to 7 days and thenCRASHES
      OK, I loaded the latest hot fixes and JRUN update did everything else suggested here on the forum. And my computer just stopped again. It made it...
    4. CF hangs when database server hangs or crashes
      This may be as simple as a configuration change, but hoping someone understands this behavior and can offer suggestions (or at least additional...
    5. HPL hangs server
      Hi Bill, Allocating lot of shared memory segment is normal. It depends on the load that you are trying to do. Few questions:- 1. Are u using...
  3. #2

    Default Re: CF Server hangs every few days

    I would begin by doing a code/db design review to figure out if your code/db is
    optimized as well as scaling to the load you require.

    Next, I would do one of two things -
    A) Up the server's timeout value in the administrator
    -or-
    B) Use the timeout attribute where necessary to allow your code to run a
    little longer.

    Next, limit the number of connections ColdFusion can make to your database to
    around 6 per CPU. If the database is busy, leave maintain connection on.
    Otherwise, turn it off.

    Make sure your ODBC drivers are up to date.

    How much memory is the JRun process using when you have to kill it?

    What do the other logs say?

    ke4pym Guest

  4. #3

    Default Re: CF Server hangs every few days

    Let me get your opinion on my situation then.

    The application is a board that shows who is currently out of the building at
    my agency. This was created as a way for people, especially the receptionists,
    to see who is not here. The board is a table with every employee's name who is
    currently not available in our agency. It refreshes every 25 seconds to update
    employee status.

    We have over 100 employees who use this board, however not all of them are
    making changes to the database at the same time. If I reduce the number of
    connections to 6, will that limit the number of people who can view the board,
    or will that limit the number of people who are making changes in the database
    at the same time? All employees need access to view this application, but only
    a small % of them are actually modifying the table.

    EvolvedDSM Guest

  5. #4

    Default Re: CF Server hangs every few days

    If you are running on MS Access, be sure to disable "Maintain Connections".
    You will also likely benefit by using the Jadozoom JDBC Driver instead of the
    native ODBC drivers.
    See [url]http://www.adobe.com/go/2d2a7a19[/url] and
    [url]http://www.adobe.com/go/tn_17034[/url]

    If you are using an enterprise database with JDBC support, you may benefit by
    updating to the 3.5 JDBC drivers:
    See
    [url]http://www.adobe.com/go/42dcb10a[/url]

    You also may benefit from the "Database Design" section of this article:
    [url]http://www.adobe.com/go/tn_17054[/url]

    LL@Work Guest

  6. #5

    Default Re: CF Server hangs every few days

    No, reducing the number of connections has nothing to do with the number of
    people who can interact with your application. The setting tells CF how many
    connections to open at any given time. If all of the connections are busy, new
    connections will be queued until the next connection is available. If
    everything is working as it should, this queue should only last in the
    milliseconds.

    One other thing, check the "Maximum number of cached queries" value in the
    administrator. By default it is configured for 100. Entirely too many. Drop
    it to 50.

    ke4pym Guest

  7. #6

    Default Re: CF Server hangs every few days

    LL@Work -- thanks for the links. One of them recommended my max number of
    simultaneous requests be between 5-10 if the server has plenty of ram, so I
    dropped this to 10 from 105 originally. I don't know what effect this might
    have.

    Ke4pym -- I've changed the max number of cached queries to 50 as suggested.

    Since getting help from this thread, no hang ups but its still early in the
    week.


    EvolvedDSM Guest

  8. #7

    Default Re: CF Server hangs every few days

    Was the driver upgraded in your fix? We currently are experiencing the same problem.
    hipjimmer Guest

  9. #8

    Default Re: CF Server hangs every few days

    We didn't upgrade any drivers, or any patches. Our CF is the most current
    version and has been for months. I would like to note that it has been about 3
    weeks since I posted my problem, and we have not had to restart the CF service
    yet! Thanks for all the info provided in this thread. Hopefully it helps
    someone else!

    EvolvedDSM Guest

  10. #9

    Default Re: CF Server hangs every few days

    Thanks for the info folksk! I benefited from the input on my end as well.

    :wink;
    terribleted Guest

  11. #10

    Default Re: CF Server hangs every few days

    We're running a fully patched (we think) version of 6.1 and all of our dbs are
    MS Access. We had no problems at all on CF 5 and this migration so far has
    been horrible for us. I'm hoping that the Jadozoom driver is robust enough.

    hipjimmer Guest

  12. #11

    Default Re: CF Server hangs every few days

    Evolved: BTW, are you running MS access dbs?
    hipjimmer Guest

  13. #12

    Default Re: CF Server hangs every few days

    Yes, MS Access. We typically do SQL db's, but I find working with Access to be much easier for editing and general changes when it's a small volume db.
    EvolvedDSM Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139