首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ColdFusion 10/11度量记录问题

ColdFusion 10/11度量记录问题
EN

Stack Overflow用户
提问于 2014-07-20 20:47:56
回答 2查看 1.5K关注 0票数 1

背景信息

我最近刚开始在一个生产ColdFusion 10服务器上获取这些错误:

代码语言:javascript
复制
    Service Temporary Unavailable!

    The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

    Jakarta/ISAPI/isapi_redirector/1.2.32 ()

在与google相处了几个小时之后,我在adobe论坛上看到了一条帖子:

https://forums.adobe.com/thread/1016323?start=0&tstart=0

在这个帖子中有很多信息,但是我集中在两个方面。

  1. 获取线程/会话/内存度量的当前使用情况。
  2. 使用度量信息优化ColdFusion IIS配置

我的目标是写完这篇博文:http://blogs.coldfusion.com/post.cfm/tuning-coldfusion-10-iis-connector-configuration

这篇博文是在这个报告的bug中引用的:https://bugbase.adobe.com/index.cfm?event=bug&id=3318104

问题

目前,我仍然停留在#1;获取当前线程/会话/内存度量的使用情况。

我检查了: CFadmin >调试和日志记录>调试输出设置>启用度量日志记录。

ColdFusion 10 metrics.log:

代码语言:javascript
复制
    "Information","scheduler-1","07/20/14","15:12:24",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: null Bytes received: null Bytes sent: null Free memory: 1055964040 Total memory: 1570766848 Active Sessions: 679"
    "Information","scheduler-1","07/20/14","15:13:24",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: null Bytes received: null Bytes sent: null Free memory: 1136605536 Total memory: 1572864000 Active Sessions: 674"
    "Information","scheduler-1","07/20/14","15:14:24",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: null Bytes received: null Bytes sent: null Free memory: 939095720 Total memory: 1572339712 Active Sessions: 673"

在一个ColdFusion 11开发服务器上,我打开了,看看它报告了什么。该文件的metrics.log如下所示:

代码语言:javascript
复制
    "Information","scheduler-1","07/20/14","15:20:59",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: null Bytes received: null Bytes sent: null Free memory: 589971080 Total memory: 1320157184 Active Sessions: 40"
    "Information","scheduler-2","07/20/14","15:21:59",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: null Bytes received: null Bytes sent: null Free memory: 583831160 Total memory: 1320157184 Active Sessions: 41"
    "Information","scheduler-2","07/20/14","15:22:59",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: null Bytes received: null Bytes sent: null Free memory: 907572096 Total memory: 1431830528 Active Sessions: 40"

问题是,几乎所有的信息都以"null“的形式返回。

ColdFusion 10环境: Windows 2008 R2,ColdFusion 10标准64位,Java7u60

ColdFusion 11环境: Windows 2012 R2,ColdFusion 11标准64位,Java7u65

附加说明

这可以在ColdFusion 10上的ColdFusionError.log中找到(但在CF 11中不是这样):

代码语言:javascript
复制
    java.lang.NullPointerException
        at coldfusion.server.jrun4.metrics.SimpleLoadMetric.run(SimpleLoadMetric.java:157)
        at coldfusion.scheduling.ThreadPool.run(ThreadPool.java:211)
        at coldfusion.scheduling.WorkerThread.run(WorkerThread.java:71)

问题

有人知道如何让Enable日志记录实际报告使用的线程吗?

在第一个链接中,"carl type3“发布了他的metrics.log文件的示例,其中包含了我想要得到的所有信息。

CF管理度量设置

ColdFusion 10 workers.properties:

代码语言:javascript
复制
    worker.list=cfusion

    worker.cfusion.type=ajp13
    worker.cfusion.host=localhost
    worker.cfusion.port=8012
    worker.cfusion.max_reuse_connections=250
    worker.cfusion.connection_pool_size=500
    worker.cfusion.connection_pool_timeout=60

ColdFusion 10 server.xml连接器:

代码语言:javascript
复制
<Connector port="8012" protocol="AJP/1.3" redirectPort="8445" tomcatAuthentication="false" maxThreads="500" connectionTimeout ="60000" />
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-07-23 07:27:26

在cfusion中需要设置的正确端口可以在server.xml中找到。

在大多数以IIS作为前端with服务器的设置中,它是8012,因此需要将CF管理中的此设置更改为此值。重新启动coldfusion,您将最终看到cfstat以及度量日志中的一些值。

票数 1
EN

Stack Overflow用户

发布于 2014-07-21 15:02:53

若要启用度量日志记录,请转到“调试& Logging>Debug输出设置”,然后更新下面突出显示的值。

"Max线程“在日志中显示空值,这进一步推断没有启用度量日志。使用当前线程计数作为connection_pool_size的输入,然后设置max_reuse_connections。您还需要按照connectionTimeout中的建议,在server.xml中添加server.xml和maxThreads。这也适用于CF10。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24854769

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档