Yes... I agree that we might have resources that would be released in another point.

The complete version would show allocation by class and method. This way you could 
decide if the memory allocated is a leak or not as the leak concept is very relative. 
To decide if a memory allocation is a leak, you should have someone deciding based on 
the code if the memory was referenced in a wrong way (that identifies a leak)

Basically, you have to manage memory allocations if you want to find memory leaks. 
Usually methods that are most consuming memory are generating leaks.
So, my idea is to have the lite version capturing in a daily basis methods that are 
most consuming memory and CPU. 

We could configure some installation to run only elected testcases that we believe are 
generating leaks or extra use of the CPU. (Well, maybe after we start to profile 
testcases we could create specific testcases to those ends)

I think the word that summarizes everything is... "manage" memory allocations, instead 
of finding memory leaks.

It's impossible to catch a memory leak by any profiler. A profiler would only tell 
where the memory is being allocated (Most profilers donÂt tell where, only what kind 
of objects were allocated). As I told you before, IMHO, to identify a leak it's needed 
some intelligence. 

Talking about the algorithm of the JUNIT Profiler itself now:
It's a very simple algorithm. The lite version consists in a JNI class that captures 
the number of allocated objects, released objects, allocated bytes and CPU used. We 
will call the library from a socket agent every time a testcase starts or stops. 
We will have those measures by JVM used in the testcase.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3850233#3850233

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3850233


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to