Script taking longer time in calling in app server

sns 9,231 Reputation points
2021-06-28T04:17:40.253+00:00

I have ran in to kind of strange issue today with my SharePoint 2013 Farm. I have one PowerShell Script( Runs in App server) to add items to a list. Suddenly this script is taking very long time to go to next line after it call $item.update()

But the same time If I run the same script on my front end server, it works as expected with out any delay.

Please help

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,900 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Echo Du_MSFT 17,141 Reputation points
    2021-06-28T07:12:58.11+00:00

    Hello @sns ,

    This may be related to your app server environment. For example, CPU, memory leads to slow operation. Or there are multiple applications/services running at the same time, occupying too many resources, causing the powershell script to run slowly.

    Thanks,
    Echo Du

    ==========================

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. sadomovalex 3,631 Reputation points
    2021-07-02T14:41:16.817+00:00

    did you try to restart App server and run script after that?