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
@anilbathula@@anilbathula@ 

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;

 

Navatar_DbSupNavatar_DbSup

Hi,


Please go through the link below :

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/langCon_apex_collections_lists.htm

 

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

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_gov_limits.htm

 

-Andy