You are not logged in.

#1 2022-12-06 13:49:00

EinfxchFinn
Member
Registered: 2022-12-06
Posts: 9

tty closes when running gradle

Every time I run the Gradle wrapper script of a project, Arch compiles it for 2.5 minutes and then randomly logs me off the tty while Gradle is still running. This happens on every machine I have. Does anyone know what the problem could be and how to fix it?

Thanks in advance

Offline

#2 2022-12-06 15:05:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,421

Re: tty closes when running gradle

If you run a couple of subshells (ie. login and then run "bash; echo stage1; sleep 5" and in the new shell "bash; echo stage2; sleep 5" etc.) and run gradle deep inside a subshell, does it exit itself though the parenting shells?

Offline

#3 2022-12-06 16:42:00

EinfxchFinn
Member
Registered: 2022-12-06
Posts: 9

Re: tty closes when running gradle

It still logs me out even after I run the command you provided, but I noticed that it prints a out of memory message 1 frame before it logs me out.

So I ran the task again and looked at the memory consumtion and noticed that gradle is using more and more memory until it runs out of memory and swap (my system has 4 GB of memory and 2 GB of swap).
After it closes the session, the memory consumption drops back down to 100 MB.

On my debian machine everything works fine with 4GB of ram . Very strange

Offline

#4 2022-12-06 17:37:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,421

Offline

Board footer

Powered by FluxBB