Skip to content

Climbing memory usage on Linux. #675

@Clifra-Jones

Description

@Clifra-Jones

Describe the Bug

I am runnig a pode web apoplication on Linux. We are experiencing rising memory usage over time,

Steps To Reproduce

Steps to reproduce the behavior:

  1. Restart the systemd service running the Pode Web application
  2. Monitor memory usage
  3. memory usage steadily climes over several weeks.

Expected Behavior

Memory usage should be fairly constant.

Screenshots

Servers memory usage over time.

Image

Platform

  • OS:
  • Browser: Should alway be Chrome
  • Versions: Server AlmaLinux 9.6 (Sage Margay)
    • Pode: 2.12.1
    • Pode.Web: 0.8.3
    • PowerShell: 7.5.2

Additional Context

I am using the following modules.
AWS.Tools.SecretsManager
POSH-SSH
PSPGP

I am running another Pode.Web application hosted on a windows server and I do not have any memory issues.

I have gone through my code and made sure all SSH sesions are closed out. I have implemented a schedule to for garbage collection.

    # Schedule to execute garbage collection
    $Cron = New-PodeCron -Every Minute -Interval 5
    Add-PodeSchedule -Name 'GarbageCollection' -Cron $Cron -ScriptBlock {
        [System.GC]::Col
        Start-Sleep -Milliseconds 300
        [System.GC]::Collect()
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions