I think the numbers vary a lot with the system architecture.  My numbers 
are for Intel x64 - RSS is half yours while VM_total is double.  Then 
again, I run only Seasons skin.

However, when I had the memory leak it was all due to data increment 
(showing up as RSS).  The jump in total while RSS is stable could be 
loading more code, so I expect  it should only happen once or twice then 
stabilise.  We need to see longer term trends.

On Wednesday, 21 September 2022 at 10:15:29 am UTC+10 vince wrote:

> Your graphs make no sense unless your os is somehow misconfigured.  The 
> mem_size is 3x or more what I'd expect.  The mem_rss and mem_share look 
> reasonable.   Did you do something to your os setup that alters how it 
> handles memory ?
>
> Here's mine from a pi4 with a lot of skins including Belchertown, MQTT 
> subscribe, MQTT publish, and some custom stuff I wrote for here.  I show 
> slight memory usage growth (bottom-left graph) in the almost 4 weeks since 
> I built a clean pi and moved my old setup over to it, but given I have a 
> 4GB pi4 I'm expecting/hoping that I'm good for a long long time.  Units are 
> in MB.
>
> [image: Screen Shot 2022-09-20 at 5.05.00 PM.png]
>
> Another way of working this one would be to (temporarily) switch back to 
> the simulator driver, restart weewx, and let it run for a day and see if it 
> has the expected under 100 MB of RAM usage.  That might hone in on your 
> driver being the culprit.
>
> On Tuesday, September 20, 2022 at 3:14:58 PM UTC-7 joh...@kd2gyo.com 
> wrote:
>
>> Vince - thank you. I've installed the memory util and it's working great. 
>> Screenshot below.
>>
>> I'm running the absolute basic config I think (or at least I thought) - 
>> basic skin (one of the default options) and only extension I think (or 
>> additional driver) is the WeatherLinkLive.
>>
>> [image: image.png]
>>
>>
>> On Tue, Sep 20, 2022 at 12:47 PM vince <vince...@gmail.com> wrote:
>>
>>> On Tuesday, September 20, 2022 at 8:27:00 AM UTC-7 joh...@kd2gyo.com 
>>> wrote:
>>>
>>>> Thanks Cameron - I see that now in the log, any pointers on how I could 
>>>> try and find that mem leak?
>>>>
>>>> On Tue, Sep 20, 2022 at 9:33 AM 'Cameron D' via weewx-user <
>>>> weewx...@googlegroups.com> wrote:
>>>>
>>>>> looking at the last line of the log, weewx had been allocated VM 
>>>>> totalling 21GB, RSS 14GB.  Killing everything else is not going to make 
>>>>> much difference.
>>>>>
>>>>>
>>> The only way is to step all the way back to square one and disable 
>>> 'everything' you have enabled and then reenable them one-by-one until you 
>>> can figure out the offending piece of the puzzle.    Are you running a 
>>> large number of skins and extensions and other add-ons perhaps and one is 
>>> running amok ?  You haven't mentioned what you actually have installed and 
>>> enabled.
>>>
>>> People run weewx on systems with as low as 128 MB of RAM, so this one is 
>>> highly unusual to say the least.
>>>
>>> If it helps any, I have a small extension that will save the weewx 
>>> memory usage to a separate db and create a minimal skin+graphs of just that 
>>> - see github (link) 
>>> <https://github.com/vinceskahan/vds-weewx-v3-mem-extension> if you want 
>>> to automate getting some data easily.
>>>
>>>
>>> -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "weewx-user" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/weewx-user/yJNYSpx-ihI/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> weewx-user+...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/0f0d9f38-151f-4e91-bd2f-12eac8869611n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/weewx-user/0f0d9f38-151f-4e91-bd2f-12eac8869611n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/fb50731d-ff2a-43c1-8902-d71c30922276n%40googlegroups.com.

Reply via email to