The result is quite amazing... here's my current survey of the memory-usages of running the script <J:jelly><j:set var="c" value="true"/></j:jelly> 10000 times.
The memory usage is computed from the difference Runtime.totalMemory()-Runtime.freeMemory() between the start and after 10000 runs.


- Windows, (Sun's?) JDK 1.4.2 _06, memory usage of about 2.4 Mb
- Linux, JDK 1.4.2 _02, memory usage of about 48 Kb (honest!)
- MacOSX, JDK 1.4.2 _05, memory usage of about 96 kb (same original codebase, I think)
- Linux, JDK 1.3.1 _06, usage 6 kb
- Linux, JDK 1.5.0 0b64 usage 67 kb


The difference between the platforms is somewhat enormous!
I played a bit more with the test... Added a simple instance counter for the number of live instances of TagSupport and... it does not grow! (but fails after inserting this!).
In all cases, the used-memory keeps growing... any "optimizer" effect ?


Do maven experts have an easy way for me in maven to run a unit test with profiling option -Xprof on ?

thanks

paul


Le 28 d�c. 04, � 23:49, Brett Porter a �crit :

No problem - hopefully it remains attached.

Let me know if you need any more info. It was run using Maven 1.0.2 as "maven clean jar:install" off the latest CVS. I didn't really change anything since the last time I built it.

- Brett

Paul Libbrecht wrote:


Le 28 d�c. 04, � 10:13, Brett Porter a �crit :

can you document more your platform and VM...

Windows, Sun Java 1.4.2_06


If possible, I'd get a copy of your failure to help me fix it... I think it's a good test that should prove the absence of leaking.

[...] Also, maybe it should be renamed as OptionalTestCoreMemoryLeak and only run when one wants ? (it is very slow anyways).

I think this is a good idea.


I've disabled it in project.xml for now hoping to make it mainstream soon.

thanks

paul


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



<TEST-org.apache.commons.jelly.core.TestCoreMemoryLeak.txt.gz>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to