WebLogic Status Monitoring script

Source: Internet
Author: User

echo "======================================welcome==============================================" echo "= = = =                                                                                      ====== "echo" ====            This script is used to monitor WebLogic's domain running state major monitoring objects are                ====== "echo" ====                 Server,thread,request,jdbc State and socckets                 ====== "echo" ====                 modify URL when using, Usernam,password                                ====== "echo" ====                 Create by HOUFL at 2009=03=30                                      ====== "echo" ========================================================================== ================= "url=t3://***.***.***.***.***:8082 username=weblogic password=gxngwszf

While [true] the name of the domain of Do echo "==============================weblogic" ============================================ ============="

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" ======================================== currently 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 running 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" ============================jdbc the initial and maximum number of connection pools and the server============================== "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.