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.
    • This reply was modified 4 years, 10 months ago by  Forcetalks.
  • 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.
    • This reply was modified 4 years, 10 months ago by  Forcetalks.
  • 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.

    • This reply was modified 4 years, 10 months ago by  Forcetalks.
  • Pooja

    Member
    February 10, 2020 at 2:48 pm

    Heap Size in Salesforce Apex is-

    Synchronous transaction = 6MB
    Asynchronous transaction = 12 MB

    • This reply was modified 4 years, 10 months ago by  Forcetalks.

Log In to reply.

Popular Salesforce Blogs