Mbean을 통한 idle thread 개수 모니터링
java weblogic.Admin -url localhost:7001 -username weblogic -password weblogic GET -pretty -type ExecuteQueueRuntime
유용한 weblogic.Admin 명령어
java weblogic.Admin -url localhost:7001 -username weblogic -password weblogic CONNECT 10
java weblogic.Admin -url localhost:7001 -username weblogic -password weblogic LICENSES
java weblogic.Admin -url localhost:7001 -username weblogic -password weblogic PING 10
java weblogic.Admin -url localhost:7001 -username weblogic -password weblogic THREAD_DUMP ; SUN, JRockt JVM Only
java weblogic.Admin -url localhost:7001 -username weblogic -password weblogic VERSION ; Depricated WLS 9.x
java weblogic.Admin -url localhost:7001 -username weblogic -password weblogic GETSTATE ; Depricated WLS 9.x
java weblogic.Admin -url localhost:7001 -username weblogic -password weblogic SEREVERLOG ; Depricated WLS 9.x
java weblogic.Admin -url localhost:7001 -username weblogic -password weblogic LIST
참고 : weblogic.jar 파일이 클래스패스에 잡혀 있어야 한다. 아래와 같이 직접 클래스 패스를 설정하고 테스트 해볼 수 있다.
java -cp C:\bea103\wlserver_10.3\server\lib\weblogic.jar weblogic.Admin -url localhost:7001 -username weblogic -password weblogic CONNECT 10
Usage: java [<SSL trust options>] weblogic.Admin
[ [-url | -adminurl] [<protocol>://]<listen-address>:<port>]
-username <username> [-password <password>]
<COMMAND> <ARGUMENTS>
Where commands and arguments are:
********** Managing the Server Life Cycle **********
UNLOCK
RESUME [<targetServer>]
FORCESHUTDOWN [<targetServer>]
SHUTDOWN [-ignoreExistingSessions] [-timeout <seconds>] [<targetServer>]
OR
(Deprecated) SHUTDOWN [<seconds> ["<stringMessage>"]] [<targetServer>]
LOCK ["<stringMessage>"]
START <targetServer>
(Deprecated) STARTINSTANDBY <targetServer>
DISCOVERMANAGEDSERVER [-serverName <targetServer> [-listenPort <listenport>] [-listenAddress <listen address>] -listenPortSecure]]
********** Retrieving Information about WebLogic Server **********
GETSTATE [<targetServer>]
HELP [<COMMAND>]
CONNECT [<count>]
LICENSES
LIST [<JNDIcontextName>]
PING [-timeout <seconds>] [<roundTrips>] [<messageLength>]
THREAD_DUMP
VERSION
SERVERLOG [<startTime> [<endTime>]]
********** Working with JDBC Connection Pools **********
SUSPEND_POOL -poolName <connection pool name>
(Deprecated) DISABLE_POOL <poolName> [true | false]
RESET_POOL <poolName>
CREATE_POOL <poolName> <poolString>
(Deprecated) DESTROY_POOL <poolName> [true | false]
SHUTDOWN_POOL -poolName <connection pool name>
RESUME_POOL -poolName <connection pool name>
TEST_POOL <poolName>
EXISTS_POOL <poolName>
(Deprecated) ENABLE_POOL <poolName>
DELETE_POOL -poolName <connection pool name>
********** Managing WebLogic Server MBeans **********
GET [-pretty] {-type <mbeanType>|-mbean <objectName>} [-property <property>]...
CREATE {-name <name> -type <mbeanType>} | {-mbean <objectName>}
INVOKE {-type <mbeanType>|-mbean <objectName>}
-method <methodName> [<argument>...]
BATCHUPDATE -batchFile <fileLocation> [-continue[안내]태그제한으로등록되지않습니다-xxOnError] [-batchCmdVerbose]
DELETE {-type <mbeanType> | -mbean <objectName>}
QUERY [-pretty] -pattern <objectName_pattern>
SET {-type <mbeanType>|-mbean <objectName>} [-property <property> [<value>]]...
********** Working with Clusters **********
VALIDATECLUSTERCONFIG -configPath <pathname>
MIGRATEALL -server <servername> -destination <servername> [-sourcedown] [-destinationdown]
CLUSTERSTATE -clusterName <clusterName>
STOPCLUSTER -clusterName <clusterName>
MIGRATESERVER -migratableserver <servername> -destinationmachine <machinename>
MIGRATE [-jta] -migratabletarget {<migratabletargetName> | <servername>} -destination <servername> [-sourcedown] [-destinationdown]
or
MIGRATE -singletonservice <singletonServiceName> -destination <servername>
STARTCLUSTER -clusterName <clusterName>
********** Managing the Admin Configuration **********
STOREUSERCONFIG -username <user> -password <password> [-userconfigfile <file>] [-userkeyfile <file>]
********** SSL Trust Options **********
If the domain-wide administration port is enabled, or if you are
connecting to a server through some other SSL port, you might need
to include Java options to indicate which host the weblogic.Admin
utility trusts. For example, if the server to which you are connecting
is using the demonstration SSL keys and certificates, you must include
the TrustKeyStore option as follows:
java -Dweblogic.security.TrustKeyStore=DemoTrust weblogic.Admin <...>
For more information, refer to the WebLogic Server security documentation.
For usage and examples on individual commands, use
java weblogic.Admin HELP <COMMAND>