# Running multithreaded program disconnects my ssh connection

**URL:** <https://discourse.julialang.org/t/running-multithreaded-program-disconnects-my-ssh-connection/135825>\
**Category:** General Usage\
**Tags:** question, vscode\
**Created:** [February 25, 2026, 5:10am UTC](https://discourse.julialang.org/t/running-multithreaded-program-disconnects-my-ssh-connection/135825 "2026-02-25T05:10:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WalterMadelim](https://avatars.discourse-cdn.com/v4/letter/w/3e96dc/32.png) [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Post date:** [February 25, 2026, 5:10am UTC](https://discourse.julialang.org/t/running-multithreaded-program-disconnects-my-ssh-connection/135825/1 "2026-02-25T05:10:31Z")

</div>

Hi, friends

My coding style is to typing on a Windows laptop while the real work is done by a Linux machine (Ubuntu server, the standard OS). To build a network connection, I use the ssh function provided by VSCode (the icon at the left-lower corner, so that I can open a remote folder).

I find that when I start to run multithreaded julia programs, even if the cpu resource (of the linux server) is not fully occupied, I will almost surely undergo a disconnection of ssh—that I lose control to my linux machine. Typically the underlying tasks are not killed, i.e., if I attempt to re-connect after 10 minutes, I would see the expected status still there.

But the disconnection is quite annoying. I wonder if anyone can share some experience on dealing with this issue?

(I find it ain’t help e.g. by setting the `nice` level `nice -n 19 julia`, or setting the ssh configure file.)

---

<div class="post-metadata">

**Author:** ![xgdgsc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xgdgsc/32/608_2.png) [@xgdgsc](https://discourse.julialang.org/u/xgdgsc)\
**Post date:** [February 25, 2026, 5:19am UTC](https://discourse.julialang.org/t/running-multithreaded-program-disconnects-my-ssh-connection/135825/2 "2026-02-25T05:19:06Z")

</div>

Do you print too much log in console that the network bandwidth is exhausted?

---

<div class="post-metadata">

**Author:** ![fps](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fps/32/216317_2.png) [@fps](https://discourse.julialang.org/u/fps)\
**Post date:** [March 11, 2026, 7:24am UTC](https://discourse.julialang.org/t/running-multithreaded-program-disconnects-my-ssh-connection/135825/3 "2026-03-11T07:24:54Z")

</div>

Take a look in the kernel log (dmesg) and see if you can find a reason for the shell to be killed. In my case it happened occasionally that I had an OOM triggered.
