Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#275 Memory leak due to unclaimed Tokens

open
nobody
Parsing (77)
5
2006-09-08
2006-09-08
convenio
No

Running bsh-204b version whith jdk 1.4, I'm getting a
memory leak when calling bsh.eval()
Whith a profiler I can see that after the execution o
bsh, there are still around 25 Mb in memory, most of
them in unclaimed bsh.Token objects.
As said in the manula: "...BeanShell Interpreter
instances were designed to be very light weight.
Construction time is usually negligible and in simple
tests, we have found that it is possible to maintain
hundreds (or even thousands) of instances."...
Is there a way to free those Tokens?
The only solution is invoke the Garbage Colector?
Thanks

Discussion