Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » ECLIPSE MEMORY ANANLYSER
ECLIPSE MEMORY ANANLYSER [message #729402] Mon, 26 September 2011 06:24 Go to next message
fabian  is currently offline fabian Friend
Messages: 1
Registered: September 2011
Junior Member
Hi Everyone,

This is my first post in this forums, Smile
Im new to Memory Analyser.I wanted to update my knowledge regarding how to analyse heap dumps.So i wanted all your help.

I have a java application deployed on weblogic server.I dont have any Out of memory related issue.But i have leaked connection issues..So accordingly,I have made configuration of killing the inactive connection after every 4 mins

I get the below errors in weblogic.out file when an inactive session gets killed..

<Sep 26, 2011 11:17:36 AM IST> <Warning> <JDBC> <BEA-001153> <Forcibly releasing
inactive connection
"weblogic.jdbc.wrapper.PoolConnection_oracle_jdbc_driver_T4CConnection@67f5cb" back
into the connection pool "pool_1526", currently reserved by: java.lang.Exception
at weblogic.jdbc.common.internal.ConnectionEnv.setup(ConnectionEnv.java:325)
at
weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:363)


For heap dump analysis,i created a .bin file using jmap utility then update this .bin file on ECLIPSE MEMORY ANANLYSER tool.

The output of analyser is as follows.

Problem Suspect 1
One instance of "weblogic.jdbc.common.internal.GenericConnectionPool" loaded by "sun.misc.Launcher$AppClassLoader @ 0x866ba340″ occupies 335,917,304 (90.26%) bytes. The memory is accumulated in one instance of "java.util.LinkedList$Entry" loaded by "".
Keywords
weblogic.jdbc.common.internal.GenericConnectionPool
sun.misc.Launcher$AppClassLoader @ 0x866ba340
java.util.LinkedList$Entry

Now i want to understand,what does this mean..what is the root cause for this problem.

I would be very thankful,if any1 would help me in understanding how to analyse heap dump..

Regards
Fabian
Re: ECLIPSE MEMORY ANANLYSER [message #729413 is a reply to message #729402] Mon, 26 September 2011 06:53 Go to previous message
venagara  is currently offline venagara Friend
Messages: 6
Registered: August 2011
Junior Member
Leak-Suspect report shows your main accumulation point. In your case, JDBC Connection does not seem to be Released. However, your Weblogic server is forcibly reclaiming the connections, after Inactive time configured, ss you have Turned-ON the WebLogic "Connection Profiler".

So, to further triage, you need to do the following:

1) Open "Histogram View"
Histogram View gives you number of 'Object Instances per Class", along with
its "shallow size" and "retained size". Here, Sorting by "retained size" desc
lists your "Top Objects" in memory. If Leak Suspect showed any suspect, then
those should also be listed here.

In your case, you will see the below: "weblogic.jdbc.wrapper.PoolConnection_oracle_jdbc_driver_T4CConnection

2) Next is to identify the Object-Tree which is causing this Leak:
To do this, you can right-click on the class in the Histogram view and
select "List objects". In the list objects window, sort again by
"Retained size" desc, to identify 1 or more similar rows with highest
Retained sizes.
Repeat the below for top 2-3 records:
# Select a record with high Retained-Size and start opening the nodes
# This will show the object chain which is referencing this object,
as a result of which, this object is not getting garbage-collected.
Via this, you will be able to figure out, which program unit, this
connection leak is taking place.

Alternative way - Run a grep on the source-code to identify all places, where
you are getting a Connection. And ensure that this ConnectionObject is getting
released ONLY within a FINALLY Block.

Note: in your case, your weblogic configuration of "Enable Connection Profiler" is preventing your Application-server from totally going to Stand-Still, with minimal 'Force-reclaims'.

All the Best!

Thanks,
Vinod
Previous Topic:How to export results?
Next Topic:Memory Analyzer 1.1.1 is now released
Goto Forum:
  


Current Time: Fri Apr 26 16:24:33 GMT 2024

Powered by FUDForum. Page generated in 0.02791 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top