DISCUSSION

Memory Leak in ModBors Monitoring Service

17 people are following

Just curious if you are aware that you have a memory leak in this service.  It starts with 36MB of memory used, once it has been running a day it has already consumed nearly 2GB of memory.  This left unchecked will consume most peoples available memory in a few days.

Alright, here we go again…
I've created another version to try and cleanup that memory from Open- and Libre Hardware. You can find it here.

Also if you just want to test this quickly, instead of replacing the service, you can also:

  1. close MoBro
  2. stop the ‘ModBros Monitoring Service’ under services
  3. right click the newly downloaded .exe and ‘Run as administrator’
  4. a black console window should appear - don't close it
  5. check ‘http://localhost:42001/version’ in a browser, it should return version 1.0.14
  6. start MoBro again (decline if there's a pop-up asking to restart the service)

As long as you don't close the console window, the data will be pulled from this service

almost a straight climb within 10 min for me.

b722fe41-6ad1-4e57-8f95-7e928ed15716.png

@Seraksab This one is working for me.  Uptime for 2 hours and hovering around 75mb for the main process

d86f5c3a-be08-48c7-9771-01fa75c3aa8b.ee851716.png

Sadly not for me. ~2 hrs
 

5fb42404-7051-4bba-a5e2-4dc0446123b0.ee851716.png

After another hour it looks like the memory usage is refreshed. 

 

EDIT: Actually, the service stopped randomly and was prompted to restart.

295461d1-14b8-41a6-9cf7-cb72b68b2263.png

Jarlsburg

After another hour it looks like the memory usage is refreshed. 

 

EDIT: Actually, the service stopped randomly and was prompted to restart.

295461d1-14b8-41a6-9cf7-cb72b68b2263.png
The same for me, the service was blocked after about 3 hours...

Ok, let's see..
So I've apparently managed to fix the memory leak for some of you, but not all. which I don't really understand how that's possible..
And at the same time I introduced a new bug causing the whole service to crash after a while

Well at least those are different results than before, so I guess I'll call that progress xD

I'll do a bit of testing to see if I can at least reproduce and fix that new crash on my end and will let you know once I have a new version ready.
Thanks for helping out to all of you!

i have noticed the same issue, been running for about 30 mins and already using 257 MB ram. 

Old computer, FX8350, gtx 1080, 32GB ram

Alright, I gave it another try. New version is here

I could reproduce the crashing and stopping that some of you experienced with the previous version. This should be fixed now.
At least I had this running on my machine for multiple hours now with no issue.

The memory should hopefully be cleared every 10 minutes.

To make sure you're actually running the correct version you can again check ‘http://localhost:42001/version’ in a browser, it should return version 1.0.15 for this

1 hour in. I'll keep an eye on it. 
 

8a1fa742-70ff-4816-8243-543f2f6fda60.ee851716.png

Similar experience after one hour

592367c8-6410-4bb7-9024-07bc576b4b6f.ee851716.png

MrSpoon

1 hour in. I'll keep an eye on it. 
 

8a1fa742-70ff-4816-8243-543f2f6fda60.png
yo, MrSpoon. Is the memory leak climbing higher than 150MB? Just curious as I stopped running Mobro until this is fixed. I'm using my custom Sensory Panel through Aida64 until this is resolved. I still support this project as a Patreon and I love the fact that this runs off my pi4b. You've been testing since the beginning of this thread and I trust the results your getting. If it is staying below 150MB I'll switch back.

 not sure if this is important but i am on the original version still where i first noticed the memory leak, now of course the memory leak is still there but this version also appears to have multiple copies of the service running

 

1899801e-b0be-4a12-9e4e-93f8beef1053.ee851716.png

Seraksab

Alright, I gave it another try. New version is here

I could reproduce the crashing and stopping that some of you experienced with the previous version. This should be fixed now.
At least I had this running on my machine for multiple hours now with no issue.

The memory should hopefully be cleared every 10 minutes.

To make sure you're actually running the correct version you can again check ‘http://localhost:42001/version’ in a browser, it should return version 1.0.15 for this

Stopped service and replaced the exe, now running with updated.  Tried the browser link to verify version but it still shows 1.0.12, flushed browser cache also.

Thanks i'm gonna try it also! Starting right now :)

after ~12 hrs. At least the service is still  running. 

68fa1f30-4487-4391-ad48-62e015cc3806.ee851716.png

My memory usage gets above 5GB on the regular. I do use a combination of open-hardware and Hwinfo.   @Seraksab if your team would like. I would be willing to let you remote in and look at the service while it's doing. this. it sounds like one of those oily pig kinds of problems. 

 

 

2bffe126-b9ea-4181-8d02-70491d76ad37.ee851716.jpg

Login to comment

Login
Like most websites, we also use cookies. But don't worry, we only use them for your login and statistics.