The following command pings a server instance running on port 7001 10 times:
java weblogic.Admin -url localhost:7001 -username weblogic -password webl0gic PING 10
To ping a server instance running on port 7002
java weblogic.Admin -url localhost:7002 -username weblogic -password webl0gic PING 10
GETSTATE
The following example returns the state of a WebLogic Server instance that runs on a machine
named localhost on port 7002
java weblogic.Admin -url localhost:7002 -username weblogic -password webl0gic GETSTATE
VERSION
The following command displays the version of the WebLogic Server software that is currently running on a host named localhost:
java weblogic.Admin -url localhost:7001 -username weblogic -password webl0gic VERSION
CONNECT
In the following example, the weblogic.Admin utility establishes 10 connections to a WebLogic Server
instance whose listen address is localhost and listen port is 7001:
java weblogic.Admin -url localhost:7001 -username weblogic -password webl0gic CONNECT 10
If the command establishes the connections, it returns the following information:
Connection: 0 - 3,229 ms
Connection: 1 - 17 ms
Connection: 2 - 14 ms
Connection: 3 - 20 ms
Connection: 4 - 18 ms
Connection: 5 - 25 ms
Connection: 6 - 27 ms
Connection: 7 - 15 ms
Connection: 8 - 15 ms
Connection: 9 - 15 ms
RTT = ~3422 milliseconds, or ~342 milliseconds/connection
If the command does not establish a connection, it returns nothing.
In this example, the first connection required 3,229 milliseconds and the second connection required 17 milliseconds. The average time for all connections was 3422 milliseconds.
THREAD_DUMPS
The following example causes a server instance that is running on a host named localhost and port 7002 to print a thread dump to standard out:
java weblogic.Admin -url localhost:7002 -username weblogic -password webl0gic THREAD_DUMP
If the command succeeds, the command itself returns the following :
Thread Dump is available in the command window that is running the server.
The server instance prints a thread dump to its standard out, which, by default, is the shell (command prompt) within which the server instance is running.
No comments:
Post a Comment