How to analyze whether the memory is freeing ot not using the java files and related to database connections?
===

I'm working in the product based company. In some modules our application is very slow. So we have to monitor in which java files or database connections oriented files are sucking the memory. Is there any tool to identify in which java files are totally sucking this memory ? Can you anybody to help me to identify the issue. Thanks in advance.