This is not a “I’m getting a heap size error, help!” post - I know about this issue, but I’m trying to get an deeper understanding of the causes.
I have a page that can end up showing a lot of rows in a table after a button is pressed and a model gets queried. There aren’t any body fields returned in the model, it’s about 30 fields that are dates, strings, etc.
I’ve reached a point with the page where I’m getting Apex heap issues. I’ve been able to handle these in the past with a few tricks - but I’m all out of tricks.
I’m a bit confused because, if I take the SOQL query as per the model in the debug log, plug it in to the developer console and check the heap size there, the heap size is about 1MB. What happens on the server that causes an increase in size by such an amount? I’m not questioning the Skuid’s technical capability - far from it, I’m sure there are reasons for it. But I am curious as to why this happens. I’ve had similar things happen in the past where literally including one extra record will cause an extra 2 MB on the heap size, though this was on an old release…
Whilst I’m asking - what’s the best way to debug such problems? I need to sit with the Salesforce debug docs for a while and read up on it (especially after Winter 16, whose changes don’t seem intuitive at all…), but I’m struggling to get useful information about how Skuid is using up limits. In my example above, the button click causes a VF remote call; having debugging on the user captures a log, but no matter what settings I use, I never seem to get the limits summary report. How do people use the debug logs with Skuid?
Question
Debugging heap size - what's happening on the server?
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.