Killed VS OutOfMemoryError()

raman_kumar
Fri, 06 Jun 2025 21:47:02 +0000
General Usage

Why we have two different error messages? What is the difference between Killed and OutOfMemoryError() messages?

julia> A = fill(2, 5000000000)
ERROR: OutOfMemoryError()

slightly lower:
julia> A = fill(2, 4000000000)
Killed

I saw above example in this post How to track total memory usage of Julia process over time - #15 by Palli. What is the purpose of having two different messages for memory shortage?

3 posts - 3 participants