Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

lots of rogue processes when running on linux #358

Closed
callumJPritchard opened this issue Oct 22, 2017 · 4 comments
Closed

lots of rogue processes when running on linux #358

callumJPritchard opened this issue Oct 22, 2017 · 4 comments

Comments

@callumJPritchard
Copy link

Using the latest version of Ark wallet on Ubuntu 17.04 results in a large number of processes left running in the background. Below are the results of a quick investigation when starting from a cold boot.

  • opening Ark wallet initially results in 6 "ledger-worker" processes being started
  • closing Ark client leaves these 6 running as well as the ark client process itself
  • opening the wallet again results in another Ark client process as well as another single ledger-worker process

this happens whether closing the window or clicking the quit button within the program. I need to kill all these processes every time i quit as they use a lot of memory when left unchecked.

@alexbarnsley
Copy link
Member

I believe this has been addressed in PR #357

@callumJPritchard
Copy link
Author

I could be totally wrong here, but i'm not sure that addresses the whole issue.
that fix ends the ledger processes on exit, but why am i seeing 6 of them started in the first instance? also the main Ark client process is not ending either

@krau612
Copy link

krau612 commented Oct 22, 2017

@zomzilla Only one ledger-worker process is ever created. I'm going to assume you're using htop to look at the processes. By default, htop shows threads as well as processes. The things that show up in white are processes and the things that show up in green are threads. You can toggle the threads by pressing shift+h. If you do that, you will see one instance of ledger-worker.

Also, my pull request #357 will exit the ledger-worker process when the application is closed. The main process was staying open because ledger-worker was still running. So with #357, all processes close when the application is closed and nothing is left running.

@callumJPritchard
Copy link
Author

Looks like I was totally wrong! the ledger process keeping the main open does make sense.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants