• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to detect memory leaks  RSS feed

 
Jagdeep Sharma
Ranch Hand
Posts: 121
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

I have a web application. I am using JProfiler to profile my code and i successfully connected it to my WSAD. Now i want to detect memory leaks in my code. One more thing i want to mention is that i am profiling on local server. Should i need a Load Simulator. Please guide me.


Thanks in advance
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Typically to see if you have a memory leak you can perform a soak test. If the memory foot print of the application grows despite the load being steady you've probably got a memory leak.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the service currently public and attracting a load of users?

If not, some sort of load simulator is in order. Personally I have used HttpClient to create simulated loads.

Note that creating a simulator which exercises all parts of your application is not likely to be simple.

Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!