Skip to content

RAM usage climbing, should I have a cron job to restart nginx periodically? #442

@adamJLev

Description

@adamJLev

Hi there,

big fan of this project, its been working out very well for me!
quick q- I noticed that over time the server RAM usage goes up slowly.
Is this normal? I'm using the base nginx.conf with some small modifications (e.g. using nginx disk cache instead of memory cache).

Thanks guys!

Screenshot 2024-12-18 at 12 42 11

[root@0b8f96506c8a imagesweserv]# cat /proc/meminfo

MemTotal:       31821952 kB
MemFree:        17520340 kB
MemAvailable:   28377172 kB
Buffers:          179768 kB
Cached:         10709368 kB
SwapCached:            0 kB
Active:          2846256 kB
Inactive:       10695384 kB
Active(anon):    2733396 kB
Inactive(anon):        0 kB
Active(file):     112860 kB
Inactive(file): 10695384 kB
Unevictable:        4000 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Zswap:                 0 kB
Zswapped:              0 kB
Dirty:                 4 kB
Writeback:             0 kB
AnonPages:       2528276 kB
Mapped:           237780 kB
Shmem:             80892 kB
KReclaimable:     511360 kB
Slab:             624356 kB
SReclaimable:     511360 kB
SUnreclaim:       112996 kB
KernelStack:        4880 kB
PageTables:        20360 kB
SecPageTables:         0 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    15910976 kB
Committed_AS:    1802396 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19228 kB
VmallocChunk:          0 kB
Percpu:             3584 kB
HardwareCorrupted:     0 kB
AnonHugePages:   2256896 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
Unaccepted:            0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:      206248 kB
DirectMap2M:     8439808 kB
DirectMap1G:    25165824 kB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions