Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4021) - 04 May 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

CMXv4 Memory usage

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

broadstairs
Posts: 788
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW1003/GW1103/GW2000
Operating System: Windows 7 and Linux
Location: Broadstairs, Kent, UK
Contact:

Re: CMXv4 Memory usage

Post by broadstairs »

My Linux system has 16gb memory also and I'm guessing a memory leak would take a loooong time ;)

Stuart
User avatar
PaulMy
Posts: 3863
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: CMXv4 Memory usage

Post by PaulMy »

Mark wrote:
It's for all OS.
Just rechecking Task Manager and my Windows 10 system (also 16 gb) mostly still the same as before, from 30 to 60 mb for the three CMXv3 and one CMXv4 installs, except one CMXv4 is now at about 340 Mb and was at 548 Mb for a bit. This v4 is using Davis Weatherlink Console for data source. Checking all these with Dashboard > Charts > Select-A

Code: Select all

Mark wrote:
Did anyone try the runtime config file I posted above? Any change?
This is what I get in that CMXv4 with the high memory

Code: Select all

{
  "runtimeOptions": {
    "tfm": "net8.0",
    "framework": {
      "name": "Microsoft.NETCore.App",
      "version": "8.0.0"
    },
    "configProperties": {
      "System.GC.gen0size": 5242880,
      "System.GC.Server": true,
      "System.GC.Concurrent": true,
      "System.GC.HeapHardLimit": 209715200,
      "System.GC.ConserveMemory": 5,
      "System.Threading.ThreadPool.MinThreads": "10",
      "System.Threading.ThreadPool.MaxThreads": "30",
      "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
    }
  }
}

Enjoy,
Paul
You do not have the required permissions to view the files attached to this post.
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
Dador
Posts: 208
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: CMXv4 Memory usage

Post by Dador »

I can confidently say that I have improved significantly. Memory consumption, during normal operation and cyclical sending of files to the server, currently ranges from 50-130MB.
Now the RAM consumption is only 6x what CMXv3 consumes (~20MB), but fortunately not 22x as before. A really big plus for me.
mcrossley wrote: Tue 09 Apr 2024 2:54 pm I have found that last config file gives out of memory errors when you request a lot of data from the select-a-period graphs :(
I checked it. The computer gets out of breath at very long times, but RAM consumption does not exceed 200MB.
User avatar
ConligWX
Posts: 1640
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04 LTS
Location: Bangor, NI
Contact:

Re: CMXv4 Memory usage

Post by ConligWX »

mcrossley wrote: Tue 09 Apr 2024 2:54 pm It's for all OS.

I have found that last config file gives out of memory errors when you request a lot of data from the select-a-period graphs :(

Third version will be incoming soon....
so far not noticed any increase in memory usage even though I loaded the select-charts heavily.

here is the difference from htop at the start and then 3 hours later:

Screenshot 2024-04-09 181132.png

Screenshot 2024-04-09 213727.png

as you see memory is less than what it was.


anyone wanting an overview of htop please checkout the video here: https://www.youtube.com/watch?v=bKWZJ3_5ODc
You do not have the required permissions to view the files attached to this post.
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0

Image
weatherbee
Posts: 4
Joined: Sat 16 Mar 2024 7:02 pm
Weather Station: WS-5000
Operating System: Windows 11
Contact:

Re: CMXv4 Memory usage

Post by weatherbee »

I'm running Windows 11. After installing CumulusMX.runtimeconfig.json my usage has gone from 278 MB to 87 MB.
Using ver.4.0.0 build 4019.
Tom
Image
AndyKF650
Posts: 720
Joined: Thu 20 Aug 2020 8:35 am
Weather Station: Davis VP2 Plus
Operating System: RPiv4 64bit Linux 12 Bookworm
Location: Jersey Channel Islands
Contact:

Re: CMXv4 Memory usage

Post by AndyKF650 »

I have monitored HTOP memory use for a short while and the results are as follows

Uptime 03:000:00 mem use 506M/3.70G
Uptime 05:34:42 mem use 512M/3.70G
Uptime 18:36:45 mem use 519M/3.70G

Steadily increasing but at that rate my ram will take a very long time to flood the available space.
User avatar
Dador
Posts: 208
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: CMXv4 Memory usage

Post by Dador »

I can write that installing .NET 8.0.4, in my case, did not change anything when it comes to memory consumption. What it was like (avg ~120MB) is still the same.
User avatar
PaulMy
Posts: 3863
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: CMXv4 Memory usage

Post by PaulMy »

This morning:
CMXv3 with WLL 63.4 mb
CMXv3 with Wifilogger 55.9 mb
CMXv3 with Davis Weatherlink Cloud 40.4 mb
CMXv4 with WLL 46.5 mb
CMXv4 with Davis Weatherlink Cloud 36.0 mb
These all do fluctuate but usually no more than 5% higher or lower
There is little difference if the local dashboard is changed to any of the other tabs - i.e. Today/Yesterday, Reports, and not much change in any of them during the normal 5-minute interval processing and uploads.
Looks good here.

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
Dador
Posts: 208
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: CMXv4 Memory usage

Post by Dador »

PaulMy wrote: Wed 10 Apr 2024 6:28 pm CMXv3 with WLL 63.4 mb
CMXv3 with Wifilogger 55.9 mb
CMXv3 with Davis Weatherlink Cloud 40.4 mb
CMXv4 with WLL 46.5 mb
CMXv4 with Davis Weatherlink Cloud 36.0 mb
Nice :D

I am very curious how Davis+WiFiLogger will work with CMXv4 in my case.
I'll find out when CMXv4 comes out of Beta.
broadstairs
Posts: 788
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW1003/GW1103/GW2000
Operating System: Windows 7 and Linux
Location: Broadstairs, Kent, UK
Contact:

Re: CMXv4 Memory usage

Post by broadstairs »

Mark I am curious to know if your zip file attached in this thread was included in the 4020 full download. My reason for asking is that my CMX V4 is running varying between 650mb and 910mb pretty much constantly and was at or near this level right after a restart. OK so I have 15gb memory so memory per se is not an issue but just curious as this is somewhat more than I remember in V3 and although memory use seems high it shows no classic signs of memory leak. I have the latest Linux dotnet version installed 8.0.4.

Stuart
AndyKF650
Posts: 720
Joined: Thu 20 Aug 2020 8:35 am
Weather Station: Davis VP2 Plus
Operating System: RPiv4 64bit Linux 12 Bookworm
Location: Jersey Channel Islands
Contact:

Re: CMXv4 Memory usage

Post by AndyKF650 »

Hi there

To add to this conversation, I have been monitoring the system memory on my RPi v4 which runs CMX V4.0.0 with dotnet 8.0.4. CMX is the only software running permanently on the RPI

The memory test is using "free -h" via a crontab script every 20 mins, this shows the Total Memory, Used Memory, Free Memory, Shared Memory, Buffer cache, and Available memory.

The results for the past few weeks is attached and shows that the total used memory is largely stable in the period between 695Mb to 815Mb, rebooting the RPi from time to time reduces the used memory a bit but as you can see the free memory is 1.3Gb until I started writing this post when it suddenly peaked out.
You do not have the required permissions to view the files attached to this post.
User avatar
philpugh
Posts: 389
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 11 (RPi4)
Location: Antrobus, Cheshire, UK
Contact:

Re: CMXv4 Memory usage

Post by philpugh »

Her's my htop for RPi 5 8Gb 64bit Debian 12 running three instances of CumulusMX 4b4019. Not seen any memory problems wit this setup. System was 'rebooted' this am as we had a power cut!
You do not have the required permissions to view the files attached to this post.
Phil Pugh
GW1100 + WH65/WH57/WH31;GW1100 + WS68/WH40A (also with HP25xx console); GW2001 WittBoy
CumulusMX V4 / CUtils V7
Raspberry Pi 5 64bit
http://goosegate.uk/
User avatar
mcrossley
Posts: 12812
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: CMXv4 Memory usage

Post by mcrossley »

I have been doing some more testing of this and the next build will use a different config, plus a forced memory clean-up every 10 minutes - though that does not seem to do very much.
broadstairs
Posts: 788
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW1003/GW1103/GW2000
Operating System: Windows 7 and Linux
Location: Broadstairs, Kent, UK
Contact:

Re: CMXv4 Memory usage

Post by broadstairs »

That's interesting you have a lot less unique PID tasks running, I have 23 unique PIDs!

Stuart
User avatar
mcrossley
Posts: 12812
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: CMXv4 Memory usage

Post by mcrossley »

Do you both use PHP upload? That creates a fair-sized thread pool. This is mine...
.
Screenshot 2024-04-26 123730.png
You do not have the required permissions to view the files attached to this post.
Post Reply