Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating easy report takes too long (~10-12s) #34

Open
svoby1 opened this issue Dec 11, 2023 · 0 comments
Open

Generating easy report takes too long (~10-12s) #34

svoby1 opened this issue Dec 11, 2023 · 0 comments

Comments

@svoby1
Copy link

svoby1 commented Dec 11, 2023

Hello,

I have created simple report in JasperStudio (Only one H1 text header and two parameters). Via Laravel 10 rest api I am starting $jasper->process... with above mentioned two text parameters, which I am passing through the API. Route is only behind the basic laravel api middleware. When I run the route for generating report via postman, response time is about 10-12s. When I run the same command (which I got with the output method) in terminal, report is done by 4-5s. In both cases, I have noticed, that java app is opened with some delay. ~3-4s in first scenario, ~2s in second scenario. Also I have tried to use just plain exec() with command from output, but the result is the same.

Anyway, this is also not good performance for such a easy report. Therefore, I would like to ask, why the response time is so long? Thank you in advanced for the help.

I am using Mac OSX 14 (Sonoma), PHP 8 an Laravel 10, java v1.8.

Here is command:
'/Users/svoby/www/localhost/test/vendor/geekcom/phpjasper-laravel/src/../bin/jasperstarter/bin/jasperstarter -v process "/Users/svoby/www/localhost/test/resources/reports/contacts/contact_detail.jrxml" -o "/Users/svoby/www/localhost/test/storage/reports/contact_detail" -f pdf -P firstname="John" surname="Doe"';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant