Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Comparing Memory Graphs!

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

Our application is running on multiple servers based on load balancing .
The application is deployed in all of them.
There has been an Out of memory issue and we identified 2 possible reasons for memory leak.
1 is oracle connections where not closed .
the other one is connection object for mainframe was not released.

These were identified based on heap dump analysis and the fix was put in only 2servers to find the behaviour.

Now I have connected jconsole to all the servers for monitoring

1 server where there is no fix and
another server where there is a fix.

Now question is how to read the memory graph and validate the fix?

one good thing is in one server where we have the fix memory graph is almost flat.
and another server where the fix is not available the memory graph is slanting .

but the load in both of them are not exactly equal .

Is there a standard way or intelligent way to analyze and read jconsole graph?
is there any template ?

regards
a.s



 
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A few questions:

1. Where did you see Out of Memory Exception - was it in your application/server log file? Does that give you a hint as to what was going on when you got that exception.
2. Have you tried Visual VM (<JDK_HOME>\bin\jvisualvm.exe) - this is better than JConsole. Its there in JDK 1.6 (maybe in 1.5 too, not sure)
3. Can you examine the Heap Dump - to see if there are a huge number of objects of a particular class - that are not expected?

 
Anand Rajamani
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The out of memory we got thru heap dump file
It is analyzed with heap analyzer tools like netbeans and no tools gave exact result.
but based on top 20 memory consumers we
identified 2 problems in application and had put fix.
closing oracle and mainframe connections.

It is not a direct java appl.tibco java combined application

Now qstn is how to compare the memory graph and not on heap error.

regards
a.s
 
reply
    Bookmark Topic Watch Topic
  • New Topic