You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2006/11/02 10:37:15 UTC

DO NOT REPLY [Bug 40850] - - Memory leak in all BeanShell components

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40850>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40850





------- Additional Comments From guillaume.lasnier@sungard.com  2006-11-02 01:37 -------
Could you attach the patch?

(In reply to comment #0)
> We heavily use BeanShell pre-, post- processor and function components.
> 
> We discovered that after running for 10 minutes, we get OutOfMemoryExceptions, 
> consistenly.
> 
> We made some test with simplified scripts and we have te same - even simple 
> BeanShell scripts cause leaks.
> 
> It turns out that this problem actually originates in the BeanShell interpreter 
> itself. The only workaround I have found constitutes of throwing out the whole 
> interpreter object afer an eval.
> 
> Looking at the sources, at the moment JMeter uses one isntance per component, 
> per test run. 
> 
> To see whether the workaround can work for JMeter, we have patched the 
> BeanShell components to instantiate a interpreters any time they need to 
> evaluate a script. This helped and now we have bounded memory use. We probably 
> have a performance loss, but so far this has posed no problem.
> 
> Since I do not see BeanShell devs fixing their leak, perhaps JMeter should 
> integrate BeanShell using the workaround, to keep JMeter actually usable with 
> this scripting?
> 
> Cheers,
>   Nik



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org