laptop and a wrench

Bug

The memory is not completely released by ArcGIS Runtime SDK for Java when adding and removing graphics from a GraphicsOverlay.

Last Published: November 13, 2020 ArcGIS Runtime SDK
Bug ID Number BUG-000134864
SubmittedOctober 23, 2020
Last ModifiedJune 5, 2024
Applies toArcGIS Runtime SDK
Version found100.4
Operating SystemWindows OS
Operating System Version2008 R2 64 Bit
StatusNon-Reproducible

Additional Information

Memory management in Java apps is not as simple as suggested in this scenario. If the user allocates a load of resources in a Java app then releases them, the user can’t expect an immediate drop in the memory footprint of the app running on their machine. This is not how memory is controlled in a managed environment like a Java Virtual Machine (JVM). The memory is released when the JVM decides it is time to perform a garbage collection. We have no control over this, the JVM does this in the background when it decides the time is right and cannot predict when it is going to happen. Forcing a garbage collection in code (which is exceedingly bad practice) does not even free up memory.

Steps to Reproduce

Bug ID: BUG-000134864

Software:

  • ArcGIS Runtime SDK

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options