CF7 taking forever to load initial request

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default CF7 taking forever to load initial request

    I am running ColdFusion 7 in multiserver config on Win2K. It takes forever (10+
    minutes) for the server to display the first page requested, and exponentially
    longer when more pages are requested while the server is initializing. If we
    wait long enough for it return a page, it will run fine for a few minutes, then
    eventually pin the CPU at 100% and not return a page.

    I think it has something to do with the initial compilation of the class files
    that ColdFusion builds. Any time the server hits a custom tag called with
    CFMODULE, the server can take up to 30-45 seconds to build the associated class
    file. These are not complex tags, some only consist of CFSET statements. During
    this time, the jrun.exe process only uses about 25% of the CPU. It only seems
    to slow down during these CFMODULE calls.

    This is a pretty straightforward installation of CF, and our code performs
    well under CFMX6.1. Thank you for any help you can offer.

    hans blix Guest

  2. Similar Questions and Discussions

    1. <CFINDEX> is taking forever to update
      This problem is on an shared MX7 server at intermedia.net. When updating a custom search record, <cfindex> takes so long (25 seconds, minimum)...
    2. Movies taking forever to load
      This flash movie i try to watch always pauses, http://dv.ouou.com/swf/ouou.swf?id=38d7f45b65c94, anyone know why it takes so long to load even 2...
    3. ai files taking forever to pdf (IND CS2)
      I never usually have trouble with this, but When exporting a current document with ai logos placed (from Indesign CS2 - low res settings) it is...
    4. PDF taking forever to print?
      Hello. I'm working on a document (in Quark 4) with a "fake duotone" (ie. a b&w TIF colourized in Quark). When I print from Quark to my b&w laser...
    5. Taking FOREVER to save a file
      John: There have been too many warnings posted here to count that this is likely to be a problem. You need to work locally. Some can get away...
  3. #2

    Default Re: CF7 taking forever to load initial request

    I built a little test application to try and isolate the problem. I ran it on
    our development and production machines with similar results. Machine specs:
    Dev:
    P3 600mhz
    512mb ram
    Win2k fully patched
    CF7 multiserver config on JRun 4 with latest updater
    JRun config for dev machine:
    256 max heap size
    args: -server -Xmx256m -Xms224m -XX:NewSize=64m -XX:PermSize=32m
    -XX:+UseConcMarkSweepGC -Dsun.io.useCanonCaches=false -XX:MaxPermSize=256m
    -DJINTEGRA_NATIVE_MODE -DJINTEGRA_PREFETCH_ENUMS
    -Dcoldfusion.rootDir={application.home}/

    Prod:
    Dual Xeon 2.2Ghz
    2Gb ram
    Win2k fully patched
    CF7 multiserver config on JRun 4 with latest updater
    JRun config for prod machine:
    1024 max heap size
    args: -server -Xmx1024m -Xms512m -XX:NewSize=64m -XX:PermSize=32m
    -XX:+UseConcMarkSweepGC -Dsun.io.useCanonCaches=false -XX:MaxPermSize=512m
    -DJINTEGRA_NATIVE_MODE -DJINTEGRA_PREFETCH_ENUMS
    -Dcoldfusion.rootDir={application.home}/

    On these servers I set up this small app:
    application.cfm:
    <cfmodule name="corporate.machine.machine_init">
    <cfapplication
    name="myTestApp"
    clientmanagement="yes"
    sessionmanagement="yes"
    setclientcookies="yes"
    sessiontimeout="3"
    clientstorage="testDSN"
    setdomaincookies="yes">

    index.cfm:
    does not contain any CF code, just the string "app loaded".

    The "machine_init" tag contains about 7 cfset statements, nothing else.

    I then applied some load to the site using Microsoft's Web Application Stress
    Tool, using 5 users. While the load was being applied, I restarted the JRun
    service for this app to simulate a restart on a live production system.

    I'm still waiting for the server to come back up, it's been 30 minutes so far.
    The Jrun.exe process is pegging at around 90-95% cpu usage, and I can't get
    anything to come back in a browser.

    With no load applied, it seems to come up within a few minutes.

    If I remove the cfmodule tag, it still takes a long time, but does eventually
    begin serving pages.

    I have no idea what's wrong here, any advice you can give is greatly
    appreciated.

    hans blix 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