drew
Posts: 1
Joined: Thu Mar 23, 2023 12:01 am

Using highcharts-export-server to generate multiple charts

Hello,

I'm currently using highcharts-export-server to generate 20+ charts and convert them to png per request. However, the request crashes my production backend. I was wondering if there are any configurations I can set to improve performance or can I do a bulk request?
jakub.s
Posts: 1167
Joined: Fri Dec 16, 2022 11:45 am

Re: Using highcharts-export-server to generate multiple charts

Hi,

Welcome to our forum & thanks for the question!

I've contacted our Export Server development team. I'll let you know as soon as I get a reply.

Best regards,
Jakub
Jakub
Highcharts Developer
jakub.s
Posts: 1167
Joined: Fri Dec 16, 2022 11:45 am

Re: Using highcharts-export-server to generate multiple charts

Hi,

1. After how many requests does it crash?
2. Do you use our export server or do you have an export server setup on your own server?
3. Could you please send me the error that shows up?
4. Could you also send the payload of requests?

If you want to get multiple exports, you could try to use --batch, you can read more about this here: https://github.com/highcharts/node-expo ... nce-notice

When it comes to performance, you could try out these flags:
--maxWorkers
--initialWorkers
--workLimit
--queueSize
--timeoutThreshold

These options determine the number of headless browser's instances and their behavior. You should experiment with different values (it's difficult to say which ones will work best) and choose ones that give you the best results.

Also, if you'd like to you could try out the new (unofficial) version of node-server based on puppeteer. Here's a branch: https://github.com/highcharts/node-expo ... /puppeteer

Let me know if that helps.

Best regards,
Jakub
Jakub
Highcharts Developer

Return to “Highcharts Usage”