Win a copy of Svelte and Sapper in Action this week in the JavaScript 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Application slowing down

 
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
 
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?
 
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.
 
    Bookmark Topic Watch Topic
  • New Topic