mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-26 16:45:57 +03:00
[GH-ISSUE #862] High CPU usage with Atlantis turned on #859
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#859
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 @schwindt on GitHub (Apr 21, 2021).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/862
Originally assigned to: @NghiaTranUIT on GitHub.
Proxyman version 2.23.0
macOS Version 10.15.7
Steps to reproduce
Just start Proxyman with Atlantis turned on in your xcode projekt
after some minutes, the cpu usage gets around 150%. And thats all the time.
Expected behavior
low CPU usage
@NghiaTranUIT commented on GitHub (Apr 21, 2021):
Thanks for the report @schwindt
I have few questions:
I'm investigating it, but it seems that I couldn't reproduce it
@schwindt commented on GitHub (Apr 21, 2021):
Maybe I could find the problem: I had to deactivate the "proxy overridden" feature (option + command + o). The CPU usage went down directly. After I activated it, the CPU usage is still low.
@NghiaTranUIT commented on GitHub (Apr 21, 2021):
Thanks for the input 👍
Can you check how many rules in your SSL Proxying list are? (Tool -> SSL Proxying List). I suppose that there are many requests are intercepted during this time, so you get a higher CPU.
Toggle Proxy Overridden might fix it because these connections are stopped.
@schwindt commented on GitHub (Apr 21, 2021):
In the include list there are just 4 entries. The exclude list is empty.
@Brontojoris commented on GitHub (Sep 2, 2021):
I'm also seeing high CPU usage whenever I have an app running that implements Atlantis.
The app doesn't even need running in a simulator on the same machine as proxyman.
If the app with Atlantis framework is running on a device, or another Mac with simulator then the one running Poxyman has the high CPU.
System: MacBook Pro 2020, macOS 10.15.7, Proxyman 2.32.0. Xcode 12.4. Swift 5
@NghiaTranUIT commented on GitHub (Sep 2, 2021):
Thanks for your report @Brontojoris @schwindt
We've received a similar report with Atlantis too, but I'm not able to reproduce it in my machine.
If you don't mind, please install this version of Atlantis:
SMP
Check out this commit: 29088bc9b752498cdb74051c962855f2de77e52a
Cocoapod
I assume that the problem when we try to do Method Swizzling on NSConnection Delegate, so we remove it.
Please let me know if the high CPU issue remains 👍
Reference
@NghiaTranUIT commented on GitHub (Sep 2, 2021):
Just wondering:
Since Atlantis intercepts the Download/Upload URL Session Task -> Encode to JSON -> Zip -> Send to Proxyman app -> It might increase the CPU usage if the data is huge enough.
@Brontojoris commented on GitHub (Sep 2, 2021):
Hi @NghiaTranUIT ,
I updated my iOS app to use the specific version of atlantis, and ran it again on a seperate mac from where Proxyman is running.
After 4 or so hours of low cpu, Proxyman usage increase to between 120-140%. I disabled SSL proxying, and turned off Scripting, but CPU usage stays high. If I relaunch Proxyman, then CPU is low again.
I used Activity Monitor to capture a spin dump and a sample. Let me know if this is useful to you.
I did not see memory usage of my app running in the simulator on the other machine increase over time, like was mentioned in this issue
@hohuutuan85 commented on GitHub (Feb 27, 2023):
@NghiaTranUIT commented on GitHub (Feb 27, 2023):
@hohuutuan85 just wondering what macOS and Atlantis version. Do you use the latest version 🤔 ?
and what iOS version you're using?