[ptt-users] TestMaker memory problems

Carl Herder carl_herder at yahoo.com
Thu Dec 28 10:52:31 PST 2006


Long running xstest loads run out of memory. It is not technically a memory leak. In com.pushtotest.tool.protocolhandler.HTTPprotocol there is a Vector URLlist that grows constantly during the run. The connect() method appends the URL for every request to this Vector. An instance is created for each CVU. As far as I can see, this list is not used for anything (HTTPSprotocol uses it for redirected URLs, which are printed out at the end). 
   
  I commented out 
   
  URLlist.addElement( con.getURL() );
   
  and the memory problem goes away. I have been running now for 18 hours, with 200 CVUs, and heap memory is stable.
   
  Plug for the Wily Leakhunter tool (disclosure--I work for the company), which pointed me immediately to the offending List. 
   
  Carl

 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cake.pushtotest.com/pipermail/users/attachments/20061228/f2d5fd76/attachment.htm


More information about the Users mailing list