coldfusioncfthreadcfadmin

“JRun Master Request Limits” section missing from CFAdmin


I am getting the below error in my ColdFusion application: *

11/21 11:23:43 Debug [scheduler-1] - Next mail spool run in 15 seconds. java.lang.RuntimeException: Request timed out waiting for an available thread to run. You may want to consider increasing the number of active threads in the thread pool

* I know ColdFusion apps with high volume sites or long running templates may receive the mentioned error. I believe this is not a defect in the application but a problem in CF itself. So to eliminate this I was trying to increase the "Maximum number of running JRun threads" under "Server Settings" --> "Request Tuning". But I was surprised to see that the whole field is missing there in the Admin - "JRun Master Request Limits". please refer the screen shot below. enter image description here And the same field is available in my local CF Admin(developer edition). See screen shot below:

enter image description here

Any idea? Why this discrepancy? And how should I increase the threads?


Solution

  • As mentioned in the comments the setting for Maximum number of running JRun Threads is an Enterprise version only option. The developer edition is equal to the Enterprise version with limited IPs. That is why you see it on your local.

    Even though the option is not listed in the administrator for the Standard version, obviously it is still there behind the scenes. Here is how you change the setting for Standard:

    1. Go to the directory cf_root\runtime\lib\wsconfig\1.

      Note: In multiserver scenarios, the location is jrun_root/lib/wsconfig/1. 1 indicates a single IIS website. If you have configured multiple IIS websites, the number can change accordingly.

    2. Open the file jrun_iis6_wildcard.ini (jrun_iis7_wildcard.ini if you use IIS 7).

    3. Uncomment maxworkerthreads=25.

      Note: By default, maxworkerthreads is commented.

    4. Change the value to 50 (maxworkerthreads=50) from the default value of 25.

    5. Restart IIS 6/IIS 7.

    Note: The Maximum number of Simultaneous Template requests (Admin > Server Settings > Request Tunings > Request Limits) must also be increased accordingly.

    Reference - IIS 6/IIS 7 for ColdFusion 9: Increasing the Number of Worker Threads

    Mark Kruger gives a bit more information about it here - IIS 7 Max Worker Processes and ColdFusion Updated