Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
You must read this article only if you customized the Qlik Sense rendering configuration section of your Qlik NPrinting Engine configuration files (engine.config).
For default upgrade instructions, see Upgrading Qlik NPrinting.
Qlik NPrinting
Qlik Sense Enterprise on Windows
Modified rendering configuration files (engine.config)
In NPrinting April 2020 and earlier versions, by default, engine.config settings are stored in C:\Program Files\NPrintingServer\NPrinting\Engine\engine.config.
For example, if you have uncommented any of the following parameters, you must migrate to the new configuration:
<!-- minimum Sense (QRS) version from which to use printing-live.html mashup page -->
<!-- <add key="webrenderer-live-mashup-sense-version" value="23.1.0" /> -->
<!-- minimum number of browser workers -->
<!-- <add key="webrenderer-min-worker-number" value="0" /> -->
<!-- maximum number of browser workers -->
<!-- <add key="webrenderer-max-worker-number" value="cpu%200" /> -->
<!-- rendering timeout for the overall rendering request, inclusive queueing -->
<!-- <add key="webrenderer-request-overall-timeout-msec" value="300000" /> -->
<!-- rendering timeout for the whole render method at the renderer -->
<!-- <add key="webrenderer-remote-request-timeout-msec" value="60000" /> -->
<!-- rendering timeout for a JavaScript render method at the renderer -->
<!-- <add key="webrenderer-remote-request-js-timeout-msec" value="30000" /> -->
<!-- max image dimensions rendered supported by CEF, the final image is upscaled to produce the correct dimensions -->
<!--
<add key="webrenderer-max-image-width-px" value="3000" />
<add key="webrenderer-max-image-height-px" value="3000" />
-->
<!-- number of binary equal snapshots in a row used to consider a snapshot valid -->
<!-- <add key="webrenderer-snapshot-equality-threshold" value="3" /> -->
<!-- maximum number of snapshots to take before stopping comparing, the last one is deemed as valid -->
<!-- <add key="webrenderer-snapshot-max-count" value="5" /> -->
<!-- how often to ping the Sense server to keep the mashup session alive -->
<!-- <add key="webrenderer-sense-ping-interval-msec" value="300000" /> -->
<!-- maximum number of pending requests -->
<!-- <add key="webrenderer-max-pending-requests" value="1000" /> -->
<!-- web renderer executable path -->
<!-- <add key="webrenderer-path" value="lib\rwr\x64\reporting_web_renderer.exe" /> -->
<!-- web renderer arguments -->
<!-- <add key="webrenderer-skip-process-start" value="false" /> -->
<!-- webrenderer-grpc-port-scan. True if the grpc channel port need to be set at runtime. False otherwise -->
<!-- When set to True, parameters webrenderer-args grpc-addr and grpc-channel-addr must be set as runtime args -->
<!-- When set to False, parameters webrenderer-args grpc-addr and grpc-channel-addr must be set as static args -->
<!-- Usefull when Qlik and NPrinting are running in the same machine -->
<!--<add key="webrenderer-grpc-port-scan" value="false" />-->
<!-- web renderer arguments. -port arg can be express with {0} (resolved at runtime) or by explicit value -mb=500-->
<!-- <add key="webrenderer-args" value="-l=info -grpc-addr=127.0.0.1:51051 -e=1" /> -->
<!-- web renderer options in the form: "opt1=val1;opt2=val2" . -port arg can be express with {0} (resolved at runtime) or by explicit value-->
<!-- <add key="webrenderer-options" value="grpc-channel-addr=localhost:51051" /> -->
<!-- web renderer address of web socket host -->
<!-- <add key="webrenderer-wshost" value="localhost" /> -->
<!-- <add key="webrenderer-wsport" value="2727" /> -->
<!-- mashup page query string parameters -->
<!-- <add key="webrenderer-mashup-qs" value="logging=net,ws" /> -->
<!-- web renderer rate limit default 100 requests per second-->
<!--<add key="webrenderer-max-capacity" value="100" />-->
<!--<add key="webrenderer-refill-interval-msec" value="1000" />-->
<!--<add key="webrenderer-use-old-mashup" value="true" />-->
If you have not edited any of these parameters, you can skip this section above.
The management of reporting web renderer parameters has been simplified.
The modification consists of two steps:
This guide covers three topics:
Before upgrading
C:\Program Files\NPrintingServer\NPrinting\Engine\engine.config
Migrating the parameters in the NPrinting Engine.config file
Do the following:
C:\Program Files\NPrintingServer\NPrinting\Scheduler\renderer.config
Reformatting examples:
engine.config (previous) |
renderer.config (current) |
<add key="webrenderer-mashup-qs" value="logging=net,ws&wssecure=1" /> |
<add key="webrenderer-mashup-qs" value="logging=net,ws;wssecure=1" /> |
<add key="webrenderer-args" value="-l=info -grpc-addr=127.0.0.1:51051 -e=1" /> |
<add key="webrenderer-args" value="-l=info;-grpc-addr=127.0.0.1:51051;-e=1" /> |
Simplify the parameters after the migration (optional)
If you edited any of the parameters webrenderer-request-overall-timeout-msec, webrenderer-remote-request-timeout-msec or webrenderer-remote-request-js-timeout-msec, you can simplify the setting of the timeout by using a single parameter that will set overall timeouts.
Do the following:
Configuration examples:
engine.config (April 2020 & earlier versions of NPrinting) |
renderer.config (June 2020 & newer versions of NPrinting) |
<add key="webrenderer-request-overall-timeout-msec" value="300000" /> <add key="webrenderer-remote-request-timeout-msec" value="60000" /> <add key="webrenderer-remote-request-js-timeout-msec" value="30000" /> |
<add key="webrenderer-timeout-sec" value="60" /> |
<add key="webrenderer-request-overall-timeout-msec" value="300000" /> <add key="webrenderer-remote-request-timeout-msec" value="60000" /> <add key="webrenderer-remote-request-js-timeout-msec" value="90000" /> |
<add key="webrenderer-timeout-sec" value="90" /> |
Editing parameters in the renderer.config file
The parameters available in
C:\Program Files\NPrintingServer\NPrinting\Scheduler\renderer.config
lets you change two basic operation settings.
1. Set the web renderer logging level to debug
If you want to set the logging level to debug only for the reporting web renderer:
This value is automatically set when the Qlik NPrinting Engine is set to debug log level in accordance with Logging.
2. Increase the rendering timeouts
The rendering timeout is set by default to 30 seconds. This can be increased if there are timeout errors due to charts that render slowly.
Timeouts errors appear in the Qlik NPrinting Engine logs as CefRenderingException with the error code
To verify that the issue is generated by a chart that is slow to render, check the chart load time in the Qlik Sense app.
To increase the rendering timeout: