Jump to content

OMV Scan Library seems to cause memory leak


Recommended Posts

Mentalblaze
Posted

My OpenMediaVault have been using a lot of memory for a while so I started to examine what might be the cause of this.

Today I found a possible suspect but I need some help to investigate further and if possible solve it.

Today I started by restarting OMV. Then I used Emby a couple of hours, creating the used ram to increase to close 2Gb (of 8gb), so that is not a problem. After that I wanted to see what happened if I triggered a Library sync.

That took about 2-5 minutes and during the first two minutes, the memory used rised up to 4gb.

Still not a problem if not for the fact that the 4gb memory still is locked after half an hour. The used memory is now up to 5gb and I expect it to rise further during the night as emby handles the scans automatically so that there is only 0.5gb left in the morning for the system to use...

If I look among my processes, emby user takes around 3 to 3.5 percent of the memory for mono. So the rest is hidden somewhere.

 

Earlier I tried by stopping the emby service, but no memory was released (only had it turned off for a minute).

 

Is this a known problem that there is a solution or workaround for?

I have OMV 2.2 and emby 3.0.5818.0

 

Any more diagnostics I can run to pinpoint any problems?

Posted

Hi, welcome. The first tihng I would do is update to the latest version of Emby Server, then try again and report back. Thanks!

Mentalblaze
Posted

Since my question I tried to upgrade Emby to see if that would help, but I ran into other problems along the way.

Mainly bad sectors on the OMV drive, forcing me to do a temporary reinstallation (I will do a proper one on better media soon)...

That is the main reason for a late response.

 

That said, if and when I reinstall Emby Server on the OMV (have it on a Windows server for now), how can I limit Mono to a certain amount of RAM?

After a bit of investigation it seems like the culprit is the Mono framework. I would like to set a max of 2Gb ram for Mono.

And probably schedule restarts once a day or something to see if that helps.

Is that a good idea?

Posted

Hi, I don't recall it off the top of my head, but i think there are some memory related command line parameters that mono can accept.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...