itplr-kosit / validator-configuration-xrechnung

Configuration for validating documents against the German XRechnung standard using the KoSIT validation tool
https://xeinkauf.de/xrechnung/
Apache License 2.0
59 stars 16 forks source link

[Visualization] High memory consumption of visualization for large invoices #73

Closed JannickWeisshaupt closed 1 year ago

JannickWeisshaupt commented 2 years ago

The visualization files contain a single page-sequence, which contains all content. This however can lead to very high >2GB memory consumption for large documents with, e.g. many line trade items. Apache FOP documentation explicitly recommends to use multiple page sequence, see https://xmlgraphics.apache.org/fop/0.95/running.html#memory

For example an invoice with 2000 simple line trade items will lead to a memory consumption of ~500MB.

bdewein commented 2 years ago

This issue is handled in GitLab https://projekte.kosit.org/xrechnung/xrechnung-visualization/-/issues/93

kosek commented 1 year ago

Is there somewhere available example document with that many lines that could be used for testing?

JannickWeisshaupt commented 1 year ago

You can use this one: validUblManyItems.zip

bdewein commented 1 year ago

@JannickWeisshaupt thanks for contributing! We assume that you would be ok if we include this file in our visu codebase. If not, please let us know :)