CFAdmin 中缺少“JRun Master Request Limits”部分
“JRun Master Request Limits” section missing from CFAdmin
我的 ColdFusion 应用程序出现以下错误:
*
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
*
我知道具有大量站点或长 运行 模板的 ColdFusion 应用程序可能会收到上述错误。我相信这不是应用程序的缺陷,而是CF本身的问题。因此,为了消除这种情况,我试图在 "Server Settings" --> "Request Tuning" 下增加“运行 JRun 线程的最大数量”。但令我惊讶的是,管理员中缺少整个字段 - “JRun Master Request Limits”。请参考下面的屏幕截图。
我的本地 CF Admin(开发人员版)中提供了相同的字段。请参阅下面的屏幕截图:
有什么想法吗?为什么会有这种差异?我应该如何增加线程数?
如评论中所述,运行 JRun 线程的最大数量 的设置是仅限企业版的选项。开发者版等同于企业版,IP受限。这就是您在本地看到它的原因。
即使标准版的管理员中没有列出该选项,显然它仍然存在于幕后。以下是更改标准设置的方法:
Go to the directory cf_root\runtime\lib\wsconfig
.
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.
Open the file jrun_iis6_wildcard.ini (jrun_iis7_wildcard.ini if you use IIS 7).
Uncomment maxworkerthreads=25
.
Note: By default, maxworkerthreads
is commented.
Change the value to 50
(maxworkerthreads=50
) from the default value of 25
.
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.
参考 - IIS 6/IIS 7 for ColdFusion 9: Increasing the Number of Worker Threads
Mark Kruger 在此处提供了更多相关信息 - IIS 7 Max Worker Processes and ColdFusion Updated
我的 ColdFusion 应用程序出现以下错误: *
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
*
我知道具有大量站点或长 运行 模板的 ColdFusion 应用程序可能会收到上述错误。我相信这不是应用程序的缺陷,而是CF本身的问题。因此,为了消除这种情况,我试图在 "Server Settings" --> "Request Tuning" 下增加“运行 JRun 线程的最大数量”。但令我惊讶的是,管理员中缺少整个字段 - “JRun Master Request Limits”。请参考下面的屏幕截图。
有什么想法吗?为什么会有这种差异?我应该如何增加线程数?
如评论中所述,运行 JRun 线程的最大数量 的设置是仅限企业版的选项。开发者版等同于企业版,IP受限。这就是您在本地看到它的原因。
即使标准版的管理员中没有列出该选项,显然它仍然存在于幕后。以下是更改标准设置的方法:
Go to the directory
cf_root\runtime\lib\wsconfig
.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.Open the file jrun_iis6_wildcard.ini (jrun_iis7_wildcard.ini if you use IIS 7).
Uncomment
maxworkerthreads=25
.Note: By default,
maxworkerthreads
is commented.Change the value to
50
(maxworkerthreads=50
) from the default value of25
.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.
参考 - IIS 6/IIS 7 for ColdFusion 9: Increasing the Number of Worker Threads
Mark Kruger 在此处提供了更多相关信息 - IIS 7 Max Worker Processes and ColdFusion Updated