You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Ali Shaheen <al...@coeus-solutions.de> on 2010/08/05 11:21:09 UTC

FOP taking too much memory

Hello all, 

We are using FOP as part of a debt-collection software. Lots of letters need to be created "in bulk" as well as "on the fly" to be sent immediately. We use FOP to generate PDF and call FOP from our command line from our RoR application. A lot of times, FOP/Java takes too much memory (e..g, 2GB) with only 6 letters being created. The letters are usually just 1 page long. 

What are we doing wrong? Should we use servlets rather than command line? 

Any help in this regard would be much appreciated.

Regards
Ali
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: FOP taking too much memory

Posted by Chris Bowditch <bo...@hotmail.com>.
Ali Shaheen wrote:
> Hello all, 

Hi,

> 
> We are using FOP as part of a debt-collection software. Lots of letters need to be created "in bulk" as well as "on the fly" to be sent immediately. We use FOP to generate PDF and call FOP from our command line from our RoR application. A lot of times, FOP/Java takes too much memory (e..g, 2GB) with only 6 letters being created. The letters are usually just 1 page long. 

Perhaps the memory usage is caused by referencing large fonts, e.g. 
Arial Unicode or very large images, e.g. 11in 8in @ 1200dpi

> 
> What are we doing wrong? Should we use servlets rather than command line? 

It would be better to integrate with FOP using Java API, because you 
don't have the overhead of starting a separate JVM for every document 
generated. However, I don't expect this to be the cause of excessive 
memory use.

> 
> Any help in this regard would be much appreciated.

Thanks,

Chris

> 
> Regards
> Ali
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: FOP taking too much memory

Posted by Dominik Stadler <do...@dynatrace.com>.
Hi, 

2GB is a lot, seems you are doing something special that consumes a lot of memory. We are running 60 pages PDFs with graphics/tables in under 500MB.

There are some recommendations on the homepage about how to reduce memory usage, but I would recommend using a memory analysis tool first to see where this huge amount of memory is actually used/kept.

Thanks... Dominik.

-----Original Message-----
From: Ali Shaheen [mailto:ali.naqi@coeus-solutions.de] 
Sent: Donnerstag, 05. August 2010 11:21
To: fop-users@xmlgraphics.apache.org
Subject: FOP taking too much memory

Hello all, 

We are using FOP as part of a debt-collection software. Lots of letters need to be created "in bulk" as well as "on the fly" to be sent immediately. We use FOP to generate PDF and call FOP from our command line from our RoR application. A lot of times, FOP/Java takes too much memory (e..g, 2GB) with only 6 letters being created. The letters are usually just 1 page long. 

What are we doing wrong? Should we use servlets rather than command line? 

Any help in this regard would be much appreciated.

Regards
Ali
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org