This question is covered here in great detail.
How do you measure the memory usage of an application or process in Linux?
From the blog articl
Try the pmap command:
sudo pmap -x