Linux: pmap command

Sometimes for me, when looking for which libraries was loaded by an application (mainly java libraries) I use on Linux a command that make the work easy; first of all, get the PID of the desired application:

$ ps -ef | grep java
ccardozo  3987 3964  2 11:10 pts/0    00:00:26 /opt/java/bin/java -Dprogram.name=run.sh -server…

Inspect it using pmap command…

$ pmap -x 3987 | grep jdbc
8dc02000       0       4       0 r-xs-  jboss-xa-jdbc.jar
8dc20000       0       4       0 r-xs-  tmp3817347529030789342jboss-xa-jdbc.rar
8dc21000       0       4       0 r-xs-  jboss-local-jdbc.jar
8dc22000       0       4       0 r-xs-  tmp7198301414175265274jboss-local-jdbc.rar
8dc23000       0       4       0 r-xs-  jboss-ha-xa-jdbc.jar
8dc24000       0       4       0 r-xs-  tmp3456161463617988766jboss-ha-xa-jdbc.rar
8dc25000       0       4       0 r-xs-  jboss-ha-local-jdbc.jar
8e600000       0       4       0 r-xs-  tmp9010150622292579202jboss-ha-local-jdbc.rar
8eb80000       0      12       0 r-xs-  jboss-common-jdbc-wrapper.jar

it’s all!

Published by

Claudio Cardozo

Ubuntu Kernel Team Membership, Certified SCRUM Master, System Architect, Open Source enthusiastic, Java and JavaFX passioned, OpenCRX Team, Theologist, minimalist lifestyle, eitaa!

Leave a Reply