DJ
WebLogic MBeans are organized differently in WLS 9 and 10. Here is an
example of how you can access the JDBC Pool stats in WLS 9 and 10:
connect localhost:7001 weblogic weblogic
domain.com.bea:
keys Type Name Location ServerRuntime ApplicationRuntime
cd
/JDBCConnectionPoolRuntime/cgDataSource/AdminServer/AdminServer/cgDataSource
ls -l
-rw- ActiveConnectionsAverageCount (0)
-rw- ActiveConnectionsCurrentCount (0)
-rw- ActiveConnectionsHighCount (0)
-rw- ConnectionDelayTime (630)
-rw- ConnectionLeakProfileCount (0)
-rw- ConnectionsTotalCount (5)
-rw- CurrCapacity (5)
-rw- DeploymentState (2)
-rw- Enabled (true)
-rw- FailuresToReconnectCount (0)
-rw- HighestNumAvailable (5)
-rw- HighestNumUnavailable (0)
-rw- LeakedConnectionCount (0)
-rw- MaxCapacity (20)
-rw- ModuleId (cgDataSource)
-rw- Name (cgDataSource)
-rw- NumAvailable (5)
-rw- NumUnavailable (0)
-rw- Parent
(com.bea:Name=cgDataSource,ServerRuntime=AdminServer,Location=AdminServer,Type=A\
pplicationRuntime)
-rw- PoolState (true)
-rw- Properties ({databaseName=weblogic_eval, user=weblogic})
-rw- State (Running)
-rw- StatementProfileCount (0)
-rw- Type (JDBCConnectionPoolRuntime)
-rw- VersionJDBCDriver (com.pointbase.jdbc.jdbcUniversalDriver)
-rw- WaitSecondsHighCount (0)
-rw- WaitingForConnectionCurrentCount (0)
-rw- WaitingForConnectionHighCount (0)
-rw- WorkManagerRuntimes ()
if you want to find a particular MBean, use the find command
find cgDataSource
or
find -x cgDataSource
Cheers,
Paco
--- In wlshell@yahoogroups.com, <drazenko.djuricic@...> wrote:
>
>
> > Hello Paco,
> > Hello mailing list,
> >
> > We have 96 WebLogic servers here, some of which have multiple
> > instances and multiple versions of BEA WebLogic running & installed in
> > parallel. My problem is that I wanted e.g. to monitor JDBC connection
> > pools on all those machines. So for WebLogic 8.x this could be e.g. a
> > script like this:
> >
> > ...
> > cd /JDBCConnectionPoolRuntime
> > dir
> > @pools = $LAST
> > for $pool in $pools do
> > invoke $pool/testPool
> > get $pool/State
> > get $pool/ActiveConnectionsCurrentCount
> > get $pool/WaitingForConnectionCurrentCount
> > end
> > ...
> >
> > Above script works tip top on WebLogic 8.x ... But on WebLogic 9.x all
> > the structures are completely different and I am completely lost :-(
> >
> > So my humble question is: How would I need to modify above script so
> > that it works in WebLogic 9.x too? I've spent the last few days
> > trying things out but I haven't yet figured this out.
> >
> > Looking forward for help :)
> >
> > Regards,
> > "DJ."
> >
> > Drazenko Djuricic
>