Disable generating rptdocument in WebViewerExample [message #536823] |
Mon, 31 May 2010 07:52 |
Tom Mising name Messages: 29 Registered: July 2009 |
Junior Member |
|
|
Hello,
i am using the WebViewerExample in BIRT 2.5.2.
Is it possible to disable generating the rptdocument file in there?
I got for each generated report a file like " WebViewerExample\documents\BIRTDOC62864D09812C9924ED10568E3B A13034\20100531_093449_546\WebViewerExample\test.rptdocument " when i call the report by " http://localhost:8080/WebViewerExample/frameset?__report=tes t.rptdesign&sample=my+parameter".
The problem is, i have a lot of different reports, and every report seems to be hold in memory. So when i use the WebViewerExample for many days, the memory rise up until Windows swaps (Tomcat6.exe uses up tp 361MB in memory on a machine with 512MB RAM).
I have a lot of different reports, because i modify the SqlQuery from each report, before running them. And for each batch i am running, i generate a report like MyReport_BatchNumber123.rptdesign. That works better for me, because the sql queries got influences from another application.
Now i got for each report, MyReport_BatchNumber123, MyReport_BatchNumber124 and so on a rptdocument file in WebViewerExample/documents and the memory rises up until swaps.
If you have any questions, please ask me.
//Edit: Sorry, i have to correct myself. Each run on the test.rptdesign ( from WebViewerExample ) do generate a rptdocument file. So when i call " http://localhost:8080/WebViewerExample/output?__report=test. rptdesign&sample=my+parameter" for example an press F5 i have many directories like "20100531_101512_390" and so on. How could i disable this?
//Edit2: Here is my small example to test memory rising
<html>
<head>
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript">
reloadPage = function()
{
window.location.reload();
}
$(document).ready(
function ()
{
window.setTimeout("reloadPage()", 1000);
}
);
</script>
</head>
<body>
<iframe id="_report" name="_report" src="http://localhost:8080/WebViewerExample/output?__report=test.rptdesign&sample=my+parameter" height="480" width="640"></iframe>
</body>
</html>
I am running that test since ~30 minutes and the memory has rised from 141MB to 162MB. And the documents folder contains about 1.000 folders.
Best regards,
Tom
[Updated on: Mon, 31 May 2010 09:19] Report message to a moderator
|
|
|
Re: Disable generating rptdocument in WebViewerExample [message #537195 is a reply to message #536823] |
Tue, 01 June 2010 14:57 |
|
You can use /run instead of /frameset, but if you want pagination in the
HTML output it has to create the rptdocument. You can always specify
the rptdocument to create by adding the __document=pathtodocument if you
want to re-use one.
Jason
On 5/31/2010 3:52 AM, Tom wrote:
> Hello,
> i am using the WebViewerExample in BIRT 2.5.2.
>
> Is it possible to disable generating the rptdocument file in there?
>
> I got for each generated report a file like "
> WebViewerExample\documents\BIRTDOC62864D09812C9924ED10568E3B
> A13034\20100531_093449_546\WebViewerExample\test.rptdocument " when i
> call the report by
> " http://localhost:8080/WebViewerExample/frameset?__report=tes t.rptdesign&sample=my+parameter".
>
>
> The problem is, i have a lot of different reports, and every report
> seems to be hold in memory. So when i use the WebViewerExample for many
> days, the memory rise up until Windows swaps (Tomcat6.exe uses up tp
> 361MB in memory on a machine with 512MB RAM).
>
> I have a lot of different reports, because i modify the SqlQuery from
> each report, before running them. And for each batch i am running, i
> generate a report like MyReport_BatchNumber123.rptdesign. That works
> better for me, because the sql queries got influences from another
> application.
>
> Now i got for each report, MyReport_BatchNumber123,
> MyReport_BatchNumber124 and so on a rptdocument file in
> WebViewerExample/documents and the memory rises up until swaps.
>
> If you have any questions, please ask me.
>
>
> Best regards,
> Tom
|
|
|
Powered by
FUDForum. Page generated in 0.02518 seconds