Get the dump file for your process
Prepare tools
jmap : http://docs.oracle.com/javase/7/docs/technotes/tools/share/jmap.html mat : download from http://www.eclipse.org/mat/downloads.php
Get the dump file
- get the pid of your process > ps -ef | grep .... (In Windows, you may need to install procexp64 to get the pid )
- generate the dump file
> jmap -dump:format=b,file=test.bin
Analyze the file
- open file from mat(type:suspects)
- click OQL
input search command:
select class select * from com.compositesw.cdms.ds.teradata.TeradataConnection select string SELECT s FROM java.lang.String s WHERE s.toString().equals("test1234567890")
search carefully from the result
comments powered by