50 lines
1.8 KiB
HTML
50 lines
1.8 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
|
||
|
|
||
|
<title> Adjust the hang detection policy</title>
|
||
|
</head>
|
||
|
<BODY>
|
||
|
<!-- Java sync-link -->
|
||
|
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
||
|
<h4><a name="trbadjhangdet"></a>Adjust the hang detection policy</h4>
|
||
|
|
||
|
<p>You can adjust the thread monitor settings by using the wsadmin
|
||
|
scripting interface. These changes take effect immediately, but do not persist
|
||
|
to the server configuration, and are lost when the server is restarted. The
|
||
|
following script provides an example of how to adjust the properties
|
||
|
for the thread monitor of a running server using the wsadmin tool:</p>
|
||
|
|
||
|
<pre>
|
||
|
# Read in the interval, threshold, false alarm from the command line
|
||
|
set interval [lindex $argv 0]
|
||
|
set threshold [lindex $argv 1]
|
||
|
set adjustment [lindex $argv 2]
|
||
|
|
||
|
# Get the object name of the server you want to change the values on
|
||
|
set server [$AdminControl completeObjectName "type=Server,*"]
|
||
|
|
||
|
# Read in the interval and print to the console
|
||
|
set i [$AdminControl getAttribute $server threadMonitorInterval]
|
||
|
|
||
|
# Read in the threshold and print to the console
|
||
|
set t [$AdminControl getAttribute $server threadMonitorThreshold]
|
||
|
|
||
|
# Read in the false alarm adjustment threshold and print to the console
|
||
|
set a [$AdminControl getAttribute $server threadMonitorAdjustmentThreshold]
|
||
|
|
||
|
# Set the new values using the command line parameters
|
||
|
$AdminControl setAttribute $server threadMonitorInterval ${interval}
|
||
|
|
||
|
$AdminControl setAttribute $server threadMonitorThreshold ${threshold}
|
||
|
|
||
|
$AdminControl setAttribute $server threadMonitorAdjustmentThreshold ${threshold}
|
||
|
|
||
|
|
||
|
</pre>
|
||
|
|
||
|
</body>
|
||
|
</html>
|