Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » How to display how much resources BiRT is using to generate a report?
How to display how much resources BiRT is using to generate a report? [message #757788] Mon, 21 November 2011 12:08 Go to next message
henry.golas is currently offline henry.golas
Messages: 2
Registered: November 2011
Junior Member
Hello All,

I'm hoping someone has seen this before.

I am currently writing reports that use very large >10MB flatfiles as their source file.

Depending on the amount of data used, specifically too much, and BiRT will either crash with a java heap error (my xmxx settings are already close to system capacity in eclipse.ini) or the reports will not finish, HTML just hangs at a certain point.

I used to have an icon in BiRT that would display the amount of memory used by the report, but I am unable to find it.

Is there any other way to find out what resources are consumed by BiRT from inside Eclipse? I am trying to use something more accurate than the OS tools.

I have found a work around solution by throwing bigger,faster hardware at the reports, but that isn't a solution a can always use.

Any suggestions would be great.

Thanks,

H
Re: How to display how much resources BiRT is using to generate a report? [message #758101 is a reply to message #757788] Mon, 21 November 2011 16:28 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Download this zip file:
http://www.birt-exchange.org/org/devshare/deploying-birt-reports/1344-eclipsecon-2011-api-examples/
extract the birt metal ppt and look at slide 21 which contains memory
configuration options for the data engine. You can set them in script like:

importPackage(Packages.org.eclipse.birt.data.engine.api);
importPackage(Packages.java.lang);
//lower memory used before disk writing from 10mb to 2mb per query
reportContext.getAppContext().put( DataEngine.MEMORY_BUFFER_SIZE, new
Integer(2) );

Jason





On 11/21/2011 12:08 PM, henry.golas wrote:
> Hello All,
>
> I'm hoping someone has seen this before.
>
> I am currently writing reports that use very large >10MB flatfiles as
> their source file.
> Depending on the amount of data used, specifically too much, and BiRT
> will either crash with a java heap error (my xmxx settings are already
> close to system capacity in eclipse.ini) or the reports will not finish,
> HTML just hangs at a certain point.
>
> I used to have an icon in BiRT that would display the amount of memory
> used by the report, but I am unable to find it.
>
> Is there any other way to find out what resources are consumed by BiRT
> from inside Eclipse? I am trying to use something more accurate than the
> OS tools.
>
> I have found a work around solution by throwing bigger,faster hardware
> at the reports, but that isn't a solution a can always use.
>
> Any suggestions would be great.
>
> Thanks,
>
> H
Re: How to display how much resources BiRT is using to generate a report? [message #758102 is a reply to message #758101] Mon, 21 November 2011 16:28 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

BTW put the script in the beforeFactory.

On 11/21/2011 4:28 PM, Jason Weathersby wrote:
> Download this zip file:
> http://www.birt-exchange.org/org/devshare/deploying-birt-reports/1344-eclipsecon-2011-api-examples/
>
> extract the birt metal ppt and look at slide 21 which contains memory
> configuration options for the data engine. You can set them in script like:
>
> importPackage(Packages.org.eclipse.birt.data.engine.api);
> importPackage(Packages.java.lang);
> //lower memory used before disk writing from 10mb to 2mb per query
> reportContext.getAppContext().put( DataEngine.MEMORY_BUFFER_SIZE, new
> Integer(2) );
>
> Jason
>
>
>
>
>
> On 11/21/2011 12:08 PM, henry.golas wrote:
>> Hello All,
>>
>> I'm hoping someone has seen this before.
>>
>> I am currently writing reports that use very large >10MB flatfiles as
>> their source file.
>> Depending on the amount of data used, specifically too much, and BiRT
>> will either crash with a java heap error (my xmxx settings are already
>> close to system capacity in eclipse.ini) or the reports will not finish,
>> HTML just hangs at a certain point.
>>
>> I used to have an icon in BiRT that would display the amount of memory
>> used by the report, but I am unable to find it.
>>
>> Is there any other way to find out what resources are consumed by BiRT
>> from inside Eclipse? I am trying to use something more accurate than the
>> OS tools.
>>
>> I have found a work around solution by throwing bigger,faster hardware
>> at the reports, but that isn't a solution a can always use.
>>
>> Any suggestions would be great.
>>
>> Thanks,
>>
>> H
>
Re: How to display how much resources BiRT is using to generate a report? [message #758535 is a reply to message #758102] Wed, 23 November 2011 10:35 Go to previous messageGo to next message
henry.golas is currently offline henry.golas
Messages: 2
Registered: November 2011
Junior Member
Jason,

Thanks for the response. Please excuse my coding ignorance, I can use Report Designer but haven't dived into scripting.

I've tried adding the following piece of code in "beforeFactory"
importPackage(Packages.org.eclipse.birt.data.engine.api);
importPackage(Packages.java.lang);
reportContext.getAppContext().put( DataEngine.MEMORY_BUFFER_SIZE, new Integer(2) );

I also tried with this line:
reportContext.getAppContext().put( DataEngine.DATA_SET_CACHE_ROW_LIMIT, new Integer(-1) );

And I am not getting any significant performance improvements.

Any other recommendations?

H
Re: How to display how much resources BiRT is using to generate a report? [message #758543 is a reply to message #758535] Wed, 23 November 2011 10:50 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

You have the code in the right place.
The value has to be a non-negative integer. You could try 0 but I doubt that will help. Can you try a larger number like 20 and see if it errors out quicker.

Jason
Previous Topic:IncompatibleClassChangeError when running in JBOSS
Next Topic:reportContext.getLocale()
Goto Forum:
  


Current Time: Wed Aug 27 05:02:36 EDT 2014

Powered by FUDForum. Page generated in 0.01758 seconds