0

Is there a way of telling which threads are redundant and remove them?

Is this something that might need to be done? or do threads self terminate if they encounter any error or are used for too long?

4

2 回答 2

1

您可以获取所有活动线程并杀死它们。通过下面的链接。

http://coldfusion-tip.blogspot.com/search/label/thread%20kill

于 2012-12-11T07:08:06.590 回答
1

您可以在 ColdFusion Administrator 中的“服务器设置 > 请求调整 > 同时模板请求的最大数量”下控制可用线程的数量,这将设置准备好接受从网络服务器传递的请求的可用工作人员/线程的数量。您也可以在那里微调其他一些线程设置(直接 CFC/Remoting 请求、报告请求等)。如果遇到 ColdFusion 错误但存在“挂起”线程,线程池应正常回收自身。

线程池应保持在管理员设置的数量。您可以在“服务器设置 > 设置 > 秒后超时请求”设置下设置线程的最大运行时间超时。

使用Server Monitoring > Server Monitor下的内置服务器监视器您可以转到 Alerts -> Alert Configuration 并根据超时、内存等设置许多线程终止条件,但这确实会增加系统的负载。

Adobe的 ColdFusion 应用程序性能调整文章的这一部分为您提供了一些关于线程的提示/建议。

Fusion Reactor是一款出色的商业产品,适用于需要强大控制以实现 ColdFusion 服务器的高可用性的用户。

可以查看 CFTracker,一个免费的/OSS CF 服务器监控项目。

于 2012-12-11T00:51:22.413 回答