This repository was archived by the owner on Jan 19, 2021. It is now read-only.
Very high CPU usage of commands when the network is bad #2912
Unanswered
nathan-prijot
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, unfortunately I'm not sure how I could measure such issue, so I'm looking for someone who might already know this issue.
A server runs a lot of different Power Shell scripts, some with high rates of executions. There is currently a clear networking issue. The script take usually 2 seconds to connect to a SharePoint Online. Now they take 8 seconds. This is already quite an issue. But what I cannot understand is the fact that when connection is slower, which mean that any PnP command take more time, the CPU usage go to the roof. It seems that the scripts will use as much CPU power they can take.
Why is that ? I would expect that command waiting for server response would be low on CPU usage. Is that an issue in the design a the calls to the SharePoint server ? Maybe a specific timeout and retry setting would help ?
Beta Was this translation helpful? Give feedback.
All reactions