Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Possible Memory Leak in ViewerServlet
Possible Memory Leak in ViewerServlet [message #489314] Fri, 02 October 2009 12:04 Go to next message
Michael  ück is currently offline Michael ückFriend
Messages: 8
Registered: July 2009
Junior Member
Hi all.

I integrated the BIRT Viewer Servlet into my JSF Application. As described in http://www.eclipse.org/birt/phoenix/deploy/viewerUsage2.2.ph p.

After i copied all the necessary libs and plugins and so on i finally got it working (there should be a hint in the tutorial that the <birt:viewer> Tag is not to be placed within a form-tag because it renders it's own HTML form.) But that's not the problem i'd like to post about.

After Playing around and generating a few reports i got an OutOfMemory Exception saying something about PermGen like in this case http://dev.eclipse.org/newslists/news.eclipse.birt/msg20164. html.

So i opened the Windows Task-manager and observed the memory used by the JVM, which is becoming larger and larger. So i think there might be a memory leak in the viewerservlet.

Even the destruction of the session doesn't work.

I'm using the viewerExample of the birt-runtime-2_5_1 on a jboss-4.2.3. The managedBean behind the jsp page is feeding the report with parameters. I set the Bean to request scope but this didn't help.

Can anybody point me somewhere how to fix this?

have a nice weekend,
Michal

[Updated on: Fri, 02 October 2009 12:06]

Report message to a moderator

Re: Possible Memory Leak in ViewerServlet [message #489615 is a reply to message #489314] Mon, 05 October 2009 11:11 Go to previous messageGo to next message
Michael  ück is currently offline Michael ückFriend
Messages: 8
Registered: July 2009
Junior Member
I changed some configuration parameters in WEB-INF/viewer.properties but had no success. The memory usage is still increasing.

Here the parameters I changed:

- viewer.session.timeout=60
- viewer.session.minimumThreshold=1

I hoped through setting these I could force the viewer to clear the session cache. Didn't help.

I reviewed the log of the jboss i deployed the application in and found that even if the HTTP-Session expires the memory usage is not changing.

I deployed the app on an linux system know and will have a look with the top-tool.

Still in need of help,
Michael
Re: Possible Memory Leak in ViewerServlet [message #490437 is a reply to message #489615] Thu, 08 October 2009 16:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: thilo.bruesshaber.gmail.com

Hi Michal,
maybe you should play around a bit with JAVA_OPTS.

Im usually adding these options in the run.conf (unix and linux) or
run.bat (win) of JBoss:

-Xms258m
-Xmx768m
-XX:+CMSClassUnloadingEnabled
-XX:+UseConcMarkSweepGC
-XX:MaxPermSize=256m

This works fine for me.

Greetings,
Thilo

Michael L schrieb:
> I changed some configuration parameters in WEB-INF/viewer.properties but
> had no success. The memory usage is still increasing.
> Here the parameters I changed:
>
> - viewer.session.timeout=60
> - viewer.session.minimumThreshold=1
>
> I hoped through setting these I could force the viewer to clear the
> session cache. Didn't help.
>
> I reviewed the log of the jboss i deployed the application in and found
> that even if the HTTP-Session expires the memory usage is not changing.
>
> I deployed the app on an linux system know and will have a look with the
> top-tool.
>
> Still in need of help,
> Michael
Re: Possible Memory Leak in ViewerServlet [message #490438 is a reply to message #490437] Thu, 08 October 2009 16:08 Go to previous message
Eclipse UserFriend
Originally posted by: thilo.bruesshaber.gmail.com

Sorry, sollte natürlich "Michael" heißen...
Previous Topic:Sort chart category by value?
Next Topic:How to add a JDBC driver in Eclipse BIRT?
Goto Forum:
  


Current Time: Tue Apr 23 08:54:13 GMT 2024

Powered by FUDForum. Page generated in 0.03573 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top