function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Abhik SahaAbhik Saha 

Check heap usage of a batch from outside

Salesforce provides Limits.getHeapSize() to check the heap memory usage within a batch. But I want a way (that can be a complex way, no issue) to track this from outside of the batch. You can consider this as an admin process which is trying to monitor the running batch over a time period. We get job Id etc for the running batches. can we use that? I saw the REST API call for Limits is not useful for this scenario, as it returns a general/overall metrics.​