Jump to content
JasperReports Library 7.0 is now available ×

Why TomCat runs out of memory on HTMLExport?


2005 IR Help

Recommended Posts

By: Yuriy Stepanyuk - ystep

Why TomCat runs out of memory on HTMLExport?

2003-03-26 09:21

JRHtmlExporter works fine for short reports

but on large reports (300pages)TomCat raises exeption:

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)

 

At the moment of raising this exception I have a lot of physical memory available according to Win2k Task Manager.

 

JRHtmlExporter.java creates buffer and fills up this buffer with html.

I replaced appending to buffer with writing to file output stream in append mode and problem disappeared.

Now export takes comparable to PDF export time.

All other exporters except PDF have the same problem.

I hate changing the Jasper Reports source code.

 

What will be the other solution to this problem?

 

 

 

 

 

 

By: cosjav - cosjav

RE: Why TomCat runs out of memory on HTMLExpo

2004-08-16 21:56

someone got a solution to this? since I will be generating reports with HEAPS of pages too, and under the same environement...

 

 

 

 

By: Teodor Danciu - teodord

RE: Why TomCat runs out of memory on HTMLExpo

2004-08-17 01:14

 

Hi,

 

Let your JVM use more memory by setting the

-Xmx command line switch.

Apparently you are running with the default value

which is 64Mb.

In Tomcat this is done by setting

the CATALINA_OPTS environment variable.

 

I hope this helps.

Teodor

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...