How to use gperftools on Java Application?

276 Views Asked by At

I've learned to install the gperftools on my server from the wiki of gperftools and some blogs . The commands are like these:

yum -y install gcc make
yum -y install gcc gcc-c++

# upload libunwind-1.2.tar.gz to /home/work/
cd  /home/work/
tar zxvf libunwind-1.2.tar.gz
cd libunwind-1.2
./configure
make
make install
make clean

# upload gperftools-2.7.tar.gz to /home/work/
cd  /home/work/
tar zxvf gperftools-2.7.tar.gz
cd gperftools-2.7
./configure
make
make install
make clean

echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local_lib.conf 
ldconfig

And now I have 2 questions: 1.How can I be sure that I've install gperftools successfully? 2.How can I start to do heap check on my Java Application?

I've tried several ways, but they all seem to be wrong. Thanks!

0

There are 0 best solutions below