Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024

(Note that 4.1.0 (build 4024) - 05 June 2024 remains available, but usage of this version is not recommended - particularly for Davis stations - and the included utility in this distribution for migrating to v4 is known to contain errors affecting conversion of dayfile.txt)

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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

CumulusMX running out of memory on Debian

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

ahagadorn
Posts: 29
Joined: Thu 11 Aug 2022 1:24 pm
Weather Station: Davis Vantage Pro 2
Operating System: Debian Linux
Location: Piedmont, SC
Contact:

CumulusMX running out of memory on Debian

Post by ahagadorn »

My Cumulus installation on Debian 11.8 is consistently dying after only a few hours. It has been running flawlessly for years up until a few weeks ago. Both Cumulus and Debian are up to date. Mono is the latest version. I turned off MySQL inserts. The logs state that it is running out of memory. Im stumped at this point and need assistance. MXdiags zip is attached.

Thanks!!
ANdrew
You do not have the required permissions to view the files attached to this post.
User avatar
HansR
Posts: 6089
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: CumulusMX running out of memory on Debian

Post by HansR »

As in your other thread, the SD card might be worn out.

If not try increasing your swap disk like described in this procedure.
Hans

https://meteo-wagenborgen.nl
CMX build 4023+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
mcrossley
Posts: 12966
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: CumulusMX running out of memory on Debian

Post by mcrossley »

Can you take a screen shot of a htop command?

That will show how much memory each process is using.
ahagadorn
Posts: 29
Joined: Thu 11 Aug 2022 1:24 pm
Weather Station: Davis Vantage Pro 2
Operating System: Debian Linux
Location: Piedmont, SC
Contact:

Re: CumulusMX running out of memory on Debian

Post by ahagadorn »

System memory and swap are fine. It is the process that is running out of memory. Nothing on the server is affected besides Cumulus.
User avatar
mcrossley
Posts: 12966
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: CumulusMX running out of memory on Debian

Post by mcrossley »

And how much memory is MX consuming?
ahagadorn
Posts: 29
Joined: Thu 11 Aug 2022 1:24 pm
Weather Station: Davis Vantage Pro 2
Operating System: Debian Linux
Location: Piedmont, SC
Contact:

Re: CumulusMX running out of memory on Debian

Post by ahagadorn »

See the attached screenshot
You do not have the required permissions to view the files attached to this post.
ahagadorn
Posts: 29
Joined: Thu 11 Aug 2022 1:24 pm
Weather Station: Davis Vantage Pro 2
Operating System: Debian Linux
Location: Piedmont, SC
Contact:

Re: CumulusMX running out of memory on Debian

Post by ahagadorn »

mcrossley wrote: Wed 13 Dec 2023 10:26 am And how much memory is MX consuming?
I'm watching it with top -p <PID> and memory is constantly creeping up.

Code: Select all

 1018 root      20   0 2068228   1.9g  29808 S   6.0  49.3   1:33.14 mono                                                                                                       
Sure looks like a memory leak to me...
freddie
Posts: 2550
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: CumulusMX running out of memory on Debian

Post by freddie »

I agree, but the leak is likely in mono, not in MX code. Also, it is not a common issue as there are many Linux users (I'm one) who don't see this behaviour. It's likely distro-specific.
Freddie
Image
ahagadorn
Posts: 29
Joined: Thu 11 Aug 2022 1:24 pm
Weather Station: Davis Vantage Pro 2
Operating System: Debian Linux
Location: Piedmont, SC
Contact:

Re: CumulusMX running out of memory on Debian

Post by ahagadorn »

freddie wrote: Wed 13 Dec 2023 3:39 pm I agree, but the leak is likely in mono, not in MX code. Also, it is not a common issue as there are many Linux users (I'm one) who don't see this behaviour. It's likely distro-specific.
I agree. I realize that it is not common too. Here is the latest top:

Code: Select all

 1018 root      20   0 2124036   1.9g  29616 S   6.3  50.7   2:44.53 mono                                                                                                          
I don't know what to do about it at this point.
User avatar
mcrossley
Posts: 12966
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: CumulusMX running out of memory on Debian

Post by mcrossley »

Wow, that is a serious memory leak! Just out of curiosity, does it still leak if you run MX from the command line rather than as a service (I expect it will).

It could be worth trying a slightly older version of Mono?
ahagadorn
Posts: 29
Joined: Thu 11 Aug 2022 1:24 pm
Weather Station: Davis Vantage Pro 2
Operating System: Debian Linux
Location: Piedmont, SC
Contact:

Re: CumulusMX running out of memory on Debian

Post by ahagadorn »

Yes, same running from command line.

Working on older versions of mono.
jlmr731
Posts: 225
Joined: Sat 27 Aug 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Wickliffe, Ohio
Contact:

Re: CumulusMX running out of memory on Debian

Post by jlmr731 »

Did you install mono from mono's site? Im running debian 12 (12.4) and debians package for mono is 6.8.0.105 and works fine.
so try to install it from deb's repository.
ahagadorn
Posts: 29
Joined: Thu 11 Aug 2022 1:24 pm
Weather Station: Davis Vantage Pro 2
Operating System: Debian Linux
Location: Piedmont, SC
Contact:

Re: CumulusMX running out of memory on Debian

Post by ahagadorn »

jlmr731 wrote: Wed 13 Dec 2023 10:53 pm Did you install mono from mono's site? Im running debian 12 (12.4) and debians package for mono is 6.8.0.105 and works fine.
so try to install it from deb's repository.
I did try 6.8.0 and the issue persisted so maybe it isn't mono.

I do have a Davis AirLink which might be uncommon...

I just now upgraded to the most recent MX release. See how it goes.
ahagadorn
Posts: 29
Joined: Thu 11 Aug 2022 1:24 pm
Weather Station: Davis Vantage Pro 2
Operating System: Debian Linux
Location: Piedmont, SC
Contact:

Re: CumulusMX running out of memory on Debian

Post by ahagadorn »

Still no joy, watching it bleed memory with top right now, back to the latest version of everything. I guess the next step is a compete reinstall of Cumulus with a fresh setup. Its very unfortunate because I have come to depend on my Cumulus generated display.

Did anyone analyze the MXdiags dump I posted?
freddie
Posts: 2550
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: CumulusMX running out of memory on Debian

Post by freddie »

The only thing that stood out to me in your MXDiags was this:

Code: Select all

2023-12-11 18:52:56.669 Some values in Cumulus.ini had invalid values, or new required entries have been created.
This is a fair enough message to see if you had just upgraded to a new release (when the new required entries would be created), but I wouldn't anticipate seeing it on every restart like you appear to be seeing. Might be worth looking into this before anything else.

@mcrossley does that sound reasonable?
Freddie
Image
Post Reply