Coldfusion 经常自动重启。它会一波一波地出现,一段时间内一切正常,然后服务器会挣扎几分钟,然后多次重启,然后再次稳定下来。
我安装了 Fusion Reactor,但当 CF 发生故障时,FR 会停止记录,所以它并没有真正起到帮助作用。查看存档日志只会显示日志中的空白。
以上就是今天“Coldfusion 开始了”这句话的全部发生情况。
[root@server2 logs]# grep -i "Coldfusion started" server.log | grep "11/27/12"
"Information","main","11/27/12","01:49:35",,"ColdFusion started"
"Information","main","11/27/12","01:50:46",,"ColdFusion started"
"Information","main","11/27/12","01:52:39",,"ColdFusion started"
"Information","main","11/27/12","01:54:08",,"ColdFusion started"
"Information","main","11/27/12","01:55:12",,"ColdFusion started"
"Information","main","11/27/12","01:56:29",,"ColdFusion started"
"Information","main","11/27/12","01:57:36",,"ColdFusion started"
"Information","main","11/27/12","01:58:57",,"ColdFusion started"
"Information","main","11/27/12","01:59:56",,"ColdFusion started"
"Information","main","11/27/12","02:01:38",,"ColdFusion started"
"Information","main","11/27/12","02:03:11",,"ColdFusion started"
"Information","main","11/27/12","02:04:41",,"ColdFusion started"
"Information","main","11/27/12","02:07:53",,"ColdFusion started"
"Information","main","11/27/12","02:10:45",,"ColdFusion started"
"Information","main","11/27/12","02:11:49",,"ColdFusion started"
"Information","main","11/27/12","02:13:09",,"ColdFusion started"
"Information","main","11/27/12","02:14:18",,"ColdFusion started"
"Information","main","11/27/12","02:15:44",,"ColdFusion started"
"Information","main","11/27/12","02:17:06",,"ColdFusion started"
"Information","main","11/27/12","02:34:19",,"ColdFusion started"
"Information","main","11/27/12","03:01:20",,"ColdFusion started"
"Information","main","11/27/12","05:25:59",,"ColdFusion started"
"Information","main","11/27/12","06:30:48",,"ColdFusion started"
"Information","main","11/27/12","06:36:20",,"ColdFusion started"
"Information","main","11/27/12","09:34:07",,"ColdFusion started"
"Information","main","11/27/12","09:35:39",,"ColdFusion started"
"Information","main","11/27/12","09:36:41",,"ColdFusion started"
"Information","main","11/27/12","09:39:15",,"ColdFusion started"
"Information","main","11/27/12","09:40:42",,"ColdFusion started"
"Information","main","11/27/12","09:42:55",,"ColdFusion started"
"Information","main","11/27/12","09:44:23",,"ColdFusion started"
"Information","main","11/27/12","09:46:18",,"ColdFusion started"
"Information","main","11/27/12","09:47:35",,"ColdFusion started"
"Information","main","11/27/12","09:48:53",,"ColdFusion started"
"Information","main","11/27/12","09:50:04",,"ColdFusion started"
"Information","main","11/27/12","09:51:51",,"ColdFusion started"
"Information","main","11/27/12","09:53:05",,"ColdFusion started"
"Information","main","11/27/12","09:54:24",,"ColdFusion started"
"Information","main","11/27/12","09:55:28",,"ColdFusion started"
"Information","main","11/27/12","09:56:38",,"ColdFusion started"
"Information","main","11/27/12","09:58:03",,"ColdFusion started"
"Information","main","11/27/12","09:59:03",,"ColdFusion started"
"Information","main","11/27/12","10:04:37",,"ColdFusion started"
"Information","main","11/27/12","12:04:02",,"ColdFusion started"
我一整天都在第二个屏幕上查看 FR 中的实时服务器指标,中午 12 点左右 CPU、内存和请求似乎都正常,然后服务器重新启动了。
查看上午 9 点到 10 点之间一小时的日志(一小时内重启超过 15 次),CPU 使用率从未超过 44%,内存使用率从未超过 53% - 至少在记录的统计数据中是如此。
目前没有 JDBC 跟踪,因此我将把它添加到跟踪中,查看是否是 MySQL 导致了问题,但有人可以帮助我缩小问题范围吗,是什么原因导致 Cold Fusion 自动重启,我假设自动重启只是因为安装了 Fusion Reactor 才发生的。
这是运行 Coldfusion 9 和 Fusion Reactor 4.5.2 的 Red Hat 5 LAMP 堆栈
答案1
ColdFusion 管理员有一个日志文件部分。我会查看所有日志文件。Application.log 可能特别有用。
还可以考虑将所有传入请求记录到数据库。记录还应包括查询字符串。