Activity Forums Salesforce® Discussions What is heap size in Salesforce Apex?

  • Shweta

    Member
    February 10, 2020 at 1:13 pm

    Salesforce provides a heap size limit of

    • 6MB for synchronous transaction &
    • 12 MB for the asynchronous transactions.
  • Ratnesh

    Member
    February 10, 2020 at 2:19 pm

    Hey,

    Salesforce provides a heap size limit of

    • Salesforce enforces an Apex Heap Size Limit of 6MB for synchronous transactions.
    • Salesforce enforces an Apex Heap Size Limit of 12 MB for the asynchronous transactions.
  • Anjali

    Member
    February 10, 2020 at 2:27 pm

    The heap size is the amount of memory allocated to objects that are being defined in your Apex code. And Apex code puts in a limit to the total allowed size of the apex heap size. This governor limit is calculated at runtime and depends on how the governor is invoked.

  • Pooja

    Member
    February 10, 2020 at 2:48 pm

    Heap Size in Salesforce Apex is-

    Synchronous transaction = 6MB
    Asynchronous transaction = 12 MB

Log In to reply.

Popular Salesforce Blogs