Skip to content

Memory leak profiler inspection #413

@sourceforge-issue-exporter

Description

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

Reported by: convenio

Original Ticket: "beanshell/bugs/275":https://sourceforge.net/p/beanshell/bugs/275

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions