Thiago Leão Moreira 12 Years Ago If you don't like fancy GUI you can still use the good and old CLI to monitor your Liferay. Check it out how at http://www.wolfe.id.au/2011/10/16/monitoring-the-openjdk-from-the-cli/ Please sign in to reply. Reply as... Cancel Marcellus Tavares Thiago Leão Moreira 12 Years Ago Nice post baron! Please sign in to reply. Reply as... Cancel
Marcellus Tavares Thiago Leão Moreira 12 Years Ago Nice post baron! Please sign in to reply. Reply as... Cancel
Nilesh Gundecha 12 Years Ago Great piece of work Thiago. Thanks. Please sign in to reply. Reply as... Cancel Daniel Sanz Nilesh Gundecha 12 Years Ago Thaks Thiago. Nice post! Please sign in to reply. Reply as... Cancel
Daniel Sanz Nilesh Gundecha 12 Years Ago Thaks Thiago. Nice post! Please sign in to reply. Reply as... Cancel
Warner Pinero 12 Years Ago Hi. Thanks for that info.I just want to ask where in server.xml specifically you insert the JmxRemoteLifecycleListener listener? There are many xml tags in server.xml and I'm not sure where to insert it.Thanks for the help.-Warner Please sign in to reply. Reply as... Cancel Thiago Leão Moreira Warner Pinero 12 Years Ago Hey Warner,Around the line 35, there is a list of listeners already declared. Please sign in to reply. Reply as... Cancel Warner Pinero Thiago Leão Moreira 12 Years Ago Thanks Thiago. How about connecting using jconsole? I've tried jconsole but it didn't worked. But visualvm did. Please sign in to reply. Reply as... Cancel Thiago Leão Moreira Warner Pinero 12 Years Ago Have you tried the configuration at the end of my post to jconsole? It works fine! Please sign in to reply. Reply as... Cancel
Thiago Leão Moreira Warner Pinero 12 Years Ago Hey Warner,Around the line 35, there is a list of listeners already declared. Please sign in to reply. Reply as... Cancel Warner Pinero Thiago Leão Moreira 12 Years Ago Thanks Thiago. How about connecting using jconsole? I've tried jconsole but it didn't worked. But visualvm did. Please sign in to reply. Reply as... Cancel Thiago Leão Moreira Warner Pinero 12 Years Ago Have you tried the configuration at the end of my post to jconsole? It works fine! Please sign in to reply. Reply as... Cancel
Warner Pinero Thiago Leão Moreira 12 Years Ago Thanks Thiago. How about connecting using jconsole? I've tried jconsole but it didn't worked. But visualvm did. Please sign in to reply. Reply as... Cancel Thiago Leão Moreira Warner Pinero 12 Years Ago Have you tried the configuration at the end of my post to jconsole? It works fine! Please sign in to reply. Reply as... Cancel
Thiago Leão Moreira Warner Pinero 12 Years Ago Have you tried the configuration at the end of my post to jconsole? It works fine! Please sign in to reply. Reply as... Cancel
Manish Kumar Jaiswal 12 Years Ago Hi Thiago,I am trying to set profiler for a remote server ,Now in our scenerio we have My local windows machine for profiling --> cloud ( gateway firewall --->apache----> Tomcat) . 1) After doing all configuration it says "start a SSH connection to your server with two tunnel enabled, you can use the command below ssh -vN -L10001:localhost:10001 -L10002:localhost:10002 myuser@www.myliferayremoteserver.com" where should I use this command ? Does in your scenerio your local machine is linux and you are using this command there ,or you are using this command at final linux server having tomcat. 2) "Finally you should open a connection using this connection string service:jmx:rmi://localhost:10002/jndi/rmi://localhost:10001/jmxrmi " I hope this will be automatically open when we fire remoteor do you mean to add these lines somewhereRegardsManish Please sign in to reply. Reply as... Cancel Manish Kumar Jaiswal Manish Kumar Jaiswal 12 Years Ago Thanks Thiago , I did it finally ..But I have a question ..This has connected to the server for monitoring purpose can we also profile this way cause my purpose is to do some memory profiling ..if yes how to enable it.Thanksmanish Please sign in to reply. Reply as... Cancel Thiago Leão Moreira Manish Kumar Jaiswal 12 Years Ago Nope! It's just to monitoring. Please sign in to reply. Reply as... Cancel chris kabore Thiago Leão Moreira 11 Years Ago great post! thanks. Please sign in to reply. Reply as... Cancel
Manish Kumar Jaiswal Manish Kumar Jaiswal 12 Years Ago Thanks Thiago , I did it finally ..But I have a question ..This has connected to the server for monitoring purpose can we also profile this way cause my purpose is to do some memory profiling ..if yes how to enable it.Thanksmanish Please sign in to reply. Reply as... Cancel Thiago Leão Moreira Manish Kumar Jaiswal 12 Years Ago Nope! It's just to monitoring. Please sign in to reply. Reply as... Cancel chris kabore Thiago Leão Moreira 11 Years Ago great post! thanks. Please sign in to reply. Reply as... Cancel
Thiago Leão Moreira Manish Kumar Jaiswal 12 Years Ago Nope! It's just to monitoring. Please sign in to reply. Reply as... Cancel chris kabore Thiago Leão Moreira 11 Years Ago great post! thanks. Please sign in to reply. Reply as... Cancel
chris kabore Thiago Leão Moreira 11 Years Ago great post! thanks. Please sign in to reply. Reply as... Cancel
Johann Kneringer 11 Years Ago Unfortunatly I have problems implementing this solution.Listener is set on the remote tomcat...Tunneling to my remote server is also successfull...But If I want to open the service in VisualVM i get following error:"Cannot connect to service:jmx:rmi://localhost:10002/jndi/rmi://localhost:10001/jmxrmi using service:jmx:rmi://localhost:10002/jndi/rmi://localhost:10001/jmxrmi"The catalina-jmx-remote.jar is placed on the remote tomcat and in my platform/lib folder of VisualVm.There is no firewall set up.Some tips would be very great!regards Please sign in to reply. Reply as... Cancel Thiago Leão Moreira Johann Kneringer 11 Years Ago Hey Johann, try to use the jconsole, It is better to debug with it. Please sign in to reply. Reply as... Cancel
Thiago Leão Moreira Johann Kneringer 11 Years Ago Hey Johann, try to use the jconsole, It is better to debug with it. Please sign in to reply. Reply as... Cancel
Johann Kneringer 11 Years Ago thank you very much...it works with JConsole usingjconsole service:jmx:rmi://localhost:10002/jndi/rmi://localhost:10001/jmxrmi -J-Djava.util.logging.config.file=/usr/lib/jvm/jdk1.6.0_35/lib/logging.properties -J-Djava.class.path=/usr/lib/jvm/jdk1.6.0_35/lib/jconsole.jar:/usr/lib/jvm/jdk1.6.0_35ib/tools.jar:/usr/lib/jvm/jdk1.6.0_35/lib/catalina-jmx-remote.jar; Please sign in to reply. Reply as... Cancel
Ilya Ilya 8 Years Ago It's just awesome!!Everything start to work from first try!))) I register on this site just for say thanks to you.Thank you man, i appreciate you very much! Please sign in to reply. Reply as... Cancel
Marco Ferretti 8 Years Ago Hi, I am struggling with trying to connect to a remove liferay 6.2 instance the way you have provided.I have followed step by step the guide but I am only getting a "cannot connect to service:jmx:rmi://localhost:10002/jndi/rmi://localhost:10001/jmxrmi using service:jmx:rmi://localhost:10002/jndi/rmi://localhost:10001/jmxrmi" . I tried jconsole too. It first tells me that it cannot connect securely, asks to fallback in a non secure connection and then fails.I have tried adding the -Djava.rmi.server.hostname=127.0.0.1 parameter too but no luck. On the tomcat logs I can clearly see that the ports are configured : Nov 05, 2015 10:02:47 AM org.apache.catalina.mbeans.JmxRemoteLifecycleListener createServerINFO: The JMX Remote Listener has configured the registry on port 10001 and the server on port 10002 for the Platform serverOn my local machine I am opening a tunnel as follows : ssh marco@<myserver> -L10001:127.0.0.1:10001 -L10002:127.0.0.1:10002 -vNon the ssh logs I can see the connection going TO the remote server : debug1: Connection to port 10001 forwarding to 127.0.0.1 port 10001 requested.debug1: channel 5: new [direct-tcpip]but I can't see the other port being connected.Can you please help ? Please sign in to reply. Reply as... Cancel Thiago Leão Moreira Marco Ferretti 8 Years Ago Hey Marco, were you able to use jconsole with logging configured? It is the recommended way to debug problems. Please sign in to reply. Reply as... Cancel
Thiago Leão Moreira Marco Ferretti 8 Years Ago Hey Marco, were you able to use jconsole with logging configured? It is the recommended way to debug problems. Please sign in to reply. Reply as... Cancel