thanks for the suggestions, unfortunately I am still not meeting my client's accepted response time using JsReport solution. Near 100MB file just for utility tool and 30sec for generating a report is a 'no no' from my clients.
Posts made by ggmathewtor
-
RE: Report render is very slow and timesout consistently (after 30sec) with version 2.2.0
-
RE: Report render is very slow and timesout consistently (after 30sec) with version 2.2.0
Above test was using standalone jsreport.exe. I get timeout error on server when the application try to render PDF using .net SDK 'RenderAsync()'. I believe it is creating
new Process ()
on every RenderAsync request, I could be wrong. If it createnew Process()
on every request, how does--keepAlive
helps? Also, how to set--keepAlive
in the .net SDK? Also, is there any way to increase the default time-out 30sec? -
RE: Report render is very slow and timesout consistently (after 30sec) with version 2.2.0
Thank you for the response.
My above test was using a single line html which takes ~25sec. Below is the HTML;<html><body><h2>hello</h2></html></body>
-
Report render is very slow and timesout consistently (after 30sec) with version 2.2.0
After upgrading to 2.2.0, report rendering takes longer than previous version. With a simple one line html file render takes ~25sec using below.
jsreport.exe render --template.engine=none --template.recipe=chrome-pdf --template.content=hello.html --out=out.pdf
Here is the output I capture;
C:\inetput\sitename\jsreport\temp\dotnet\binary-default-2.2.0.0>test.bat started at [2018-10-06 08:17:58.203] starting rendering process.. rendering has finished successfully and saved in: C:\inetput\sitename\jsreport\temp\dotnet\binary-default-2.2.0.0\out.pdf started at [2018-10-06 08:18:22.818]
With real data, I have timeout consistently as the error shows below. Any suggestion to resolve this issue? The file size of jsreport.exe has been increased drastically from the previous version (141MB vs 20MB), not sure what has been added to make such increase.
jsreport.Local.JsReportBinaryException: Error rendering report: A critical error occurred while trying to execute the render command: Timeout Error: pdf generation not completed after 30000ms (1). caused by error (1) -> meta = {"remoteStack":"Error: Timeout Error: pdf generation not completed after 30000ms at Timeout.setTimeout [as _onTimeout] (jsreportRuntime.js:133651:19)
-
RE: Error: The specified executable is not a valid application for this OS platform
Thank you, and code looking good. I noticed that the code is writing exception details to console, but I missed last time when this happened. I will try to reproduce and see if I can capture the exception details from console log.
After resolving the above issue, now I see a timeout error on my server. My laptop is doing good with the same data, I ruled out data is not a problem. Will you be able to help? Or should I open new topic in this forum?
jsreport.Local.JsReportBinaryException: Error rendering report: A critical error occurred while trying to execute the render command: Timeout Error: pdf generation not completed after 30000ms (1). caused by error (1) -> meta = {"remoteStack":"Error: Timeout Error: pdf generation not completed after 30000ms at Timeout.setTimeout [as _onTimeout] (jsreportRuntime.js:133651:19)
-
RE: Error: The specified executable is not a valid application for this OS platform
@jan_blaha thanks for the quick reply and for this great library.
The binary downloaded from above URL works, "-h" displays the help details without any issue.
I noticed that the downloaded EXE file size is 141MB and the EXE unzipped by "jsreport.Local.Internal.BinaryProcess" is ~50MB. Not sure where did it go wrong, but it happened on two machines.
The issue is resolved by deleting the entire folder "\jsreport" (\jsreport\temp\dotnet\binary-default-2.2.0.0 ) from my project's root folder.
-
RE: Error: The specified executable is not a valid application for this OS platform
Additional findings;
a) tried 'jsreport -h' from command prompt on v1. The help details displayed with no issuesb) tried 'jsreport -h' from command prompt on v2, Windows shows a blue screen that says "This app cannot run on your PC. To find a version for your PC, check with the publisher"
-
Error: The specified executable is not a valid application for this OS platform
Since upgraded to 2.2.0, below error is thrown. Prior to update, it was working without any issues.
Project = Asp.net core
Platform = Win10 64bitSystem.ComponentModel.Win32Exception (0x80004005): The specified executable is not a valid application for this OS platform. at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at jsreport.Local.Internal.BinaryProcess.<InnerExecute>d__18.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at jsreport.Local.Internal.BinaryProcess.<ExecuteExe>d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at jsreport.Local.Internal.LocalUtilityReportingService.<RenderAsync>d__10.MoveNext()