性能测试-monitor weblogic by sitescope
Purpose:
This document guide you how to use sitescope to monitor Weblogic when do performance testing. Some monitor data like weblogic JVM, thread, JDBC, JMS, GC etc.
Steps:
The general steps of monitor Weblogic as following (configuration of Weblogic, configuration of sitescope)
- Create a user with monitor and admin privilege in the Weblogic domain
- Enable IIOP on the special Weblogic instance which will be monitored in the domain
- Using JMX to monitor the Weblogic instance from sitescope
The detail step by step:
1, Open Weblogic console and login with admin account
2, Navigate to Security Realms page
3, click myrealm link
4, then click “users and groups” tag
5, navigate to “users” tag and click “New” button to create a user for monitor
6, in the “Create A New User” page, input user name and password, then click “save” button.(must write down the user name and password input here, this account will be used for monitor)
7, back to user and group page, click the user just created
8, assign the “administrator and monitor” to this account
9, back to home page, click server link in the home page
10, navigate to the instance which you want to monitor
11, enable IIOP for this weblogic instance by navigate to Protocols->IIOP.
12, click advanced link to config IIOP
13, config the IIOP with the user just created
14, remote to your Weblogic server, go to Weblogic install folder, move to lib folder, run command: ./ java -jar wljarbuilder.jar . Then save the file wlfullclient.jar to your local PC. Restart your Weblogic instance that you want monitor.
Now the preparation for weblogic is done, then you focus on the sitescope side.
15, upload the wlfullclient.jar file to the sitescope server and write done the file path.
16, open sitescope and create a JMX monitor, type in the correct JMX URL, user, password and other path. For the JMX URL, the format as ‘service:jmx:iiop:///jndi/iiop://IP:port/weblogic.management.mbeanservers.runtime’ . the IP and port is the weblogic instance listened IP and port.
Troubleshoot
Sometimes sitescope will display the ‘JMX connection exception’ error, then you can try navigate to register, HKEY_LOCAL_MACHINE -> SYSTEM -> ControlSet001 -> Services -> SiteScope -> ServiceParam, change -server -Xmx256m -showversion -Dcatalina.home= ...to -server -Xmx256m -showversion -Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:30000:500:10 -Dcatalina.home= ...then restart the sitescope.

浙公网安备 33010602011771号