Skip to main content
Gaurav Kumar (Accenture) 님이 #Apex에 질문했습니다
HI All,

I am trying to write a trigger on object1 i.e after insert/ after update to create record on object2. But I am getting error (Apex heap size too large: 39897844) on saving record on object1.

Thanks in advance. 
답변 3개
  1. 2025년 10월 7일 오전 10:08

    Try using these methods to find how much heap is consuming in your code. limtis.getHeapSize(); 

    limtis.getLimitHeapSize();