Print an error message and exit if memprof fails to allocate memory, instead of crashing:
memprof: System out of memory, try lowering memory_limit
Ideally we would also dump the memory profile, if in dump_on_limit mode, but since this situation is avoidable by lowering the memory_limit, this is good enough for now.
Print an error message and exit if memprof fails to allocate memory, instead of crashing:
Ideally we would also dump the memory profile, if in dump_on_limit mode, but since this situation is avoidable by lowering the memory_limit, this is good enough for now.