Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to determine, when improvement is needed?  RSS feed

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am able to find the number of live obejcts and their size in a particular scenario in my application with AppPerfect.

But what to do now?
How should I decide that this is the limit and now I should optimize some code?

Thanks.
 
Ashish Chopra
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best way to decide is by stress-testing or load-testing your application...

Maybe you can leave it on for a long period of time, like a week, and then check on its performance. Typically if there is a memory leak, the application will become sluggish. If its a UI based application, it might have problems in refershing.

Alternately, the application will just crash with an out of memory exception.

A good idea would be to analyze the data that you have currently, and map it to your implementation. If the number of objects present in your data is more than the number supposed to be from the application, then you have a potential leak on your hands that needs to be fixed.
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ashish Chopra:
The best way to decide is by stress-testing or load-testing your application...

Maybe you can leave it on for a long period of time, like a week, and then check on its performance. Typically if there is a memory leak, the application will become sluggish. If its a UI based application, it might have problems in refershing.

Alternately, the application will just crash with an out of memory exception.

A good idea would be to analyze the data that you have currently, and map it to your implementation. If the number of objects present in your data is more than the number supposed to be from the application, then you have a potential leak on your hands that needs to be fixed.


Thanks Ashish.
That's really good advice.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!