Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Let's Use 51 MB of Heap Without LimitException
string[] s = new string[0];
for(integer i = 0; i < 10100; i++) {
s.add('*'.repeat(i));
}
system.debug(Limits.getHeapSize());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.