Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » how to improve performance
how to improve performance [message #490688] Fri, 09 October 2009 17:19 Go to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
Hello,

Birt 2.5.
Long reports (many pages) with tables and charts deployed within the BirtViewer in a web-page (Seam/JSF 1.2).

I am looking for methods/configuration changes to improve the performance of the report-building.

I read somewhere (cannot remember where) about a logging configuration which could be switched off. I certainly do not need logging after completing a report and would like to switch it off if possible.
Is that the case? how?

Which other methods/configuration would you recommend?

Many thanks,
Tero
Re: how to improve performance [message #490967 is a reply to message #490688] Mon, 12 October 2009 15:40 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Tero,

In your Web.xml for the viewer what do you have your logging set to?

Jason

tero wrote:
> Hello,
>
> Birt 2.5.
> Long reports (many pages) with tables and charts deployed within the
> BirtViewer in a web-page (Seam/JSF 1.2).
>
> I am looking for methods/configuration changes to improve the
> performance of the report-building.
> I read somewhere (cannot remember where) about a logging configuration
> which could be switched off. I certainly do not need logging after
> completing a report and would like to switch it off if possible.
> Is that the case? how?
>
> Which other methods/configuration would you recommend?
>
> Many thanks,
> Tero
Re: how to improve performance [message #490981 is a reply to message #490967] Mon, 12 October 2009 16:06 Go to previous messageGo to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
Hello Jason,

my web.xml :
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
  <listener>
    <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
  </listener>
  <filter>
    <filter-name>Seam Filter</filter-name>
    <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
  </filter>
  <filter-mapping>
    <filter-name>Seam Filter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
  <servlet>
    <servlet-name>Seam Resource Servlet</servlet-name>
    <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>Seam Resource Servlet</servlet-name>
    <url-pattern>/seam/resource/*</url-pattern>
  </servlet-mapping>
  <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.xpresso</url-pattern>
  </servlet-mapping>
  <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.xhtml</param-value>
  </context-param>
  <context-param>
    <param-name>facelets.SKIP_COMMENTS</param-name>
    <param-value>true</param-value>
  </context-param>
  <resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/xPressoDS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
  </resource-ref>
  <session-config>
    <session-timeout>10</session-timeout>
  </session-config>
  <context-param>
    <param-name>org.richfaces.SKIN</param-name>
    <param-value>classic</param-value>
  </context-param>
  <filter-mapping>
    <filter-name>Seam Filter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
  <security-constraint>
    <display-name>Restrict raw XHTML Documents</display-name>
    <web-resource-collection>
      <web-resource-name>XHTML</web-resource-name>
      <url-pattern>*.xhtml</url-pattern>
    </web-resource-collection>
    <auth-constraint/>
  </security-constraint>
  <description>Deployment Descriptor for BIRT Viewer. Please check and specify the following settings.</description>
  <context-param>
    <description>Flag whether the report resources can only be accessed under the working folder. Defaults to false</description>
    <param-name>WORKING_FOLDER_ACCESS_ONLY</param-name>
    <param-value>false</param-value>
  </context-param>
  <context-param>
    <description>Temporary document files directory. Defaults to ${Context Root}/documents</description>
    <param-name>BIRT_VIEWER_DOCUMENT_FOLDER</param-name>
    <param-value>documents</param-value>
  </context-param>
  <context-param>
    <description>Flag whether to allow server-side printing. Possible values are ON and OFF. Defaults to ON</description>
    <param-name>BIRT_VIEWER_PRINT_SERVERSIDE</param-name>
    <param-value>ON</param-value>
  </context-param>
  <context-param>
    <description>Memory size in MB for creating a cube.</description>
    <param-name>BIRT_VIEWER_CUBE_MEMORY_SIZE</param-name>
    <param-value></param-value>
  </context-param>
  <context-param>
    <description>Directory where to store all the birt report script libraries (JARs).. Defaults to ${Context Root}/scriptlib</description>
    <param-name>BIRT_VIEWER_SCRIPTLIB_DIR</param-name>
    <param-value>scriptlib</param-value>
  </context-param>
  <context-param>
    <description>Temporary images/charts directory. Defaults to ${Context Root}/report/images</description>
    <param-name>BIRT_VIEWER_IMAGE_DIR</param-name>
    <param-value>report/images</param-value>
  </context-param>
  <context-param>
    <description>BIRT viewer extended configuration file</description>
    <param-name>BIRT_VIEWER_CONFIG_FILE</param-name>
    <param-value>WEB-INF/viewer.properties</param-value>
  </context-param>
  <context-param>
    <description>Preview report rows limit. An empty value means no limit.</description>
    <param-name>BIRT_VIEWER_MAX_ROWS</param-name>
    <param-value></param-value>
  </context-param>
  <context-param>
    <description>Max cube fetch rows levels limit for report preview (Only used when previewing a report design file using the preview pattern). Defaults to return all levels</description>
    <param-name>BIRT_VIEWER_MAX_CUBE_ROWLEVELS</param-name>
    <param-value></param-value>
  </context-param>
  <context-param>
    <description>Default locale setting</description>
    <param-name>BIRT_VIEWER_LOCALE</param-name>
    <param-value>en-US</param-value>
  </context-param>
  <context-param>
    <description>Max cube fetch columns levels limit for report preview (Only used when previewing a report design file using the preview pattern). Defaults to return all levels</description>
    <param-name>BIRT_VIEWER_MAX_CUBE_COLUMNLEVELS</param-name>
    <param-value></param-value>
  </context-param>
  <context-param>
    <description>Report resources(design files or document files) directory for preview. Defaults to ${Context Root}</description>
    <param-name>BIRT_VIEWER_WORKING_FOLDER</param-name>
    <param-value></param-value>
  </context-param>
  <context-param>
    <description>Report Engine logs directory. Default to ${Context Root}/logs</description>
    <param-name>BIRT_VIEWER_LOG_DIR</param-name>
    <param-value>logs</param-value>
  </context-param>
  <context-param>
    <description>Resource location directory (library files, images files or others). Defaults to ${Context Root}</description>
    <param-name>BIRT_RESOURCE_PATH</param-name>
    <param-value></param-value>
  </context-param>
  <context-param>
    <description>Flag whether to force browser-optimized HTML output. Defaults to true</description>
    <param-name>HTML_ENABLE_AGENTSTYLE_ENGINE</param-name>
    <param-value>true</param-value>
  </context-param>
  <context-param>
    <description>Report engine log level. (ALL|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST|OFF)</description>
    <param-name>BIRT_VIEWER_LOG_LEVEL</param-name>
    <param-value>WARNING</param-value>
  </context-param>
  <listener>
    <listener-class>org.eclipse.birt.report.listener.ViewerHttpSessionListener</listener-class>
  </listener>
  <listener>
    <listener-class>org.eclipse.birt.report.listener.ViewerServletContextListener</listener-class>
  </listener>
  <servlet>
    <servlet-name>EngineServlet</servlet-name>
    <servlet-class>org.eclipse.birt.report.servlet.BirtEngineServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet>
    <servlet-name>ViewerServlet</servlet-name>
    <servlet-class>org.eclipse.birt.report.servlet.ViewerServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>ViewerServlet</servlet-name>
    <url-pattern>/frameset</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>EngineServlet</servlet-name>
    <url-pattern>/document</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>EngineServlet</servlet-name>
    <url-pattern>/download</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>EngineServlet</servlet-name>
    <url-pattern>/parameter</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>EngineServlet</servlet-name>
    <url-pattern>/extract</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>ViewerServlet</servlet-name>
    <url-pattern>/run</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>EngineServlet</servlet-name>
    <url-pattern>/preview</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>EngineServlet</servlet-name>
    <url-pattern>/output</url-pattern>
  </servlet-mapping>
  <filter>
    <filter-name>ViewerFilter</filter-name>
    <filter-class>org.eclipse.birt.report.filter.ViewerFilter</filter-class>
  </filter>
  <filter-mapping>
    <filter-name>ViewerFilter</filter-name>
    <servlet-name>EngineServlet</servlet-name>
  </filter-mapping>
  <filter-mapping>
    <filter-name>ViewerFilter</filter-name>
    <servlet-name>ViewerServlet</servlet-name>
  </filter-mapping>
  <servlet>
    <servlet-name>JBoss BIRT Servlet</servlet-name>
    <servlet-class>org.jboss.tools.birt.servlet.JBossBirtServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>JBoss BIRT Servlet</servlet-name>
    <url-pattern>/embed</url-pattern>
  </servlet-mapping>
</web-app>
Re: how to improve performance [message #491194 is a reply to message #490981] Tue, 13 October 2009 15:23 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Tero,

Change this entry

<context-param>
<description>Report engine log level.
(ALL|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST|OFF)</description >
<param-name>BIRT_VIEWER_LOG_LEVEL</param-name>
<param-value>WARNING</param-value>
</context-param>

to

<context-param>
<description>Report engine log level.
(ALL|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST|OFF)</description >
<param-name>BIRT_VIEWER_LOG_LEVEL</param-name>
<param-value>OFF</param-value>
</context-param>


Jason

tero wrote:
> Hello Jason,
>
> my web.xml :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
> <listener>
> <listener-class>org.jboss.seam.servlet.SeamListener</listener-class >
> </listener>
> <filter>
> <filter-name>Seam Filter</filter-name>
> <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class >
> </filter>
> <filter-mapping>
> <filter-name>Seam Filter</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
> <servlet>
> <servlet-name>Seam Resource Servlet</servlet-name>
>
> <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class >
> </servlet>
> <servlet-mapping>
> <servlet-name>Seam Resource Servlet</servlet-name>
> <url-pattern>/seam/resource/*</url-pattern>
> </servlet-mapping>
> <servlet>
> <servlet-name>Faces Servlet</servlet-name>
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class >
> <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet-mapping>
> <servlet-name>Faces Servlet</servlet-name>
> <url-pattern>*.xpresso</url-pattern>
> </servlet-mapping>
> <context-param>
> <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
> <param-value>.xhtml</param-value>
> </context-param>
> <context-param>
> <param-name>facelets.SKIP_COMMENTS</param-name>
> <param-value>true</param-value>
> </context-param>
> <resource-ref>
> <description>DB Connection</description>
> <res-ref-name>jdbc/xPressoDS</res-ref-name>
> <res-type>javax.sql.DataSource</res-type>
> <res-auth>Container</res-auth>
> </resource-ref>
> <session-config>
> <session-timeout>10</session-timeout>
> </session-config>
> <context-param>
> <param-name>org.richfaces.SKIN</param-name>
> <param-value>classic</param-value>
> </context-param>
> <filter-mapping>
> <filter-name>Seam Filter</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
> <security-constraint>
> <display-name>Restrict raw XHTML Documents</display-name>
> <web-resource-collection>
> <web-resource-name>XHTML</web-resource-name>
> <url-pattern>*.xhtml</url-pattern>
> </web-resource-collection>
> <auth-constraint/>
> </security-constraint>
> <description>Deployment Descriptor for BIRT Viewer. Please check and
> specify the following settings.</description>
> <context-param>
> <description>Flag whether the report resources can only be accessed
> under the working folder. Defaults to false</description>
> <param-name>WORKING_FOLDER_ACCESS_ONLY</param-name>
> <param-value>false</param-value>
> </context-param>
> <context-param>
> <description>Temporary document files directory. Defaults to
> ${Context Root}/documents</description>
> <param-name>BIRT_VIEWER_DOCUMENT_FOLDER</param-name>
> <param-value>documents</param-value>
> </context-param>
> <context-param>
> <description>Flag whether to allow server-side printing. Possible
> values are ON and OFF. Defaults to ON</description>
> <param-name>BIRT_VIEWER_PRINT_SERVERSIDE</param-name>
> <param-value>ON</param-value>
> </context-param>
> <context-param>
> <description>Memory size in MB for creating a cube.</description>
> <param-name>BIRT_VIEWER_CUBE_MEMORY_SIZE</param-name>
> <param-value></param-value>
> </context-param>
> <context-param>
> <description>Directory where to store all the birt report script
> libraries (JARs).. Defaults to ${Context Root}/scriptlib</description>
> <param-name>BIRT_VIEWER_SCRIPTLIB_DIR</param-name>
> <param-value>scriptlib</param-value>
> </context-param>
> <context-param>
> <description>Temporary images/charts directory. Defaults to ${Context
> Root}/report/images</description>
> <param-name>BIRT_VIEWER_IMAGE_DIR</param-name>
> <param-value>report/images</param-value>
> </context-param>
> <context-param>
> <description>BIRT viewer extended configuration file</description>
> <param-name>BIRT_VIEWER_CONFIG_FILE</param-name>
> <param-value>WEB-INF/viewer.properties</param-value>
> </context-param>
> <context-param>
> <description>Preview report rows limit. An empty value means no
> limit.</description>
> <param-name>BIRT_VIEWER_MAX_ROWS</param-name>
> <param-value></param-value>
> </context-param>
> <context-param>
> <description>Max cube fetch rows levels limit for report preview
> (Only used when previewing a report design file using the preview
> pattern). Defaults to return all levels</description>
> <param-name>BIRT_VIEWER_MAX_CUBE_ROWLEVELS</param-name>
> <param-value></param-value>
> </context-param>
> <context-param>
> <description>Default locale setting</description>
> <param-name>BIRT_VIEWER_LOCALE</param-name>
> <param-value>en-US</param-value>
> </context-param>
> <context-param>
> <description>Max cube fetch columns levels limit for report preview
> (Only used when previewing a report design file using the preview
> pattern). Defaults to return all levels</description>
> <param-name>BIRT_VIEWER_MAX_CUBE_COLUMNLEVELS</param-name>
> <param-value></param-value>
> </context-param>
> <context-param>
> <description>Report resources(design files or document files)
> directory for preview. Defaults to ${Context Root}</description>
> <param-name>BIRT_VIEWER_WORKING_FOLDER</param-name>
> <param-value></param-value>
> </context-param>
> <context-param>
> <description>Report Engine logs directory. Default to ${Context
> Root}/logs</description>
> <param-name>BIRT_VIEWER_LOG_DIR</param-name>
> <param-value>logs</param-value>
> </context-param>
> <context-param>
> <description>Resource location directory (library files, images files
> or others). Defaults to ${Context Root}</description>
> <param-name>BIRT_RESOURCE_PATH</param-name>
> <param-value></param-value>
> </context-param>
> <context-param>
> <description>Flag whether to force browser-optimized HTML output.
> Defaults to true</description>
> <param-name>HTML_ENABLE_AGENTSTYLE_ENGINE</param-name>
> <param-value>true</param-value>
> </context-param>
> <context-param>
> <description>Report engine log level.
> (ALL|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST|OFF)</description >
> <param-name>BIRT_VIEWER_LOG_LEVEL</param-name>
> <param-value>WARNING</param-value>
> </context-param>
> <listener>
>
> <listener-class>org.eclipse.birt.report.listener.ViewerHttpSessionListener </listener-class>
>
> </listener>
> <listener>
>
> <listener-class> org.eclipse.birt.report.listener.ViewerServletContextListene r </listener-class>
>
> </listener>
> <servlet>
> <servlet-name>EngineServlet</servlet-name>
>
> <servlet-class>org.eclipse.birt.report.servlet.BirtEngineServlet </servlet-class>
>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet>
> <servlet-name>ViewerServlet</servlet-name>
>
> <servlet-class>org.eclipse.birt.report.servlet.ViewerServlet </servlet-class>
>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet-mapping>
> <servlet-name>ViewerServlet</servlet-name>
> <url-pattern>/frameset</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>EngineServlet</servlet-name>
> <url-pattern>/document</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>EngineServlet</servlet-name>
> <url-pattern>/download</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>EngineServlet</servlet-name>
> <url-pattern>/parameter</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>EngineServlet</servlet-name>
> <url-pattern>/extract</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>ViewerServlet</servlet-name>
> <url-pattern>/run</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>EngineServlet</servlet-name>
> <url-pattern>/preview</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>EngineServlet</servlet-name>
> <url-pattern>/output</url-pattern>
> </servlet-mapping>
> <filter>
> <filter-name>ViewerFilter</filter-name>
> <filter-class>org.eclipse.birt.report.filter.ViewerFilter</filter-class >
> </filter>
> <filter-mapping>
> <filter-name>ViewerFilter</filter-name>
> <servlet-name>EngineServlet</servlet-name>
> </filter-mapping>
> <filter-mapping>
> <filter-name>ViewerFilter</filter-name>
> <servlet-name>ViewerServlet</servlet-name>
> </filter-mapping>
> <servlet>
> <servlet-name>JBoss BIRT Servlet</servlet-name>
>
> <servlet-class>org.jboss.tools.birt.servlet.JBossBirtServlet </servlet-class>
>
> </servlet>
> <servlet-mapping>
> <servlet-name>JBoss BIRT Servlet</servlet-name>
> <url-pattern>/embed</url-pattern>
> </servlet-mapping>
> </web-app>
>
Previous Topic:Problems with ReportEngine after Upgrading Birt from 2.3 to 2.5.1
Next Topic:problem with BIRT charts
Goto Forum:
  


Current Time: Fri Apr 26 09:01:24 GMT 2024

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

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

Back to the top