It's all about the answers!

Ask a question

Document generation with dgaas is slow


Gor Balazs (111) | asked Sep 06 '18, 9:41 a.m.

Hi,

I started to integrate Rational Publishing Engine to generate documents from my web application.

I use IBM libraries (installed shared libraries and jars from sampledocgen) to create document specification, jobs and send it to dgaas web application. <o:p> </o:p>

It works well, the documents are generated and my application can download these from dgaas. <o:p> </o:p>

 

The problem: <o:p> </o:p>

When I try to use XHTML format on an element in my template the generation process is very slow if I generate with dgaas. <o:p> </o:p>

When I use sampledocgen (and send dsx file to dgaas) the generation process is very slow. <o:p> </o:p>

 

If I use Document Studio the generation process is fast. <o:p> </o:p>

 

My environment: <o:p> </o:p>

dgaas.war is deployed to Apache Tomcat 7.0.67 server <o:p> </o:p>

tomcat use IBM jre which is installed with RPE <o:p> </o:p>

Rational Publishing engine 6.0.6 <o:p> </o:p>

 

Log from Document Studio: <o:p> </o:p>

CRRPE0282I Document Studio has started. <o:p> </o:p>

... <o:p> </o:p>

CRRPE1020I The document will be published locally. <o:p> </o:p>

CRRPE1064I Starting run... <o:p> </o:p>

CRRPE1064I Processing document template 1 of 1. <o:p> </o:p>

... <o:p> </o:p>

CRRPE3571I Finished reading input XML. 189 elements processed. <o:p> </o:p>

CRRPE1064I 310 publishing commands are processed. 0 publishing commands remain to be processed. <o:p> </o:p>

CRRPE3097I The document template is processed. If there are no more templates to process, output files are being written. <o:p> </o:p>

CRRPE1064I Total number of input elements processed: 72 <o:p> </o:p>

CRRPE3596I Total data request time: 1.174 seconds <o:p> </o:p>

CRRPE1064I Finalizing document generation. Writing output files... <o:p> </o:p>

CRRPE3469I Concurrent save is limited to 5. <o:p> </o:p>

CRRPE3555W PDF warning: Fonts are not embedded, despite either 'EmbedSystemFonts' or 'SaveSubsetFonts' is set to 'true' due to 'EmbedTrueTypeFonts' option is set to 'false'. <o:p> </o:p>

CRRPE1064I Document generation finished in 5 seconds. <o:p> </o:p>

CRRPE1022I The process was completed in 6.108 seconds. <o:p> </o:p>

 

The process was completed in 6.108 seconds. <o:p> </o:p>

 

Log from dgaas web application: <o:p> </o:p>

CRRPE3126I Setting a warning on pool PS Old Gen for memory usage more than 1228 MB (90% of the maximum allowed heap size). If the heap size grows over this limit a warning message will be logged. <o:p> </o:p>

Starting run... <o:p> </o:p>

... <o:p> </o:p>

CRRPE3587D The extension registry cannot be accessed. This is expected if running outside an Eclipse environment.
... <o:p> </o:p>

Processing document template 1 of 1.
... <o:p> </o:p>

Data retrieved in 1018 ms <o:p> </o:p>

...
CRRPE3571I Finished reading input XML. 189 elements processed.
310 publishing commands are processed. 0 publishing commands remain to be processed.
CRRPE3097I The document template is processed. If there are no more templates to process, output files are being written.
Total number of input elements processed: 72
CRRPE3596I Total data request time: 1.001 seconds
Total data request time: 1.001 seconds
Finalizing document generation. Writing output files...
CRRPE3469I Concurrent save is limited to 5.
CRRPE3555W PDF warning: Fonts are not embedded, despite either 'EmbedSystemFonts' or 'SaveSubsetFonts' is set to 'true' due to 'EmbedTrueTypeFonts' option is set to 'false'.
Error loading post processing plugins. This is expected if running outside an Eclipse environment.
Document generation finished in 203 seconds. <o:p> </o:p>

DGaaS license checked-in successfully. <o:p> </o:p>

... <o:p> </o:p>

 

The process was completed in 203 seconds. <o:p> </o:p>

I can see from the log that 203 seconds for '310 publishing commands are processed.’ if I use dgaas <o:p> </o:p>

and 4 seconds for '310 publishing commands are processed.’  if I use Document Studio. <o:p> </o:p>

 

If try to add more data to the generation then: <o:p> </o:p>

Document Studio generates in 8 seconds. <o:p> </o:p>

dgaas generates in 1325 seconds. <o:p> </o:p>

 

Thanks for your help. <o:p> </o:p>

<o:p>   </o:p>


Comments
Kumaraswamy Gowda commented Sep 06 '18, 10:19 p.m.

Hi,
May be it is the load on the server making it slower. Could you provide these details please?
- Max heap set on the tomcat (looks like 1.5 GB on Studio...)
- Is it IBM or Oracle/Sun JRE? (IBM JRE from RPE Studio)
- Version of JRE
- Is it 32-bit or 64-bit JRE?

Could you increase heap size and try again? Monitor the memory consumed through  Windows task manager.

Thanks,
Kumar

One answer



permanent link
Gor Balazs (111) | answered Sep 07 '18, 2:55 a.m.

Hi,

I rechecked tomcat settings and the JRE_HOME was set to Oracle JRE. I changed it to IBM JRE and now the generation is fast in dgaas.

Thanks,
Balazs

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.