Select to view content in your preferred language

Memory consumption more than double from Esri 3.x to Esri 4.29

676
2
10-01-2024 10:02 PM
JonathanTiu
Occasional Contributor

hi,

We were doing some profiling of our application as we moved from Esri 3.x to Esri 4.29. We basically had an application with 6 maps using just a GraphicsLayer on each map and drawing various polygons representing different regions.  We just load our application and render the 6 maps like this:

JonathanTiu_0-1727845006831.png

 

With Esri 3.x,  the heap snapshot is around ~ 220MB.

JonathanTiu_4-1727845362523.png

 

 

Loading the same application with Esri 4.29, the heap snapshot is more than double at a whopping 520MB+ !

JonathanTiu_3-1727845331472.png

 

 

Obviously the first biggest difference are all these ArrayBuffers and JSArrayBufferData objects - many of them seem related to the Esri 4 MapView and probably WebGL i presume but this incredible that the memory usage would double?  

I am just wondering if there is anything we can do with the way we use Esri 4 to reduce our memory usage?

Double the memory usage seems quite excessive.

 

This is causing a potentially ship killer issue for some of our colleagues who are trying to use our application in a mobile environment where memory usage is important. we are at a loss to explain why we have more than doubled our memory by going to Esri 4.29.  

2 Replies
AddisonShaw
Occasional Contributor

I've also been tracking memory in our application and see the huge JSArrayBufferData objects. These seem to be mostly owned by the MapView in something called mosaicData. 

0 Kudos
ericsamson_tract
Frequent Contributor

Seeing this in our experience builder move. Going from 800 mb on average used to 2 gbs +. It's hard to explain that experience builder is the future to team members with this bad of performance.

 

Did either of you figure out a way to reduce the JSArrayBufferData sizes?