# Julia killed on Mac Pro

**URL:** <https://discourse.julialang.org/t/julia-killed-on-mac-pro/107748>\
**Category:** General Usage\
**Created:** [December 17, 2023, 9:48pm UTC](https://discourse.julialang.org/t/julia-killed-on-mac-pro/107748 "2023-12-17T21:48:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [December 17, 2023, 9:48pm UTC](https://discourse.julialang.org/t/julia-killed-on-mac-pro/107748/1 "2023-12-17T21:48:57Z")

</div>

Mac Pro - Tower: Apple M2 Ultra  
julia is run to execute a series of simulations. After a few, the shell kills the process with nothing more than `zsh: killed`.

```julia
julia> versioninfo()
Julia Version 1.9.4
Commit 8e5136fa297 (2023-11-14 08:46 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 24 × Apple M2 Ultra
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, apple-m1)
  Threads: 1 on 16 virtual cores

```

Also, the `zsh` limits:

```julia
pkrysl@samadira TransdecPool.jl % limit
cputime unlimited
filesize unlimited
datasize unlimited
stacksize 7MB
coredumpsize 0kB
addressspace unlimited
memorylocked unlimited
maxproc 10666
descriptors 256
pkrysl@samadira TransdecPool.jl %

```

The same script runs on Windows to completion. Memory limit is ~26 GB. (The Mac has 192 GB.)

What is the problem? Any ideas?

---

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [December 17, 2023, 11:56pm UTC](https://discourse.julialang.org/t/julia-killed-on-mac-pro/107748/2 "2023-12-17T23:56:10Z")

</div>

this generally is an out of memory error it might be worth trying on 1.8 or 1.10 (release candidate) since there are some differences in memory accounting.

---

<div class="post-metadata">

**Author:** ![Benny](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Benny](https://discourse.julialang.org/u/Benny)\
**Post date:** [December 17, 2023, 11:59pm UTC](https://discourse.julialang.org/t/julia-killed-on-mac-pro/107748/3 "2023-12-17T23:59:34Z")

</div>

> [@Oscar\_Smith](#):
>
> this generally is an out of memory error

If so, why wouldn’t an `OutOfMemoryError` be thrown at some point?

---

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [December 18, 2023, 4:13am UTC](https://discourse.julialang.org/t/julia-killed-on-mac-pro/107748/4 "2023-12-18T04:13:39Z")

</div>

outofmemory errors are a little tricky because if you don’t throw them at the exact right time, the OS can kill the process before the error can be thrown. Making matters worse, different OSes do things differently so there’s a bunch of fiddly bits that need to go right in order for the errors to be good.

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [December 18, 2023, 6:02am UTC](https://discourse.julialang.org/t/julia-killed-on-mac-pro/107748/5 "2023-12-18T06:02:24Z")

</div>

However, I’d like to point out that the code runs w/o trouble on a 128GB Windows machine, but not on the 192GB Mac. The high water mark is somewhere around 40GB on the Windows system.

Is it possible that the GC is leaky on the Mac?

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [December 18, 2023, 6:36am UTC](https://discourse.julialang.org/t/julia-killed-on-mac-pro/107748/6 "2023-12-18T06:36:49Z")

</div>

> [@PetrKryslUCSD](#):
>
> Is it possible that the GC is leaky on the Mac?

Did you try Julia 1.10-RC2?
