When I use the following command
java weblogic.Admin -url %URL% -username %WLS_USER% -password %WLS_PW% GET -pretty -mbean "%DOMAIN_NAME%:Name=%ADMINSERVER_SERVERNAME%,Type=Server" -property ListenPort
to check the status of the server every minute, the CPU usage shoots upto 70% for just running this command and my application requires me to check the status every minute using this command, which is undesirable.
How to check the health of the a weblogic server instance every minute with min CPU/time using command line util so that I could invoke from script
if the weblogic is running in unix host, it's easy to check the weblogic availabilty by checking the corresponding unix process.
ps -ef|grep -i weblogic|grep -i "weblogic server name"
since it's just a simple OS command, it will not takeup your resources.