Project

General

Profile

Actions

Bug #16347

closed
DZ

Memory leak in ``pftop``

Bug #16347: Memory leak in ``pftop``

Added by Danilo Zrenjanin about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Diagnostics
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
25.07
Release Notes:
Default
Affected Version:
Affected Architecture:

Description

Leaving `pftop` running in an interactive session for an extended period (several hours to days) causes continuous memory usage growth, leading to a point where kernel triggers OOM (Out-of-Memory) kill to save the system. Despite having 16GB RAM, this was enough to put the system in critical state. Suricata and other services were stable and consistent in memory usage.

Reproduction Steps

1. Open terminal or SSH into pfSense+
2. Run `pftop` and leave it running for several hours to days (especially with high session counts)
3. Monitor memory usage (`top`, `vmstat`, `swapinfo`)
4. System eventually reaches high memory usage (98–100%)
5. Kernel fails to reclaim memory and force kills `pftop`

Expected Behavior

`pftop` should:
- Not consume growing memory over time
- Be safely reclaimable by kernel
- Not lead to system-wide instability

Actions

Also available in: Atom