You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Johnson <jo...@soho.club.tw> on 2005/05/11 11:27:06 UTC

how to relese the memory from FOP

Hi!

I use cocoon to generate the pdf page,and the memory usage increasing until the java outofmemory error rise.
how to release the memory.

Best Regards

Johnson

Re: how to relese the memory from FOP

Posted by Leszek Gawron <lg...@mobilebox.pl>.
Johnson wrote:
> Hi!
>  
> I use cocoon to generate the pdf page,and the memory usage increasing 
> until the java outofmemory error rise.
> how to release the memory.
as long as generation lasts - you cannot. You just have to raise the
available memory limit or ... simplyfy your document :)

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

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


Re: how to relese the memory from FOP

Posted by Geert Josten <Ge...@daidalos.nl>.
Hi Johnson,

If you are generating a large PDF and that fails because of out of memory, increase the max heap
size as suggested below. Alternatively, look at http://wiki.apache.org/cocoon/CocoonPerformance for
additional instructions.

If memory increases at generating multiple PDFs, you might want to stop caching them. Putting the
responsible match in a noncaching pipeline will do that trick...

Cheers,
Geert

Alessandro Vincelli wrote:

> I use tomcat and I resolve this problem passing this parameter on tomcat
> startup
> 
>  JAVA_OPTS="-Xms100m -Xmx420m"
> 
>  Alessandro
> 
> Johnson ha scritto:
> 
>>Hi!
>> 
>>I use cocoon to generate the pdf page,and the memory usage increasing
>>until the java outofmemory error rise.
>>how to release the memory.
>> 
>>Best Regards
>> 
>>Johnson
> 
> 

-- 
=====================================
NB: het Daidalos kantoor is sinds 22 april
jl. gevestigd op een nieuw adres:

Daidalos BV
Hoekeindsehof 1 - 4
2665 JZ Bleiswijk
tel: +31 (0)10 850 12 00
fax: +31 (0)10 850 11 99

Bovenstaand adres is tevens het postadres.
======================
Geert.Josten@Daidalos.nl
IT-consultant at Daidalos BV

http://www.daidalos.nl/

GPG: 1024D/12DEBB50

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


Re: how to relese the memory from FOP

Posted by Alessandro Vincelli <av...@alessandro.vincelli.name>.
I use tomcat and I resolve this problem passing this parameter on tomcat
startup

 JAVA_OPTS="-Xms100m -Xmx420m"

 Alessandro

Johnson ha scritto:
> Hi!
>  
> I use cocoon to generate the pdf page,and the memory usage increasing
> until the java outofmemory error rise.
> how to release the memory.
>  
> Best Regards
>  
> Johnson

-- 
-------------------------------
Alessandro Vincelli
E-mail: av@alessandro.vincelli.name
tel: +39 339 8695546


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