如何从metrics.log值配置Web连接器

时间:2014-06-16 09:49:23

标签: apache coldfusion tomcat7 coldfusion-10 mod-jk

我正在审核workers.properties中的ColdFusion Web连接器设置,希望能够解决零星的响应时间问题。

我已被建议检查metrics.log文件的输出(CF管理>调试和记录>调试输出设置>启用公制记录)并使用此信息通知调整设置max_reuse_connectionsconnection_pool_sizeconnection_pool_timeout

我的问题是:如何解释metrics.log输出以通知选择设置值?有没有可以指导我的文件?

超过120小时的例子:

95%的参赛作品 -

"Information","scheduler-2","06/16/14","08:09:04",,"Max threads: 150 Current thread count: 4 Current thread busy: 0 Max processing time: 83425 Request count: 9072 Error count: 72 Bytes received: 1649 Bytes sent: 22768583 Free memory: 124252584 Total memory: 1055326208 Active Sessions: 1396"

发生一次 -

"Information","scheduler-2","06/13/14","14:20:22",,"Max threads: 150 Current thread count: 10 Current thread busy: 5 Max processing time: 2338 Request count: 21 Error count: 4 Bytes received: 155 Bytes sent: 139798 Free memory: 114920208 Total memory: 1053097984 Active Sessions: 6899"

环境:

  • 3 x Windows 2008 R2(硬件负载平衡)
  • ColdFusion 10(更新12)
  • Apache 2.2.21

1 个答案:

答案 0 :(得分:0)

理查德,我知道你的问题是从2014年开始的,也许你已经解决了,但我怀疑你的问题是在CF管理员中设置了端口(在" metrics log"复选框下面)设置为8500,这是您的内部Web服务器(仅由CF管理员使用,通常,如果有的话)。这就是数字没有改变的原因。 (对于那些在安装CF或以后不启用内部Web服务器的人,指标日志中的大多数值都为空。)

我在上周碰巧做的博客文章中解决了这个问题:http://www.carehart.org/blog/client/index.cfm/2016/3/2/cf_metrics_log_part1

希望这有任何帮助。