New-MemoryDump - PowerShell Cmdlet
This PowerShell Cmdlet enables the user to take a new memory dump of the cache or the NCache Service/NCache Management Center. For NCache Service/NCache Management Center, you need to specify the Process Id of the Service/NCache Management Center when using the PowerShell Cmdlet. New Memory Dump is asynchronous by default - it will not wait for the memory dump to complete, unless explicitly specified when using the PowerShell Cmdlet.
Note
This feature is only available in NCache Enterprise and Professional.
New-MemoryDump -Server [-CacheName] [-ProcessId] [-WaitForCompletion] [-Port] [-Credentials] [-NoLogo]
Examples of New-MemoryDump - PowerShell Cmdlet
- This command initiates dump generation on server 20.200.20.11 for the cache named demoCache.
New-MemoryDump -Server 20.200.20.11 -CacheName demoCache
- This command initiates dump generation on server 20.200.20.11 for ProcessId 1234.
New-MemoryDump -Server 20.200.20.11 -ProcessId 1234
- This command initiates dump generation on server 20.200.20.11 for ProcessId 1234 and waits for the dump generation to complete.
New-MemoryDump -Server 20.200.20.11 -ProcessId 1234 -WaitForCompletion
Properties
Note
The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
Parameters | Data Types | Description | Default Value |
---|---|---|---|
-Server |
<String> |
Specifies the NCache server name/IP where NCache Service is running. | - |
-CacheName |
<String> |
Specifies cache name for which the dump needs to be created on the server specified. | - |
-ProcessID |
<Integer> |
Specifies the Process Id for which dump needs to be created on the server specified. | - |
-WaitForCompletion |
<SwitchParameter> |
If specified, does not exit until the memory dump is captured. | False |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |
-Port |
<Integer> |
Specifies the server port where NCache server is listening. | 8250 |
-Credentials |
<pscredential> |
Specifies the user credentials required to authorize access for the specified operation. These credentials should belong to a user who has appropriate permissions at the node. | - |