My question is different from this I've done profiling of my application it is too slow.
After completion of one process I have seen some live objects in the heap walker.
Though we are caching some data from database to HashMap
but the heap walker shows me some live objects like Resultset.getString
and Statement.getString
which should not be there.
HashMap.put()
taking very less memory then above two methods.
Have I done everything fine and is this analysis right? OR I am missing anything and the memory is occupied by HashMap
itself and HeapWalker
is just showing me methods of JDBC (getString
and executeQuery
).