调整阻塞线程检测行为_Tomcat, WebLogic及J2EE讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  Tomcat, WebLogic及J2EE讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 4232 | 回复: 0   主题: 调整阻塞线程检测行为        下一篇 
napolenAx
注册用户
等级:少校
经验:802
发帖:118
精华:1
注册:2011-8-30
状态:离线
发送短消息息给napolenAx 加好友    发送短消息息给napolenAx 发消息
发表于: IP:您无权察看 2011-10-19 8:41:11 | [全部帖] [楼主帖] 楼主

WebLogic Server diagnoses a thread as stuck if it is continually working (not idle) for a set period of time. You can tune a server’s thread detection behavior by changing the length of time before a thread is diagnosed as stuck, and by changing the frequency with which the server checks for stuck threads.
To configure stuck thread detection behavior:
If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit (see Use the Change Center).
In the left pane of the console, expand Environment > Servers.
On the Summary of Servers page, select the server instance for which you will configure thread detection behavior.
On the Configuration > Tuning tab, update as necessary:
Stuck Thread Max Time -- Amount of time, in seconds, that a thread must be continually working before a server instance diagnoses a thread as being stuck.
Stuck Thread Timer Interval -- Amount of time, in seconds, after which a server instance periodically scans threads to see if they have been continually working for the configured Stuck Thread Max Time.
For more information about low memory detection properties, see Configuration Options.
Click Save.
To activate these changes, in the Change Center of the Administration Console, click Activate Changes.
Not all changes take effect immediately—some require a restart (see Use the Change Center).
After you finish 
You must reboot the server to use the new stuck thread detection behavior values.


如果线程在某一设定的时间段内连续工作(非空闲),WebLogic Server 会将其诊断为阻塞线程。可以调整服务器的线程检测行为,方法是更改线程被诊断为阻塞线程之前所经过的时间的长度,或更改服务器检查阻塞线程的频率。

要配置阻塞线程检测行为,请执行下列操作:

    如果尚未执行此操作,请在管理控制台的更改中心中单击“锁定并编辑”(请参阅 使用更改中心)。
    在控制台的左侧窗格中,展开“环境”>“服务器”。
    在“服务器概要”页上,选择要为其配置线程检测行为的服务器实例。
    在“配置”>“调整”选项卡上,根据需要进行更新:
      阻塞线程最长时间 -- 服务器实例将线程诊断为阻塞线程之前,该线程必须连续工作的时间长度(秒)。
      阻塞线程计时器间隔 -- 服务器实例定期扫描线程,以查看线程连续工作的时间是否达到配置的“阻塞线程最长时间”的时间间隔。

有关内存不足检测属性的详细信息,请参阅配置选项

    单击“保存”。
    要激活这些更改,请在管理控制台的更改中心中单击“激活更改”。
    并非所有更改都立即生效。某些更改必须重新启动后才能生效(请参阅 使用更改中心)。

完成后

必须重新启动服务器,才能使用新的阻塞线程检测行为值。




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论