Skip to main content
Participant
March 11, 2010
Question

Multi-Server Coldfusion: Per Instance Memory Configuration

  • March 11, 2010
  • 1 reply
  • 2225 views

Hi

Apologies if this question has been asked already.

We are installing Coldfusion 9 as multiserver mode with the following configuration

Web Server: Apache/2.2.14
Java Container: Jrun 4 as provided with Coldfusion 9
Operating System: Solaris 10 (SPARC)

Our plan is to run a number of instances (about 7 or 😎 each running a few applications to provide isolation to crashes etc. I've created several instances and configured isolation as described in

http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811cbf364104-7fc4.html#WS166820C3-9934-4838-83BA-F8B2B801A083

We would like to be able to have different Maximum Memory settings for each of our instances. For example 512MB might be enough for most of our instances, but there may be a memory intensive application that might need more, so would like to increase the memory available to that instance.

I've tried modifying the Java VM Max Heap Size, through both the JRun Manager and manually editing JRUN_HOME/bin/jvm.config. However this results in the Heap Sizes of all JVM instances being increased.

Please can you advise if there is a method of specifying different Maximum Heap Sizes for instances running within a server?

Thanks
Peter J

    This topic has been closed for replies.

    1 reply

    ilssac
    Inspiring
    March 11, 2010

    You configure each instance of ColdFusion you want to use different Java Arguments to use a different jvm.config file.

    This technote describes how one does this.

    http://kb2.adobe.com/cps/182/tn_18206.html

    peterj446Author
    Participant
    March 11, 2010

    Thanks for that link, I've managed to startup an instance from the command line using a custom jvm.config file.

    If I restart the instance through either the Jrun Manager or through the Instance Manager in the "Master" Coldfusion Administrator, the default settings are picked up. I guess this a current limination of JRun as there isn't any option to configure a custom jvm.config that used used when performing starts or restarts using the web admin tools.

    Thanks
    Peter

    ilssac
    Inspiring
    March 11, 2010

    I guess this is the type of function that is not used by enough people to make an entry in the GUI much use, so it is left as a command line option.

    P.S.

    The good news is that once the instance is configured to use the custom jvm.config file.  It can be stopped and started with the GUI interfaces in the future just fine and it will remember which jvm.config file it is supposed to use.