[Bug] 26.3.0: 204 GB memory footprint despite automatic cleanup enabled at 4 GB

Aperta
#2,804 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@NghiaTranUIT ci sta già lavorando.

Dal 2/11/2026.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
macos

Direzione di ricerca

No source files, tests, or code entry points are identified in the issue. Start by reviewing the reported memory measurements and related issue #2293, then determine whether automatic cleanup ran and what targeted diagnostics can identify retained allocations. Done means the cleanup behavior and likely allocation source are understood well enough to explain the excessive memory use.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

✅ Done bug

Description

Proxyman 26.3.0 reached a physical footprint of approximately 204 GB after about 28 hours of uptime on a Mac with 48 GB RAM, despite Automatically Remove Older Requests being enabled with a 4 GB threshold.

This appears to be excessive retained memory / a possible memory leak. The exact allocation source and whether automatic cleanup actually ran are not yet known.

Steps to Reproduce

These are the conditions of the observed incident, not a confirmed minimal reproducer:

  1. Run Proxyman 26.3.0 on Apple Silicon with macOS 26.1.
  2. Capture HTTP/HTTPS traffic from development devices over an extended session (approximately 28 hours of app uptime).
  3. Use SSL Proxying for specific domains (31 enabled entries, no global * wildcard). The global HTTP mode was http1_only.
  4. Keep Settings > Advanced > Automatically Remove Older Requests enabled. The settings UI says: “Remove older requests when memory exceeds 4 GB, at most once every 5 minutes.”
  5. Observe very high memory usage despite this setting.

Current Behavior

  • Activity Monitor showed 200.22 GB for Proxyman.
  • A subsequent read-only vmmap -summary measurement reported:
Version:                  26.3.0 (260300)
Code Type:                ARM64
OS Version:               macOS 26.1 (25B78)
Physical footprint:       204.2G
Physical footprint (peak): 206.9G

Writable regions:
  Total=350.3G written=204.1G resident=14.1G swapped_out=190.1G

REGION TYPE          VIRTUAL   RESIDENT   DIRTY   SWAPPED
MALLOC_LARGE          332.5G     12.9G     12.9G   178.1G
MALLOC_LARGE (empty)   12.5G      1.0G      1.0G    11.5G

The footprint is not the amount of installed physical RAM; the process RSS was approximately 15 GB, with substantial compressed/paged-out memory. System-wide swap usage was approximately 17.5 GB.

At the time of inspection, Proxyman's own Overview report for the selected session showed:

  • 30,197 requests, 1 in progress
  • 83 MB transferred (29.7 MB uploaded, 53.3 MB downloaded)
  • Largest recorded response: 392 KB
  • Mostly JSON responses
  • Recording active; SSL Proxying enabled

These are the currently retained session statistics, not necessarily all traffic processed during the app's lifetime. Nevertheless, the memory footprint seems severely disproportionate to the retained session data, and the configured cleanup threshold did not prevent it.

Expected Behavior

Automatic removal of older requests should keep long-running capture sessions within a reasonable memory budget. A 4 GB cleanup threshold should not allow the process footprint to grow beyond 200 GB without effective mitigation or an actionable warning.

Environment

  • Proxyman: 26.3.0 (260300)
  • macOS: 26.1 (25B78)
  • Architecture: Apple Silicon / ARM64
  • Physical RAM: 48 GB
  • App uptime when inspected: approximately 28 hours
  • HTTP mode: HTTP/1 only
  • SSL Proxying: domain-specific include list; no global wildcard
  • MCP enabled; used for read-only inspection after the high memory usage was already visible

Diagnostic limits / related report

The Activity Monitor and Advanced Settings values above were verified from screenshots. No manual Clear Session or restart test was performed as part of this inspection, so recovery behavior and repeatability are not yet established. No heap allocation backtraces have been collected.

This may be related to #2293, but I cannot confirm the same root cause; this report concerns version 26.3.0 with automatic cleanup explicitly enabled.

Could you advise which targeted diagnostics would help identify the retained allocations and verify whether automatic cleanup is running? Request bodies, credentials, and business hostnames are omitted from this public report.

Lingua principale
Nessun dato sulla lingua
Stelle
7.1k
Fork
238
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ProxymanApp/Proxyman

Tutte le issue di ProxymanApp/Proxyman

Issue simili

Altre issue su Desktop Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.