What are the JMX configuration parameters for different JVMs, ie CICS, IMs, Liberty Batch ? |
1. For WAS - you only talk to the control region and it returns all data: Servers > Server Types > WebSphere application servers > server_name > Administration > Administration services > JMX Connectors. enable JSR160RMI. 1.1 JMX configuration for a WAS servant region: “this only reports on the servant that opens this port” In general, configuration parameters for JMX are very much the same as for any JVMs. Except the parameter javax.management.builder.initial is uniquely for WAS servant only. Login Admin Console or DMGR console. Verify to ensure that JMX connection protocol has been enabled: Select Application servers è <your servant name> èAdministrative services è JMX connectors Activate JMX and specify JMX related parameters: Application servers è <your servant name> èProcess definition è Servant Select “Java Virtual Machine” on the list of “Additional Properties” on the right Scroll down to “Generic JVM arguments” Add the following parameters into “Generic JVM arguments”: -Djavax.management.builder.initial= è ensure that there is a space after the equal (= ) sign -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=nnnn è any port number that is currently not used and greater than 1024 or zero. This port will be used by MJE to collect JMX data -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=localhost -Djava.rmi.server.hostname=localhost Save the changes. If WebSphere Network Deployment, ensure that the changes are synchronized with Node Agent Retstart the servant. Specify the above nnnn port number in MJE for JMX data collection 2. This is how to set it up in CICS server that is not using Liberty(WLP) BROWSE /shrd/mjeqa/mjecic52/DFHJVMAX.jvmprofile Line 00000198 Command ===> Scrol # information about enabling the Java Attach API, see # http://www-01.ibm.com/support/docview.wss?uid=swg21407964. -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=53778 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=127.0.0.1 For WLP in CICS only healthcenter is added to the JVM profile and the REST interface must be used for JMX. Liberty JMX over Rest requires Security (see IBM liberty documentation referenced below in Liberty section). https://www.ibm.com/support/knowledgecenter/SSGMCP_5.3.0/com.ibm.cics.ts.java.doc/topics/ssl_liberty_racf.html - You can use LIBERTY_INCLUDE_XML to add the restConector-2.0 feature and a unique admin port if you are port sharing. Example: LIBERTY_INCLUDE_XML=/var/mje/mjecic55/&APPLID;/feats.xml +LIBERTY_INCLUDE_XML=/var/mje/mjecic55/&APPLID;/admin.xml …/feats.xml <server> <featureManager> <feature>restConnector-2.0</feature> </featureManager> </server> ../admin.xml <server> <httpEndpoint host="*" httpPort="-1" httpsPort="45524" id="defaultHttpEndpoint2"/> </server> 3. This is how to set it up JZOS job: EDIT MVJEQA.JZOS.SAMPJCL(VSAMREAD) - 01.09 Columns 0000 000078 IJO="$IJO -verbose:class" 000079 # Configure MJE options 000080 MJE="-Dcom.sun.management.jmxremote" 000081 MJE="$MJE -Dcom.sun.management.jmxremote.port=23779" 000082 MJE="$MJE -Dcom.sun.management.jmxremote.local.only=false" 000083 MJE="$MJE -Dcom.sun.management.jmxremote.authenticate=false" 000084 MJE="$MJE -Dcom.sun.management.jmxremote.ssl=false" 000085 MJE="$MJE -Djava.rmi.server.hostname=127.0.0.1" 000086 000087 export IBM_JAVA_OPTIONS="$IJO $MJE" 4. This is on IMS JMP region //Q131JMP EXEC PROC=DFSJMPR,TIME=(1440), // SOUT='*', SYSOUT CLASS // CL1=001, TRANSACTION CLASS 1 // CL2=002, TRANSACTION CLASS 2 // CL3=003, TRANSACTION CLASS 3 // CL4=004, TRANSACTION CLASS 4 // ENVIRON=DFSJVMEV, // JVMOPWKR=DFSJVMWK, // JVMOPMAS=DFSJVMMS, // IMSID=Q131 IMSID OF IMS CONTROL REGION BROWSE IMS.Q1310.PROCLIB(DFSJVMMS) - 01.09 Line 00000032 * under JDK 1.3.1S * ******************************************************************** -Xinitacsh128k -Xinitsh128k -Xmaxf0.6 -Xminf0.3 -Xmx128M -Xoss400k -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=53781 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=127.0.0.1 5. For DB2 Stored procedures DB2NWLM PROC has a JVM Property with –Dcom jmxremote SYS2.SHRD.PROCLIB(DB2NWLM) - 01.00 Columns 00001 00072 //* //IEFPROC EXEC PGM=DSNX9WLM,REGION=&RGN,TIME=NOLIMIT,ACCT=&ACCTNO, // PARM='&DB2SSN,&NUMTCB,&APPLENV' //STEPLIB DD DISP=SHR,DSN=SYS3.DKT.DSNEXIT // DD DISP=SHR,DSN=CSGI.DB2V11M.DSNLOAD // DD DISP=SHR,DSN=CSGI.DB2V11M.DSNLOD2 // DD DISP=SHR,DSN=CSGI.DB2V11M.RUNLIB.LOAD // DD DISP=SHR,DSN=CEE.SCEERUN //JAVAENV DD * ENVAR("CLASSPATH=/var/mvwebqa/bmcqahp/db2", "DB2_BASE=/shrd/db2/db2b10/base", "JCC_HOME=/shrd/db2/db2b10/jdbc", "JAVA_HOME=/usr/lpp/java/J7.0", XPLINK(ON) /* //*DCPROF DD DISP=SHR,DSN=RDHCXC.ISPF.ISPPROF //SYSIN DD UNIT=SYSDA,SPACE=(4000,(20,20),,,ROUND) //SYSPRINT DD SYSOUT=* BROWSE /shrd/mvwebqa/bmcqahp/db2/props Command ===> ********************************* Top of Data ****** -Xms128M -Xmx256M -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=53766 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=127.0.0.1 Submit job to run the stored Procedure Added on 4/16/2017 6. Liberty setup Locate the JVM.OPTION directory and add the following parameters: Add Health Center and JMX parms to Liberty Server: -Xhealthcenter:level:off,transport:jrmp Liberty servers For JMX and Liberty servers the REST JMX interface must be used (this is an IBM restriction). https://www.ibm.com/support/knowledgecenter/SS7K4U_liberty/com.ibm.websphere.wlp.zseries.doc/ae/twlp_admin_jmx.html Remote access through the REST connector is protected by a single administrator role through the HTTPS port. SSL is required to keep the communication confidential. SSL is required for access refer to IBM documentation for liberty setup current BMC doc for PAS security requirements <server> <featureManager> <feature>restConnector-2.0</feature> </featureManager> <httpEndpoint host="*" httpPort="-1" httpsPort="45524" id="defaultHttpEndpoint2"/> </server> 7. z/OS Connect EE Is a Liberty Server and JMX and health center are enabled like any other liberty server. For z/OS Connect specific requirements for rest requests see the BMC documentation: https://docs.bmc.com/docs/mje32/configuring-jmx-and-ibm-health-center-937333516.html |