Skip to content

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

@skinner12

Description

@skinner12

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions