• Post Reply Bookmark Topic Watch Topic
  • New Topic

Application slowing down  RSS feed

 
Ajit Malleri
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My application runs fine for about 1-2 hours and then gradually it slows down. I have a jtable which displays records and which dynamically inserts, updates and deletes rows. There are two columns which display timer value. The problem is in displaying the timer. It slows down gradually and after 5-6 hours, it stops updating. How can I rectify this problem?
Regds,
Ajit
 
Abhik Sarkar
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe you have a memory leak in your program. Can you check if the memory usage of your application grows as it slows down?
 
Ajit Malleri
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I can see that the cpu usage becomes 80-90% after a couple of hours and it doesn't come down. Can there be a memory leak in my code? How can I detect the same?
 
Garandi Garandi
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at your getValueAt(int row, int col) method for sign of problems, you have this method if you have extended AbsrtactTableModel.
Thank you
Garandi
 
Abhik Sarkar
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajit,
I also suggest that you have a look at the article Christmas Tree Applications.
Also, you could have a look at the Performance area of this website. I do remember seeing discussions on memory leaks and tools which will help you find leaks.
HTH,
Abhik.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!