When using top to see the running processes on the system it just shows the common name of the process, for instance:
12856 root 20 0 2323m 1.1g 5656 S 1.3 11.3 84:26.23 java
In this case we don’t have enough information about what’s running on that JRE. In order to find it out we can tell top to show the full command with arguments using the -c parameter,
$ top -c
or just by pressing c key once top is launched:
12856 root 20 0 2323m 1.1g 5656 S 2.7 11.3 84:27.62 /data/alfresco-4.2.a/java/bin/java -Djava.util.logging.config.file=/data/alfresco-4.2.a/tomcat/conf/logging.properties
If we wanted to get this behaviour by default when launching top we can press W (upper case) to save the current settings to our local top configuration file located in ~/.toprc.