When Liferay portal is deployed in WebSphere 7, it is possible to use JConsole to connect to the app server and monitor the portal. You need two files:
(1) wm-jmx.bat
@echo off :: user configuration set HOST=liferay:2809 set WAS_HOME=c:/WebSphere/AppServer set PROPS_DIR=.etc :: properties set PROPS= set PROPS=%PROPS% -Dcom.ibm.CORBA.ConfigURL=file:/%PROPS_DIR%/sas.client.props set PROPS=%PROPS% -Djava.naming.provider.url=corbaname:iiop:%HOST% :: classpath set CLASSPATH= set CLASSPATH=%CLASSPATH%;%WAS_HOME%\java\lib\tools.jar set CLASSPATH=%CLASSPATH%;%WAS_HOME%\runtimes\com.ibm.ws.admin.client_7.0.0.jar set CLASSPATH=%CLASSPATH%;%WAS_HOME%\runtimes\com.ibm.ws.ejb.thinclient_7.0.0.jar set CLASSPATH=%CLASSPATH%;%WAS_HOME%\runtimes\com.ibm.ws.orb_7.0.0.jar set CLASSPATH=%CLASSPATH%;%WAS_HOME%\java\lib\jconsole.jar :: start jconsole using was jdk start %WAS_HOME%\java\bin\javaw.exe -classpath %CLASSPATH% %PROPS% sun.tools.jconsole.JConsole service:jmx:iiop://%HOST%/jndi/JMXConnector
|
This batch starts JConsole using IBMs VM. First 3 params should be changed to match your environment!
(2) sas.client.props (in PROPS_DIR)
com.ibm.CORBA.securityEnabled=true com.ibm.CORBA.authenticationTarget=BasicAuth com.ibm.CORBA.authenticationRetryEnabled=true com.ibm.CORBA.authenticationRetryCount=3 com.ibm.CORBA.validateBasicAuth=true com.ibm.CORBA.securityServerHost= com.ibm.CORBA.securityServerPort= com.ibm.CORBA.loginTimeout=300 com.ibm.CORBA.loginSource=prompt com.ibm.CORBA.loginUserid= com.ibm.CORBA.loginPassword= com.ibm.CORBA.krb5ConfigFile= com.ibm.CORBA.krb5CcacheFile= com.ibm.CSI.performStateful=true com.ibm.CSI.performClientAuthenticationRequired=false com.ibm.CSI.performClientAuthenticationSupported=true # all false from here com.ibm.CSI.performTLClientAuthenticationRequired=false com.ibm.CSI.performTLClientAuthenticationSupported=false com.ibm.CSI.performTransportAssocSSLTLSRequired=false com.ibm.CSI.performTransportAssocSSLTLSSupported=false com.ibm.CSI.performMessageIntegrityRequired=false com.ibm.CSI.performMessageIntegritySupported=false com.ibm.CSI.performMessageConfidentialityRequired=false com.ibm.CSI.performMessageConfidentialitySupported=false # not needed #com.ibm.ssl.alias=DefaultSSLSettings com.ibm.CORBA.requestTimeout=180
|
That's all, enjoy:)