The following template will cause an out of memory exception.
#foreach($i in [0..67000000])
#if($i == 0)
I'm not sure why this happens as it's only a loop that only produces output on the first iteration.
The same loop works fine if I reduce the number of iterations by 1 order of magnitude.
The engine fails hard and no output is produced.