PDA

View Full Version : Constant CPU Usage Mezzmo 5.2.0.0 Win Server 2019 1809



dafunk60
07-26-2019, 09:33 AM
Hello,

I'm running Mezzmo 5.2.0.0 as a service in a Windows Server 2019 (1809) VM. Everything is operating fine, I can stream media, maintain library, etc. However, after the media server service has been operating for 12-24 hours, the MezzmoMediaServer.exe starts consuming a constant 12%-13% of CPU resources on an 8 core CPU. Windows Resource Monitor is not showing any storage access while this is occurring. Resource Monitor is showing minimal network traffic, just a few kbps on the multicast address and brief connections from client devices. The Mezzmo UI is not showing any streaming or maintenance activity, nor any system or user tasks in the status window.

If I restart the Mezzmo Server service the problem goes away for 12-24 hours but then returns. Is there anything I should check to troubleshoot & resolve this issue? I've turned on diagnostic logging but it will likely take a day for the CPU usage to return.

Thanks!

Peter
07-26-2019, 12:35 PM
Hi,
when Mezzmo.exe is running the folder processing tasks are handled in Mezzmo.exe. If Mezzmo.exe is not running then this is done by MezzmoMediaServer.exe so you can check to see if the CPU usage goes down when Mezzmo.exe is running. You can also try going to the properties of any folders in the library and turn off the folder refresh interval to see if this is causing the problem.

dafunk60
07-31-2019, 02:27 PM
Hi Peter, Thank you for the prompt reply & suggestions. I've been troubleshooting this and I suspect this issue is caused by one of the following windows updates as the issue didn't began after they were installed.

https://support.microsoft.com/en-us/help/4507419/july-9-2019-kb4507419-cumulative-update-for-net-framework
https://support.microsoft.com/en-us/help/4507469/windows-10-update-kb4507469
https://support.microsoft.com/en-us/help/4509095/windows-10-update-kb4509095

Some details of the environment.
I run Mezzmo in a Hyper-V VM, both the host & guest OS is Windows Server 2019 1809. Aside from a Zabbix monitoring agent Mezzmo is the only software installed on the PC not included with the OS. The VM is joined to my Windows Domain & I typically run the Mezzmo service using a domain account with which is an admin on the local PC. Running Mezzmo with the local service account, the default for Mezzmo, does not change the behavior. All of the media in the Mezzmo library are on network shares presented via DFS.

Testing & Observations

Since install on this VM I hadn't had any issues until 7/10 when I installed the windows updates listed above.
Per your suggestion, I checked the folder refresh setting for each of the 3 folders added to the library. The option is not selected for any folder.
Also per your suggestion, I launched the Mezzmo GUI (Mezzmo.exe) while observing the constant CPU usage by the Mezzmo service. The service CPU usage did not decline.
Restarting the Mezzmo service returns the CPU usage to normal for varying periods of time.
I reviewed the Windows Firewall rules created at install and all appear to be correct. Inbound rules are UDP 1900, TCP 2869, & TCP 53168 (Media Server Port).
I reviewed some of the other troubleshooting steps at http://forum.conceiva.com/showthread.php/1183-FAQ-Cannot-see-Mezzmo-on-your-DLNA-device and when checking the settings of my router I found IGMP Snooping was on. While prior to 7/10 CPU usage was low with IGMP Snooping on, I have disabled IGMP Snooping. This did cause the CPU usage to increase at a slower rate than before. Unfortunately CPU usage continues to climb until the Mezzmo service is restarted.


The following image shows the CPU usage when things were working well, prior to 7/10 when Windows updates were installed.
1214

The next image shows the CPU usage before and after the Windows updates were installed. After 7/10 the CPU usage gradually increases.
1215

This final image shows the CPU usage increasing at various rates until the service is restarted. The right side of the image on 7/30 shows the behavior once IGMP Snooping was disabled in my router. While the rate if increase is slower CPU usage continues to rise until the service is restarted.
1216

I have collected a set of logs prior to disabling IGMP Snooping and can capture additional logs if necessary. They are too large to email but I am happy to get them to you in whatever manner you prefer. Media streaming and library maintenance functions as expected but I would like to get the CPU usage back to normal.

Thanks!

Peter
08-01-2019, 07:41 AM
Can you please upload the logs to wetransfer or another of the file sharing sites and send us a download link to support [at] conceiva [dot] com?

dafunk60
08-01-2019, 01:31 PM
Of course, a link to the logs has been sent to the email provided. Thanks!

dafunk60
08-03-2019, 05:15 AM
If any other user comes across this thread, my original thought that this change was triggered by something in a Windows update was incorrect. Mezzmo support staff took a look at my logs & identified a device on my network constantly querying the Mezzmo server which in turn increased the CPU usage. Disabling the troublesome device has resolved the issue.

Thank you to Peter & the folks at Mezzmo for always being so helpful!

dafunk60
08-16-2019, 02:12 PM
Hey Peter,

I think I considered this solved too soon. I haven't reattached the problematic client to the network and I'm still seeing ever increasing CPU usage as originally described. While the increase now occurs at a slower rate than it did with the problem client connected, it still occurs.

1217

The period of high CPU usage in the middle of the graph is when I was running a library maintenance and is to be expected from ffmpeg.exe. Aside from that, the CPU usage is almost exclusively the MezzmoMediaServer.exe, The drops in CPU usage correspond to a restarting of the Mezzmo service. I've checked the Windows Resource Monitor periodically and the CPU usage displayed in the graph corresponds to the Mezzmo service usage in the Windows Resource Monitor. Let me know if there's any additional info I can provide which would be of help.

Thanks!

Peter
08-19-2019, 08:03 AM
If you can send us new logs we can investigate to see if there are any other log lines that appear too often.

dafunk60
08-20-2019, 08:50 AM
Thanks Peter, I'll collect some new logs & send them your way.

I still suspect this is due to some changes caused by the July windows updates. I uninstalled the .Net update & the other windows updates that were "removable", but the problem persisted. This leads me to think it was a change in KB4507469. This image, 1218, shows CPU usage of the VM for the last 90 days. There is a long period of time where the CPU usage was stable (prior to 7/10) with the same version of Mezzmo & all the same devices on my network.

dafunk60
08-25-2019, 04:54 AM
Hi Peter,

New logs sent via email. I did some additional testing before capturing these logs, changing the Mezzmo firewall rules to block instead of accept. During this period I still saw constantly increasing CPU usage from MezzmoMediaServer.exe, approximately 2% per day. Not sure if that helps narrow anything down. The new logs were captured after restoring the firewall rules to accept. If the new logs don't reveal anything I can always create a scheduled task to reset the service every day.

Thanks,