You need to sign in to do that
Don't have an account?
@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;
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.
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