Script taking longer time in calling in app server

sns 9,226 Reputation points

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,795 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Echo Du_MSFT 17,116 Reputation points

    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.

    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,626 Reputation points

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