[GH-ISSUE #862] High CPU usage with Atlantis turned on #859

Open
opened 2026-03-03 19:22:30 +03:00 by kerem · 10 comments
Owner

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

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
Author
Owner

@NghiaTranUIT commented on GitHub (Apr 21, 2021):

Thanks for the report @schwindt
I have few questions:

  1. Just wondering what Atlantis version are you using?
  2. How many requests from your app that appear on Proxman when the CPU goes high? You can get the number from the ID column

I'm investigating it, but it seems that I couldn't reproduce it

<!-- gh-comment-id:824064133 --> @NghiaTranUIT commented on GitHub (Apr 21, 2021): Thanks for the report @schwindt I have few questions: 1. Just wondering what Atlantis version are you using? 2. How many requests from your app that appear on Proxman when the CPU goes high? You can get the number from the ID column I'm investigating it, but it seems that I couldn't reproduce it
Author
Owner

@schwindt commented on GitHub (Apr 21, 2021):

  1. we are using Atlantis version 1.8.0
  2. current ID is at 2555. But it doesn't matter if there are any api calls. Even when there are no calls, the cpu usage is constantly high.

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.

<!-- gh-comment-id:824122402 --> @schwindt commented on GitHub (Apr 21, 2021): 1. we are using Atlantis version 1.8.0 2. current ID is at 2555. But it doesn't matter if there are any api calls. Even when there are no calls, the cpu usage is constantly high. 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.
Author
Owner

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

<!-- gh-comment-id:824124033 --> @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.
Author
Owner

@schwindt commented on GitHub (Apr 21, 2021):

In the include list there are just 4 entries. The exclude list is empty.

<!-- gh-comment-id:824318035 --> @schwindt commented on GitHub (Apr 21, 2021): In the include list there are just 4 entries. The exclude list is empty.
Author
Owner

@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

<!-- gh-comment-id:911007188 --> @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
Author
Owner

@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

pod 'atlantis-proxyman', :git => 'https://github.com/ProxymanApp/atlantis.git', :commit => '29088bc9b752498cdb74051c962855f2de77e52a'

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

<!-- gh-comment-id:911024221 --> @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 ``` pod 'atlantis-proxyman', :git => 'https://github.com/ProxymanApp/atlantis.git', :commit => '29088bc9b752498cdb74051c962855f2de77e52a' ``` 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 - PR: https://github.com/ProxymanApp/atlantis/pull/83 - Discussion: https://github.com/ProxymanApp/atlantis/issues/82
Author
Owner

@NghiaTranUIT commented on GitHub (Sep 2, 2021):

Just wondering:

  • Are your app, which is integrated with Atlantis, is downloading/uploading a huge file when the CPU is high? 🤔

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.

<!-- gh-comment-id:911028166 --> @NghiaTranUIT commented on GitHub (Sep 2, 2021): Just wondering: - Are your app, which is integrated with Atlantis, is downloading/uploading a huge file when the CPU is high? 🤔 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.
Author
Owner

@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

<!-- gh-comment-id:911389983 --> @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](https://github.com/ProxymanApp/atlantis/issues/82)
Author
Owner

@hohuutuan85 commented on GitHub (Feb 27, 2023):

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

<!-- gh-comment-id:1446162250 --> @hohuutuan85 commented on GitHub (Feb 27, 2023): > 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
Author
Owner

@NghiaTranUIT commented on GitHub (Feb 27, 2023):

@hohuutuan85 just wondering what macOS and Atlantis version. Do you use the latest version 🤔 ?

  • Proxyman for macOS: 4.3.0
  • Atlantis: 1.20.0

and what iOS version you're using?

<!-- gh-comment-id:1446268426 --> @NghiaTranUIT commented on GitHub (Feb 27, 2023): @hohuutuan85 just wondering what macOS and Atlantis version. Do you use the latest version 🤔 ? - Proxyman for macOS: 4.3.0 - Atlantis: 1.20.0 and what iOS version you're using?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#859
No description provided.