weewx-wdc icon indicating copy to clipboard operation
weewx-wdc copied to clipboard

[BUG] High Memory Usage Causing WeeWX to Crash When Generating Statistics Page

Open skinner12 opened this issue 8 months ago • 4 comments

Describe the bug Hello,

I have been using WeeWX with a custom skin, and everything was working fine. Recently, I upgraded to version 5.0.2 and updated my database from the original version 3 started in 2018 to the extended database format. I also recalculated all values.

I configured WeeWX to update weekly and yearly reports every hour. However, I am experiencing a significant issue when generating the statistics page. I have allocated 8GB of RAM to the VM running Ubuntu with python 3.12, but within a few minutes of starting to produce the statistics page, WeeWX consumes all available RAM, causing the system to terminate the application.

If I comment out the statistics section in the skin.conf file and do not generate the statistics page, everything works fine, and there are no memory issues.

Could you please help me understand what might be causing this problem? Are there any settings or configurations that I can adjust to prevent WeeWX from consuming so much memory?

Thank you for your assistance.

To Reproduce Steps to reproduce the behavior: Build statistic page

skinner12 avatar Jun 20 '24 20:06 skinner12