Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » BIRT Out Of Memory issues(Possible solution to out of memory issues encoutered when generating reports. )
BIRT Out Of Memory issues [message #652199] Wed, 02 February 2011 20:18 Go to next message
No real name is currently offline No real name
Messages: 1
Registered: February 2011
Junior Member
Hi guys,

Ive been having a lot of out of memory issues with BIRT reports over the last few months. All information regarding this online seems to suggest just increasing the heap size and tweaking various memory settings. At best these all just delay the issue.

However, I think I've stumbled upon a solution (or at least it was in my situation). Just posting up in case anyone else might be encountering the same thing.

In my case, the issue was to do with custom javascript which I had added. For some reason, any local variables declared were not being cleared from memory once the function had finished running.

So if you have a function:

function getSomething()
{
a = "hello";
b = "world";

return "something";
}

If you ran this function multiple times, it was using up new memory blocks for the a and b variables at each run.

The moment I modified my javascript functions to explicitly destroy the variables, all my out of memory issues were no longer occurring;

function getSomething()
{
a = "hello";
b = "world";

delete a;
delete b;
return "something";
}


Note: I am still getting memory issues. However, now the issue is that eclipse crashes with out of memory error *after* my report is generated. So at least I can actually see my report now.
Re: BIRT Out Of Memory issues [message #652364 is a reply to message #652199] Thu, 03 February 2011 11:33 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Just curious is using var instead of the delete would work.

Jason

On 2/2/2011 8:18 PM, tkuchhal@gmail.com wrote:
> Hi guys,
>
> Ive been having a lot of out of memory issues with BIRT reports over the
> last few months. All information regarding this online seems to suggest
> just increasing the heap size and tweaking various memory settings. At
> best these all just delay the issue.
>
> However, I think I've stumbled upon a solution (or at least it was in my
> situation). Just posting up in case anyone else might be encountering
> the same thing.
> In my case, the issue was to do with custom javascript which I had
> added. For some reason, any local variables declared were not being
> cleared from memory once the function had finished running.
>
> So if you have a function:
>
> function getSomething()
> {
> a = "hello";
> b = "world";
>
> return "something";
> }
>
> If you ran this function multiple times, it was using up new memory
> blocks for the a and b variables at each run.
>
> The moment I modified my javascript functions to explicitly destroy the
> variables, all my out of memory issues were no longer occurring;
>
> function getSomething()
> {
> a = "hello";
> b = "world";
>
> delete a;
> delete b;
> return "something";
> }
>
>
> Note: I am still getting memory issues. However, now the issue is that
> eclipse crashes with out of memory error *after* my report is generated.
> So at least I can actually see my report now.
Previous Topic:Charts with Interactivity not complete
Next Topic:Problem with export to pdf
Goto Forum:
  


Current Time: Thu Jul 31 19:47:11 EDT 2014

Powered by FUDForum. Page generated in 0.01622 seconds