HorizenOfficial / zen_archived

TLS integration and more!
https://zensystem.io
Other
128 stars 44 forks source link

Memory leak after challenge completion #136

Open tsujp opened 6 years ago

tsujp commented 6 years ago

Describe the issue

I'm noticing on my secure nodes that whenever a challenge is sent, of course the resident memory usage goes up; but that after the challenge is done (minutes, hours, days) the memory usage stays at around 3 GB instead of dropping back to about 650 MB.

Can you reliably reproduce the issue?

Yes, 100% of the time.

If so, please list the steps to reproduce below:

  1. Launch zend
  2. run htop and view memory usage before challenge
  3. Run a challenge
  4. run htop and view the memory usage after challenge
  5. run htop any arbitrary time after (1 minute, 1 hour, 1 day) and memory usage will still be high.

Expected behaviour

It should go back down to 650 M instead of keeping 2.35 GB (3 G - 650 MB) of memory unavailable for use.

The version of Zen you were using:

2001150 and 2001151

Machine specs: