Archive June 2014

profile remote host jboss7 with jprofiler

local machine
– create ssh tunnel : ssh -L 8849: remoteuser@remotehost
– launch jprofiler : e.g. /mnt/jprofiler7/bin/jprofiler
– new session -> remote host -> enter host as port 8849 -> save session (don’t start session you must accomplish remote host configuration and restart server before)

remote host (linux x64)
– install(unzip) jprofiler in any folder in remote host file system : e.g. /opt/jprofiler
– edit $JBOSS_HOME/bin/ and add following (this will launch jprofiler agent uppon jboss server. jprofiler agent will listen on port 8849)

export JAVA_OPTS="$JAVA_OPTS -agentpath:/opt/jprofiler/bin/linux-x64/"

– restart jboss server

local machine
– start jprofiler saved session

That’s all