mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-26 08:35:53 +03:00
[GH-ISSUE #1742] Excessive memory consumption when reloading React Native bundle #1735
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#1735
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @steemcb-phorest on GitHub (Aug 16, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1742
Originally assigned to: @NghiaTranUIT on GitHub.
Description
Hi, with the latest release of Proxyman it seems to be intercepting more traffic than previous versions when it comes to doing a hot reload of a React Native app. The bundle of the app we're developing is quite large and we're seeing that Proxyman is consuming roughly 3GB of memory per reload of the app meaning we can only run Proxyman for a short amount of time before the OS memory is exhausted. The traffic is being generated from a websocket URL like
ws://localhost:9090/- is there a recent change to Proxyman that could be causing this? This happens regardless of whether SSL proxying is turned on or not.Steps to Reproduce
Current Behavior
Memory usage increases dramatically with each reload
Expected Behavior
There should be an ability for Proxyman to ignore this traffic as per previous versions
Environment
@NghiaTranUIT commented on GitHub (Aug 17, 2023):
@steemcb-phorest look like there is an infinite loop when making a WS Request to port 9090, which is a port that Proxyman is listening to. Let me investigate it and fix it 👍
@NghiaTranUIT commented on GitHub (Aug 17, 2023):
@steemcb-phorest can you try this Beta build: https://download.proxyman.io/beta/Proxyman_4.9.1_Fix_infinite_loop_react_native.dmg
It detects the infinite loop (
ws://localhost:9090) and breaks the loop. Let me know if it fixes your issue 👍@steemcb-phorest commented on GitHub (Aug 17, 2023):
Hi @NghiaTranUIT thanks so much for looking at this so quickly, the fix seems to work! Do you know when this could be released in an official build?
@NghiaTranUIT commented on GitHub (Aug 17, 2023):
Maybe 1-2 weeks. You can safely use the Beta build without any problems.