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?