+ Start a Discussion

How much memory is allocated for a instance object

List<Account> acc = New List<Account>;


In this case salesforce allocated how much memory to <new list>

How to get the memory allocated for the new list;




Please go through the link below :




Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 


Andy BoettcherAndy Boettcher

All of your code is subject to an overall "heap limit".  Lists, Maps, VF VIew States - doesn't matter what you write, as long as it executes under that limit.  


Heap size APEX "regular":  3MB

Heap size APEX Batch and Future:  6MB