Weblogic : Monitor Weblogic through command line

Posted by Sagar Patil

Set the java environment. There is a script for setting the CLASSPATH and PATH so that this tool can work.

> source setWLSEnv.sh
CLASSPATH=/dsk2/local/bea81/jdk141_02/lib/tools.jar:/dsk2/local/bea81/weblogic81/server/lib/weblogic_sp.jar:
/dsk2/local/bea81/weblogic81/server/lib/weblogic.jar:/dsk2/local/bea81/weblogic81/server/lib/ojdbc14.jar:
:/dsk1/AdvIngres/ing26/ingres/lib/edbc.jar:/dsk1/AdvIngres/ing26/ingres/lib/edbc.jar

PATH=/dsk2/local/bea81/weblogic81/server/bin:/dsk2/local/bea81/jdk141_02/jre/bin:/dsk2/local/bea81/jdk141_02/bin:
/dsk1/AdvIngres/ing26/ingres/bin:/dsk1/AdvIngres/ing26/ingres/utility:/dsk1/AdvIngres/ing26/ingres/files:
/dsk1/AdvIngres/ing26/ingres/lib:/dsk1/AdvIngres/ing26/ingres/SUNWspro/bin:/sbin:/usr/sbin:/bin:/usr/bin:
/usr/ucb:/etc:/usr/etc:/opt/fw/bin:/var/adm/psmfc/bin:/usr/openwin/bin:/usr/local/bin:/usr/psmfc/bin:
/usr/ccs/bin:/usr/lib/nis:/opt/gnu/bin:/usr/local/bin

Your environment has been set.

Success

> java weblogic.Admin

weblogic.Admin is a command-line utility for managing WebLogic Server.

Try: weblogic.Admin help LIFECYCLE   Starting, stopping, discovering servers
weblogic.Admin help INFO        Retrieving info about WebLogic Server
weblogic.Admin help JDBC        Working with JDBC connection pools
weblogic.Admin help MBEAN       Working with WebLogic Server MBeans
weblogic.Admin help CLUSTER     Working with clusters
weblogic.Admin help ALL         Help for all commands

Usage: java [<SSL trust options>] weblogic.Admin
[ [-url | -adminurl] [<protocol>://]<listen-address>:<port>]
-username <username> -password <password>
<COMMAND> <ARGUMENTS>

Sample commands

get state
> java weblogic.Admin -username user -password pass GETSTATE myserver
Current state of “myserver” : RUNNING

get server config

> java weblogic.Admin -username user -password pass GET -pretty -type Server

get server stats
> java weblogic.Admin -username user -password pass GET -pretty -type ServerRuntime

get queue stats

> java weblogic.Admin -username user -password pass GET -pretty -type ExecuteQueueRuntime

get queue stats for just the default execute queue (the one that does application work)

This shows that there are 15 idle threads that can be used by the application and there are no pending requests. Also, this queue has serviced 415,607 requests.

get JVM stats

> java weblogic.Admin -username user -password pass GET -pretty -type JVMRuntime

get JDBC stats

We have connection pools configured, but are not using them, so this is not a useful source of information.

> java weblogic.Admin -username user -password pass GET -pretty -type JDBCConnectionPoolRuntime

Weblogic Configuration after Install

Posted by Sagar Patil

After an install run config.bat to create default weblogic configuration Read more…

How to Install WebLogic under Windows

Posted by Sagar Patil

Top of Page

Top menu