79745809

Date: 2025-08-25 13:20:44
Score: 2
Natty:
Report link

Payload splitBy "\n" loads all the content in memory and throws heap memory issue.

It's solved by passing the stream to Java class which process the stream adn writes it to /tmp dir without blowing up the heap.

Inspiration took from Mule File repeatable streaming strategy.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: veejay