Re: Performance issue in generating PDFs for Custom Fonts in UNIX env.

2006-03-25 Thread Jeremias Maerki
Did you give the JVM for the entreprise environment enough memory to
work with? Such a slowdown is likely produced by the garbage collector
of Java or by the operating system constantly swapping memory in and out.

On 24.03.2006 22:47:27 Ganji, Jithendra wrote:
 Hi Chris,
 
 We are working SunOS5.8 operating system and JVM 1.4.X. We are not
 having any SVG in document.
 
 Thanks for your suggestion on to use latest version of FOP. But we are
 already in production, so we can not upgrade imm. Wev have to work on
 current Fop version i.e 0.20.5
 
 One strange observation when I generated PDF( of 27 pages) as standalone
 application on the same SunOS5.8 env by using below mentioned command it
 is taking just 1500 ms. Where as generating thru enterprise application
 in windows it took 500 ms(approx),* where as in UNIX(SunOS5.8)***
 43587ms (approx).*
 
 java -cp
 fop.jar:xml-apis.jar:avalon-framework-cvs-20020806.jar:xercesImpl.jar:xa
 lan.jar:batik.jar org.apache.fop.apps.Fop -c foconf/fopconfig.xml -fo
 test.fo -pdf test.pdf
 
 Any pointers from this will be appreciated. 
 
 Thanks,
 Ganji
 
 -Original Message-
 From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
 Sent: Friday, March 24, 2006 4:42 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: Performance issue in generating PDFs for Custom Fonts in
 UNIX env.
 
 Ganji, Jithendra wrote:
 
  Hi,
  
  We are using FOP 0.20.5 for PDF conversion. We registered Courier
 New 
  custom font by following the steps given at 
  _http://xmlgraphics.apache.org/fop/0.20.5/fonts.html#custom_
  
  We generated appropriate font metrics file(cour.xml) for cour.ttf
 file 
  using TTFReader on different operating systems(Windows and UNIX) based
 
  on their usage.
  
  The performance of generating PDF in Windows env is excellent, but in 
  UNIX environment it is very bad. For 27 pages document in windows it
 is 
  taking*** 500 ms(approx),* where as in UNIX( Solaris)*** 43587ms 
  (approx).*
  
  *This is a major hit for us in using FOP. We need a solution ASAP.*
 
 This is strange indeed, what JVM do you use on Linux? Does the Linux 
 environment have an X windows server? Does your document have any SVG?
 
 FOP 0.20.5 is no longer actively maintained so you're not likely to get 
 much of a response I think. My recommendation would be to try FOP 
 0.91beta and see if the problem persists.



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Performance issue in generating PDFs for Custom Fonts in UNIX env.

2006-03-24 Thread Chris Bowditch

Ganji, Jithendra wrote:


Hi,

We are using FOP 0.20.5 for PDF conversion. We registered “Courier New” 
custom font by following the steps given at 
_http://xmlgraphics.apache.org/fop/0.20.5/fonts.html#custom_


We generated appropriate font metrics file(cour.xml) for cour.ttf  file 
using TTFReader on different operating systems(Windows and UNIX) based 
on their usage.


The performance of generating PDF in Windows env is excellent, but in 
UNIX environment it is very bad. For 27 pages document in windows it is 
taking*** 500 ms(approx),* where as in UNIX( Solaris)*** 43587ms 
(approx).*


*This is a major hit for us in using FOP. We need a solution ASAP.*


This is strange indeed, what JVM do you use on Linux? Does the Linux 
environment have an X windows server? Does your document have any SVG?


FOP 0.20.5 is no longer actively maintained so you're not likely to get 
much of a response I think. My recommendation would be to try FOP 
0.91beta and see if the problem persists.


Chris




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Performance issue in generating PDFs for Custom Fonts in UNIX env.

2006-03-24 Thread Ganji, Jithendra
Hi Chris,

We are working SunOS5.8 operating system and JVM 1.4.X. We are not
having any SVG in document.

Thanks for your suggestion on to use latest version of FOP. But we are
already in production, so we can not upgrade imm. Wev have to work on
current Fop version i.e 0.20.5

One strange observation when I generated PDF( of 27 pages) as standalone
application on the same SunOS5.8 env by using below mentioned command it
is taking just 1500 ms. Where as generating thru enterprise application
in windows it took 500 ms(approx),* where as in UNIX(SunOS5.8)***
43587ms (approx).*

java -cp
fop.jar:xml-apis.jar:avalon-framework-cvs-20020806.jar:xercesImpl.jar:xa
lan.jar:batik.jar org.apache.fop.apps.Fop -c foconf/fopconfig.xml -fo
test.fo -pdf test.pdf

Any pointers from this will be appreciated. 

Thanks,
Ganji

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 24, 2006 4:42 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Performance issue in generating PDFs for Custom Fonts in
UNIX env.

Ganji, Jithendra wrote:

 Hi,
 
 We are using FOP 0.20.5 for PDF conversion. We registered Courier
New 
 custom font by following the steps given at 
 _http://xmlgraphics.apache.org/fop/0.20.5/fonts.html#custom_
 
 We generated appropriate font metrics file(cour.xml) for cour.ttf
file 
 using TTFReader on different operating systems(Windows and UNIX) based

 on their usage.
 
 The performance of generating PDF in Windows env is excellent, but in 
 UNIX environment it is very bad. For 27 pages document in windows it
is 
 taking*** 500 ms(approx),* where as in UNIX( Solaris)*** 43587ms 
 (approx).*
 
 *This is a major hit for us in using FOP. We need a solution ASAP.*

This is strange indeed, what JVM do you use on Linux? Does the Linux 
environment have an X windows server? Does your document have any SVG?

FOP 0.20.5 is no longer actively maintained so you're not likely to get 
much of a response I think. My recommendation would be to try FOP 
0.91beta and see if the problem persists.

Chris




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Performance issue in generating PDFs for Custom Fonts in UNIX env.

2006-03-23 Thread Ganji, Jithendra
Title: Performance issue in generating PDFs for Custom Fonts in UNIX env.






Hi,

We are using FOP 0.20.5 for PDF conversion. We registered Courier New custom font by following the steps given at http://xmlgraphics.apache.org/fop/0.20.5/fonts.html#custom

We generated appropriate font metrics file(cour.xml) for cour.ttf file using TTFReader on different operating systems(Windows and UNIX) based on their usage.

The performance of generating PDF in Windows env is excellent, but in UNIX environment it is very bad. For 27 pages document in windows it is taking 500 ms(approx), where as in UNIX( Solaris) 43587ms (approx).

This is a major hit for us in using FOP. We need a solution ASAP.

Have you ever faced such problem with FOP? Your suggestions will be greatly appreciated.

Here is the log taken from UNIX environment.

---

17:30:29,492 INFO FOP - Using org.apache.xerces.parsers.SAXParser as SAX2 Parser

17:30:29,493 INFO Driver - building formatting object tree

17:30:29,493 INFO FOP - setting up fonts

17:30:29,528 INFO Driver - [1]

17:30:29,533 INFO FOP - Using org.apache.xerces.parsers.SAXParser as SAX2 Parser

17:30:30,714 DEBUG Driver - Last page-sequence produced 1 pages.

17:30:30,717 INFO Driver - [2]

17:30:32,522 DEBUG Driver - Last page-sequence produced 1 pages.

17:30:32,525 INFO Driver - [3]

17:30:34,424 DEBUG Driver - Last page-sequence produced 1 pages.

17:30:34,427 INFO Driver - [4]

17:30:36,418 DEBUG Driver - Last page-sequence produced 1 pages.

17:30:36,422 INFO Driver - [5]

17:30:38,060 DEBUG Driver - Last page-sequence produced 1 pages.

17:30:38,062 INFO Driver - [6]

17:30:39,384 DEBUG Driver - Last page-sequence produced 1 pages.

17:30:39,387 INFO Driver - [7]

17:30:41,190 DEBUG Driver - Last page-sequence produced 1 pages.

17:30:41,193 INFO Driver - [8]

17:30:42,963 DEBUG Driver - Last page-sequence produced 1 pages.

17:30:42,967 INFO Driver - [9]

17:30:44,895 DEBUG Driver - Last page-sequence produced 1 pages.

17:30:44,898 INFO Driver - [10]

17:30:46,886 DEBUG Driver - Last page-sequence produced 1 pages.

17:30:46,889 INFO Driver - [11]

17:30:48,769 DEBUG Driver - Last page-sequence produced 1 pages.

17:30:48,772 INFO Driver - [12]

17:30:50,647 DEBUG Driver - Last page-sequence produced 1 pages.

17:30:50,650 INFO Driver - [13]

17:30:52,481 DEBUG Driver - Last page-sequence produced 1 pages.

17:30:52,484 INFO Driver - [14]

17:30:54,052 DEBUG Driver - Last page-sequence produced 1 pages.

17:30:54,055 INFO Driver - [15]

17:30:56,036 DEBUG Driver - Last page-sequence produced 1 pages.

17:30:56,039 INFO Driver - [16]

17:30:57,995 DEBUG Driver - Last page-sequence produced 1 pages.

17:30:57,998 INFO Driver - [17]

17:30:59,381 DEBUG Driver - Last page-sequence produced 1 pages.

17:30:59,384 INFO Driver - [18]

17:31:00,792 DEBUG Driver - Last page-sequence produced 1 pages.

17:31:00,795 INFO Driver - [19]

17:31:02,672 DEBUG Driver - Last page-sequence produced 1 pages.

17:31:02,675 INFO Driver - [20]

17:31:04,609 DEBUG Driver - Last page-sequence produced 1 pages.

17:31:04,612 INFO Driver - [21]

17:31:06,393 DEBUG Driver - Last page-sequence produced 1 pages.

17:31:06,396 INFO Driver - [22]

17:31:07,987 DEBUG Driver - Last page-sequence produced 1 pages.

17:31:07,990 INFO Driver - [23]

17:31:09,494 DEBUG Driver - Last page-sequence produced 1 pages.

17:31:09,496 INFO Driver - [24]

17:31:10,336 DEBUG Driver - Last page-sequence produced 1 pages.

17:31:10,339 INFO Driver - [25]

17:31:10,858 DEBUG Driver - Last page-sequence produced 1 pages.

17:31:10,861 INFO Driver - [26]

17:31:11,966 DEBUG Driver - Last page-sequence produced 1 pages.

17:31:11,968 INFO Driver - [27]

17:31:13,005 DEBUG Driver - Last page-sequence produced 1 pages.

17:31:13,006 INFO Driver - Parsing of document complete, stopping renderer

17:31:13,079 DEBUG Driver - Initial heap size: 27296Kb

17:31:13,080 DEBUG Driver - Current heap size: 36756Kb

17:31:13,080 DEBUG Driver - Total memory used: 9459Kb

17:31:13,080 DEBUG Driver - Memory use is indicative; no GC was performed

17:31:13,080 DEBUG Driver - These figures should not be used comparatively

17:31:13,080 DEBUG Driver - Total time used: 43587ms

17:31:13,080 DEBUG Driver - Pages rendered: 27

17:31:13,080 DEBUG Driver - Avg render time: 1614ms/page



Thanks in advance,

Ganji