[Owasp-webscarab] WebScarab Memory Leaks and Exceptions from Beanshell Scripting

Rogan Dawes lists at dawes.za.net
Mon May 12 16:10:17 EDT 2008


Tracy, Edward [USA] wrote:
> 
> I found running some scripts for several hours started throwing non-descript
> Exceptions. I traced the offending line to     
> 	scripted.addConversation(response);
> 
> I then caught and ignored the exceptions (that didn't happen on every
> request), as the request and responses were still being made. Next, a long
> run revealed WS slowed to a craw. Instead of sending and receiving a request
> in .5seconds, it gradually slowed to 5seconds per request!
> 
> I didn't debug any further, as it would have required rebuilding a debugging
> WS, and I didn't have time for that. Any thoughts? Btw, it's just an idea
> that the exception is linked to the slow-down. Who knows really.
> 
> -ed

I think that the performance problems are likely to be related to the 
number of conversations in your list. I use an ArrayList as the primary 
structure, but there are a number of places where I iterate over the 
whole list, I think.

It works in the main use cases, and in particular, *my* main use cases, 
so if anyone is keen to investigate better in-memory data structures and 
algorithms, I'd be happy to take patches :-)

Rogan


More information about the Owasp-webscarab mailing list