+ Start a Discussion
user2 mkiuser2 mki 

The heap memory when using Ajax

When using Ajax, there is a possibility that you conflict in restriction with the heap size, but when how doing do, can a heap memory be opened?
sandeep@Salesforcesandeep@Salesforce
If you want to avoid hitting heap size limit then you may follow below guidelines 
1. Use of Transient variables.
2. you may use Limits.getHeapSize() & Limits.getLimitHeapSize() to check runtime if you are close to limit or not
3. Avoid multile loops and try to keep your optimized. 

Thanks
Sandeep Singhal
http://www.codespokes.com/