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 Pierre-Adrien Coustillas <pc...@perinfo.com> on 2002/05/22 11:50:38 UTC

servlet FOP multi-thread

Hi, (I am french, and I bad speak english)
  I use servlet FOP whit TOMCAT (linux) and I have a problem when execute a
lot of creating PDF (more 3). The PDF create are not good.

  But when execute 1 or 2 PDF, there are not problem.

  If I use servlet in simple-thread it's ok, but it's less speed.

  what's problem in multi-thread ?

Pierre.


center a graphic in a table cell

Posted by Rodolphe VAGNER <ro...@eurodoc-sofilog.com>.
Hi,

I try to center a graphic in a table cell without success.
The display-align property don't seem to work on table-cell, block, or
external-graphic.

Does anyone know a mean to center a graphic in a table cell ?

Thanks


----- Original Message -----
From: "Oleg Tkachenko" <ol...@multiconn.com>
To: <fo...@xml.apache.org>
Sent: Wednesday, May 22, 2002 1:05 PM
Subject: Re: servlet FOP multi-thread


> Pierre-Adrien Coustillas wrote:
>     When the document is ok size = 63 ko, when the document is not ok size
<
> > 63 ko (always different) and it's impossible open pdf.
>
> Do you flush/close output stream explicitly? Could you show us output
related
> snipped of your code?
>
> --
> Oleg Tkachenko
> Multiconn International, Israel
>


RE: servlet FOP multi-thread

Posted by Pierre-Adrien Coustillas <pc...@perinfo.com>.
I use tomcat 4.0
Fop is 0.20.3
java is 1.3.1
My OS is linux (2 intel 1ghz)

I execute this script :

i=2
while [ $i -ne 0 ]
do
  wget
"http://localhost:8080/fop/fop?xml=$HOME/elixirTOfop/test/rien.xml&xsl=$HOME
/elixirTOfop/test/rien.xsl" -O multi/servletfop$i.pdf &
   i=$(expr $i - 1)
done


//When i=2, the result is :
Connexion vers localhost:8080...Connecté!
200 OK
Longueur: 61,003 [application/pdf]

    0K .......... .......... .......... .......... .......... 83%   0:00
51.2M
   50K .........                                             100%

16:32:58 (58.18 MB/s) - `multi/servletfop2.pdf' sauvegardé [61003/61003]

200 OK
Longueur: 61,003 [application/pdf]

    0K .......... .......... .......... .......... .......... 83%   0:00
51.2M
   50K .........                                             100%

16:32:58 (58.18 MB/s) - `multi/servletfop1.pdf' sauvegardé [61003/61003]

The size of pdf is 61003. This size is good, and i cab open PDFs


//But i=3 the result is
200 OK
Longueur: 50,204 [application/pdf]

    0K ...200 OK
Longueur: 50,204 [application/pdf]

    0K .......... .......... .......... .......... ......... 100%   0:00
50.2M

16:34:45 (47.88 MB/s) - `multi/servletfop3.pdf' sauvegardé [50204/50204]

....... .200 OK
Longueur: 50,204 [application/pdf]
........
    0K .... .......... ............ ...... ............ ............. ...
.....100%   0:00 10.0M

..... ...16:34:45 (9.58 MB/s) - `multi/servletfop1.pdf' sauvegardé
[50204/50204]

...... 100%   0:00 50.2M

16:34:45 (23.94 MB/s) - `multi/servletfop2.pdf' sauvegardé [50204/50204]

//The size is different and I can't open PDFs (the bad size is not always
50204)

Where is the problem ?

The size of xml is 50.0Ko (may be is too big)
The size of xsl is 14.4Ko

thanks

Pierre.



-----Message d'origine-----
De : John Austin [mailto:john@integerservices.no-ip.com]
Envoyé : lundi 27 mai 2002 02:59
À : fop-user@xml.apache.org
Objet : Re: servlet FOP multi-thread


On Wednesday 22 May 2002 12:36, you wrote:
> >And how do you know the document size? Do you save it locally?
>
> Yes I save it locally (I use wget -O)
>
> >Well, you can try to save pdfs on the server to make sure they are
>
> generated
>
> >ok. What's your servlet engine?
>
> servlet engine : I use tomcat

Pierre, please try and give him a little more information in your
messages. Tell him which versions of FOP, Tomcat, Java, which OS and
the like. Try to isolate the smallest possible example that produces
the problem and post that.

Thansk and good luck


Re: servlet FOP multi-thread

Posted by John Austin <jo...@integerservices.no-ip.com>.
On Wednesday 22 May 2002 12:36, you wrote:
> >And how do you know the document size? Do you save it locally?
>
> Yes I save it locally (I use wget -O)
>
> >Well, you can try to save pdfs on the server to make sure they are
>
> generated
>
> >ok. What's your servlet engine?
>
> servlet engine : I use tomcat

Pierre, please try and give him a little more information in your 
messages. Tell him which versions of FOP, Tomcat, Java, which OS and 
the like. Try to isolate the smallest possible example that produces 
the problem and post that.

Thansk and good luck

RE: servlet FOP multi-thread

Posted by Pierre-Adrien Coustillas <pc...@perinfo.com>.
>And how do you know the document size? Do you save it locally?
Yes I save it locally (I use wget -O)

>Well, you can try to save pdfs on the server to make sure they are
generated
>ok. What's your servlet engine?

servlet engine : I use tomcat


-----Message d'origine-----
De : Oleg Tkachenko [mailto:olegt@multiconn.com]
Envoye : mercredi 22 mai 2002 18:09
A : fop-user@xml.apache.org
Objet : Re: servlet FOP multi-thread


Pierre-Adrien Coustillas wrote:
>   I use docs\examples\embedding\FopServlet.java  in directory of FOP.
And how do you know the document size? Do you save it locally?
Well, you can try to save pdfs on the server to make sure they are generated
ok. What's your servlet engine?

--
Oleg Tkachenko
Multiconn International, Israel


Re: servlet FOP multi-thread

Posted by Oleg Tkachenko <ol...@multiconn.com>.
Pierre-Adrien Coustillas wrote:
>   I use docs\examples\embedding\FopServlet.java  in directory of FOP.
And how do you know the document size? Do you save it locally?
Well, you can try to save pdfs on the server to make sure they are generated 
ok. What's your servlet engine?

-- 
Oleg Tkachenko
Multiconn International, Israel


RE: servlet FOP multi-thread

Posted by Pierre-Adrien Coustillas <pc...@perinfo.com>.
  I use docs\examples\embedding\FopServlet.java  in directory of FOP.

Pierre

-----Message d'origine-----
De : Oleg Tkachenko [mailto:olegt@multiconn.com]
Envoye : mercredi 22 mai 2002 13:06
A : fop-user@xml.apache.org
Objet : Re: servlet FOP multi-thread


Pierre-Adrien Coustillas wrote:
    When the document is ok size = 63 ko, when the document is not ok size <
> 63 ko (always different) and it's impossible open pdf.

Do you flush/close output stream explicitly? Could you show us output
related
snipped of your code?

--
Oleg Tkachenko
Multiconn International, Israel


Re: servlet FOP multi-thread

Posted by Oleg Tkachenko <ol...@multiconn.com>.
Pierre-Adrien Coustillas wrote:
    When the document is ok size = 63 ko, when the document is not ok size <
> 63 ko (always different) and it's impossible open pdf.

Do you flush/close output stream explicitly? Could you show us output related 
snipped of your code?

-- 
Oleg Tkachenko
Multiconn International, Israel


RE: servlet FOP multi-thread

Posted by Pierre-Adrien Coustillas <pc...@perinfo.com>.
  When the document is ok size = 63 ko, when the document is not ok size <
63 ko (always different) and it's impossible open pdf.

-----Message d'origine-----
De : Oleg Tkachenko [mailto:olegt@multiconn.com]
Envoye : mercredi 22 mai 2002 12:40
A : fop-user@xml.apache.org
Objet : Re: servlet FOP multi-thread


Pierre-Adrien Coustillas wrote:

>   I use servlet FOP whit TOMCAT (linux) and I have a problem when execute
a
> lot of creating PDF (more 3). The PDF create are not good.
What does it mean exactly "not good"?

--
Oleg Tkachenko
Multiconn International, Israel


Re: servlet FOP multi-thread

Posted by Oleg Tkachenko <ol...@multiconn.com>.
Pierre-Adrien Coustillas wrote:

>   I use servlet FOP whit TOMCAT (linux) and I have a problem when execute a
> lot of creating PDF (more 3). The PDF create are not good.
What does it mean exactly "not good"?

-- 
Oleg Tkachenko
Multiconn International, Israel