question

sns1 avatar image
0 Votes"
sns1 asked sns1 commented

Script taking longer time in calling in app server

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

office-sharepoint-server-administration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

EchoDu-MSFT avatar image
0 Votes"
EchoDu-MSFT answered sns1 commented

Hello @sns1 ,

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.




· 10
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Echo Du,

Thank you for the response.

Server resources seems to be fine. No High CPU or memory
and other scripts are running properly. Only for two specific list from the specific server.

0 Votes 0 ·

Hi @sns1 ,

Can you upload your script and provide the screenshots of these two specific lists? This helps us solve the problem better.

Thanks,
Echo Du

0 Votes 0 ·

Hi ECho Du,
PFA
109837-script.png109882-sc2.png109883-sc3.png109884-list.png


0 Votes 0 ·
script.png (2.1 MiB)
sc2.png (2.7 MiB)
sc3.png (1.3 MiB)
list.png (1.1 MiB)
Show more comments
sadomovalex avatar image
0 Votes"
sadomovalex answered sns1 commented

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

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Sadomovalex,

Yes. We have rebooted the app server, still the problem persists.

0 Votes 0 ·