服务器 Gind.cn

服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器

JRun线程池configuration

我和我的团队一直在努力保持ColdFusion应用程序集群在过去6个月的较好的一段时间内保持稳定,而且效果甚微。 我们正在转向SF,希望能够find一些JRun的专家或新鲜的想法,因为我们似乎无法弄清楚。 设置: 在Windows Server 2003的IIS 6上,两个ColdFusion 7.0.2实例与JRun 4(w /最新更新)集群。两个四核CPU,8GB RAM。 问题: 每隔一段时间,通常一周一次的实例将完全停止处理请求。 它没有任何活动,我们必须重新启动它。 我们知道: 每当发生这种情况JRun的错误日志总是充满java.lang.OutOfMemoryError:无法创build新的本地线程。 在阅读Macromedia / Adob​​e的JRun文档以及许多令人困惑的博客文章之后,我们或多或less地将其缩小到实例的jrun.xml中不正确/未优化的JRun线程池设置。 我们的jrun.xml的相关部分: <service class="jrun.servlet.jrpp.JRunProxyService" name="ProxyService"> <attribute name="activeHandlerThreads">500</attribute> <attribute name="backlog">500</attribute> <attribute name="deactivated">false</attribute> <attribute name="interface">*</attribute> <attribute name="maxHandlerThreads">1000</attribute> <attribute name="minHandlerThreads">1</attribute> <attribute name="port">51003</attribute> <attribute name="threadWaitTimeout">300</attribute> <attribute name="timeout">300</attribute> {snip} </service> 我已经在上周启用JRun的指标来收集与线程相关的数据。 这是让它login一周后的数据摘要。 平均值: {jrpp.listenTh} 1 {jrpp.idleTh} 9 {jrpp.delayTh} 0 {jrpp.busyTh} 0 {jrpp.totalTh} […]