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

Open
#2,804 2 comments 0 reactions 1 assignee View on GitHub

@NghiaTranUIT is already working on this.

Since Nov 2, 2026.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
macos

Research direction

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.

Written by the indexing model from the issue text.

Description

✅ 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.

Dominant language
No language data
Stars
7.1k
Forks
238
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ProxymanApp/Proxyman

All issues in ProxymanApp/Proxyman

Similar issues

More Desktop Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.