Activity Forums Salesforce® Discussions What is heap size, and what is its limit for asynchronous and synchronous calls?

  • What is heap size, and what is its limit for asynchronous and synchronous calls?

    Posted by Pooja on July 26, 2020 at 4:57 pm

    What is heap size, and what is its limit for asynchronous and synchronous calls? When the heap size limit is exceeded, how can you resolve that issue in Salesforce?

    Ratnesh replied 3 years, 9 months ago 2 Members · 1 Reply
  • 1 Reply
  • Ratnesh

    Member
    July 27, 2020 at 5:48 am

    Heap size is the size of the temporary storage of your data while executing your code in synchronous mode. All of your global variables get stored on the heap. For asynchronous mode, the heap size limit is 12 MB, and for synchronous mode, the heap size limit is 6 MB.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos