2

I have to say that I am not familiar with Swing technology. I am doing test automation on a Swing application. The problem I encountered was when I ran my tests automatically overnight, the application became unresponsive after a certain period of time and then tests failed. I recorded the time in test log, the period was mostly around 6 hours.

The application was still working but very slowly. There was no out of memory exception thrown. So I reckon it could be something wrong with the implementation of app using Swing. And maybe because the app keeps running so garbage collecting cannot catch up?

I couldn't find much information by Google. Could anyone who had similar experience shed some lights on the direction to solve this issue? Many thanks!

Kevin
  • 413
  • 1
  • 4
  • 7

1 Answers1

2

Try connecting to the application using JConsole and leave it running for the duration of the test. Check the memory heap usage chart. If you see the see saw line slowly rising, you have a memory leak somewhere.

There are tools to examine the heap, like IBM's Heap Analyzer.

tom
  • 1,331
  • 1
  • 15
  • 28