Need a special offer?Find out if your project fits.
+

High CPU usage while running multiple instances of Flexmonster on same web page

Answered
Ketan asked on May 14, 2019

We are creating multiple instances of Flexmonster with different CSV data sheets to show different graphs on our dashboard. Please find attached image for reference. Everything works fine.
But it consumes high CPU results in a significant increase in graph rendering time. Does Flexmonster support initializing multiple FM instances on the same page? Do you have any better implementation approach for the same?

1 answer

Public
Dmytro Zvazhii Dmytro Zvazhii Flexmonster May 14, 2019

Hello Ketan,
Thank you for posting your question here.
 
We want to confirm that Flexmonster does support initializing multiple instances on the same page. At the same time, each Flexmonster object is an independent instance which knows nothing of the other instances. In such circumstances, they can compete for browser resources with each other.
 
Also, please note that the initialization of the Flexmonster object is the most resource-consuming process. That is the time when a lot of operations are made.
 
Due to the current browser architecture, we recommend initializing multiple Flexmonster instances successively. The best approach for such cases is to use reportcomplete event. It allows making sure that the previous instance is successfully launched and it is time to run the next one. Please refer to our docs for more information about reportcomplete event: https://www.flexmonster.com/api/reportcomplete/.
 
Let us know in case of any other cases.
Regards,
Dmytro

Please login or Register to Submit Answer