Set and View Power-Shell memory limits

Document created by nintexsupport Support on Feb 25, 2016
Version 1Show Document
  • View in full screen mode

 

Summary:

When executing NWAdmin.exe in Power-Shell you may run into an issue where you exceed maximum memory allotted to Power-Shell.  You may need to review these and bump them up if needed for the operation.

Product:

All Workflow for SharePoint on-premises;All Forms for SharePoint on-premises

Symptom:

You run NWAdmin.exe using Power-Shell and it does not complete the task.

Cause:

You may be reaching maximum memory limitation set for Power-Shell.

Answer/Solution:

First, check to see what size database you are working on using NWAdmin.exe.  If the database is large, you may have reached maximum memory limit set for Power-Shell.

To check current settings:

  1. Open Power-Shell console and type in: sl WSMan:\localhost\Shell
  2. Then type in: dir
  3. You will now see the settings for current Power-Shell window

To set:

  1. Run this and specify the amount you would like to set to:
  2. Set-Item .\MaxMemoryPerShellMB 2048
  3. You may need to restart 'Windows Remote Management (WS-Management) (winrm)' by using:
  4. Restart-Service winrm
  5. Confirm changes by: dir

Reference:

https://blogs.technet.microsoft.com/heyscriptingguy/2013/07/30/learn-how-to-configure-powershell-memory/

 

Attachments

    Outcomes