WebLogic State Monitoring Script __web

Source: Internet
Author: User

echo "======================================welcome=============================================="
echo "= = = = = = = = = =
echo "= = = This script is used to monitor the WebLogic domain running state The main monitoring object has = =
echo "= = = = = = = Server,thread,request,jdbc state and socckets = = = =
echo "= = To modify the URL when using, usernam,password can be = =
echo "= = = = = Houfl at 2009=03=30 = = = =
echo "==========================================================================================="
url=t3://***.***.***.***.***:8082
Username=weblogic
Password=gxngwszf

While [true]
Todo
echo "==============================weblogic Domain name ========================================================= "

Java-cp/bea/weblogic81/server/lib/weblogic.jar WebLogic. Admin-url $url-username $username-password $password get-pretty-type server-property Parent | awk '/^/t/' | awk ' Nr==1{print $} '

echo "========================================================================================================== ===="
echo "======================================== current idle thread =========================================================="
Java-cp/bea/weblogic81/server/lib/weblogic.jar WebLogic. Admin-url $url-username $username-password $password get-pretty-type executequeueruntime-property executethreadcur Rentidlecount-property Executethreadtotalcount-property Servicedrequesttotalcount

echo "========================================================================================================== ===="

echo "======================================= server_ip and port==================================================== ===="
Java-cp/bea/weblogic81/server/lib/weblogic.jar WebLogic. Admin-url $url-username $username-password $password get-pretty-type server-property name-property listenaddress- Property Listenport

echo "========================================================================================================== ===="
echo "=======================================server run status and opensocketscurrentcount number ============================== "
Java-cp/bea/weblogic81/server/lib/weblogic.jar WebLogic. Admin-url $url-username $username-password $password get-pretty-type serverruntime-property state-property Server -property Opensocketscurrentcount

echo "========================================================================================================== ===="
echo "The initialization and maximum number of ============================JDBC connection pools and the server============================== that have been released."
Java-cp/bea/weblogic81/server/lib/weblogic.jar WebLogic. Admin-url $url-username $username-password $password get-pretty-type jdbcconnectionpool-property name-property Ini Tialcapacity-property Maxcapacity-property Targets

echo "========================================================================================================== ===="
Sleep 60

Done

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.