Optimum Max JVM Heap Size Question

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

  1. #1

    Default Optimum Max JVM Heap Size Question

    I saw Ken running around, so I figured this would be a good time to post.

    I am running CF 6.1, Windows 2003 Server, IIS 6.0, SQL2003; all are on the
    same machine.

    This machine is a web-server that runs this particular ColdFusion application
    ONLY. Nothing else.

    I have looked through a decent amount (although I'm sure not all) of the white
    papers on this setting. I have left it at 512MB, but since I have 2GB on the
    server, I thought about increasing it, but didn't know how much CF would really
    use, if it would increase garbage collection times, etc.

    So once my brain finally said "I don't know", I thought I'd post on it.

    Thanks,

    Mike


    MichaelSJudd Guest

  2. Similar Questions and Discussions

    1. Eclipse/ Flex Builder Heap Size
      I have tried searching the internet and Flex documentation for instructions to increase the Eclipse Heap size. All the instructions I find do not...
    2. URGENT!: Increase Heap Size - service-specific error 2
      Hi there, I am having one of this performance issues that is driving me mad with my Coldfusion 6.1 Application Server running big queries from SQL...
    3. Different JVM Heap Size on Multiple Server Instances?
      I can't find where it is possible to set individual JVM Heap sizes for different instances in a Multiple Server install. According to the Macromedia...
    4. CFMX 7 dies after updating JVM heap size
      Greetings, After updating the JVM heap size from it's default of 512 to 128 using the CFMX 7 Admin, CFMX 7 refuses to start. After looking at the...
    5. JVM Heap Size
      My application get "Out of memory error". The machine got 3 gb memory, running Linux and CFMX7 + Apache + MySQL. The settings where... -Xms1024m...
  3. #2

    Default Re: Optimum Max JVM Heap Size Question

    Tuning ColdFusion is an art. Generally I set my Xmx to 1024 and my Xms to 384.
    Simply increasing the JVM heap isn't going to cause the GC's to take
    significantly longer as long as you keep their size in check as well.

    Are you having issues now with stability and out of memory errors?

    ke4pym Guest

  4. #3

    Default Re: Optimum Max JVM Heap Size Question

    Yeah, I gathered it was an art.

    Stability/performance has been a minor factor - the SQL database referenced by
    the datasource is on the same box, and I still get the occassional "datasource
    went by-by" (i.e. - timeout on dsn) error. It seems to occur during peak load
    times (peak query load, that is). Disk activity goes pretty high at those
    times, as well.

    I was kind of going with the "better from memory than from disk" idea, but
    didn't know if this was a dance with other settings (i.e. - max queries, etc.).

    Sounds like it is - so I will start (gently) changing a few parameters to see
    if I can get those DSN lost errors to be extremely infrequent.

    I really appreciate the reply.

    - Mike


    MichaelSJudd Guest

  5. #4

    Default Re: Optimum Max JVM Heap Size Question

    You might also want to tinker with limiting the number of threads each DS can
    create to the database as well as tinkering with maintain connections.
    Generally, we limit our DS to 12 threads and do not maintain connection.
    Unless it is a crazy busy DB. Like, say, the DB for client storage data.

    ke4pym Guest

  6. #5

    Default Re: Optimum Max JVM Heap Size Question

    I'll try that - those are great ideas!

    The software is live, but still considered beta for our customers, so I have a little bit of leeway.

    I really appreciate your help!

    - Mike

    MichaelSJudd Guest

  7. #6

    Default Re: Optimum Max JVM Heap Size Question

    Why wouldn't you want to maintain connections? Isn't it better to use the same connection rather than to spend resources creating a new connection? Thanks.

    Chris
    cgsj_usa@yahoo.com Guest

  8. #7

    Default Re: Optimum Max JVM Heap Size Question

    Chris,

    Personally, I DO cache the connection - as ke4pym mentioned, you wouldn't want
    to turn it off for the client storage data DSN.

    The idea seemed to be more like - "You should probably at least think about
    tuning these to meet your specific requirements."

    It would also have an effect depending on whether you used pooling for the
    driver in SQL, etc.

    - Mike


    MichaelSJudd 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