Skip to content

Instantly share code, notes, and snippets.

@rjernst
Created October 30, 2018 21:09
Show Gist options
  • Save rjernst/482691d5568a4b3c2e5f6cce43936b31 to your computer and use it in GitHub Desktop.
Save rjernst/482691d5568a4b3c2e5f6cce43936b31 to your computer and use it in GitHub Desktop.
Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName
------- ------ ----- ----- ----- ------ -- -----------
970 91 1325500 1322004 -1238 29.95 3356 elasticsearch-service-x64
] stderr = []>
<org.elasticsearch.packaging.util.Shell$Result exitCode = [1] stdout = [] stderr = [Wait-Process : This command stopped operation because process "elasticsearch-service-x64 (3944)" is not stopped in the
specified time-out.
At line:1 char:51
+ $p = Get-Process -Name elasticsearch-service-x64; Wait-Process -InputObject $p - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (System.Diagnost...ch-service-x64):Process) [Wait-Process], TimeoutException
+ FullyQualifiedErrorId : ProcessNotTerminated,Microsoft.PowerShell.Commands.WaitProcessCommand
]>
<org.elasticsearch.packaging.util.Shell$Result exitCode = [0] stdout = [
Image Name PID Session Name Session# Mem Usage
========================= ======== ================ =========== ============
System Idle Process 0 Services 0 4 K
System 4 Services 0 244 K
smss.exe 312 Services 0 1,012 K
csrss.exe 408 Services 0 4,064 K
wininit.exe 452 Services 0 4,220 K
csrss.exe 468 Console 1 10,388 K
winlogon.exe 512 Console 1 6,284 K
services.exe 552 Services 0 5,644 K
lsass.exe 560 Services 0 11,184 K
svchost.exe 632 Services 0 9,884 K
svchost.exe 664 Services 0 7,000 K
dwm.exe 760 Console 1 29,796 K
VBoxService.exe 772 Services 0 5,164 K
svchost.exe 836 Services 0 13,180 K
svchost.exe 864 Services 0 37,652 K
svchost.exe 908 Services 0 10,376 K
svchost.exe 980 Services 0 19,164 K
svchost.exe 464 Services 0 11,004 K
spoolsv.exe 1064 Services 0 9,636 K
svchost.exe 1140 Services 0 10,476 K
ruby.exe 1188 Services 0 14,056 K
svchost.exe 1320 Services 0 11,432 K
wlms.exe 1360 Services 0 2,724 K
svchost.exe 1692 Services 0 8,724 K
sppsvc.exe 1824 Services 0 14,856 K
svchost.exe 1924 Services 0 4,656 K
SppExtComObj.Exe 2340 Services 0 4,724 K
taskhostex.exe 2420 Console 1 8,248 K
explorer.exe 2460 Console 1 62,516 K
LicensingUI.exe 3052 Console 1 14,520 K
VBoxTray.exe 1776 Console 1 6,356 K
wlrmdr.exe 2840 Console 1 4,592 K
msdtc.exe 1588 Services 0 6,716 K
WmiPrvSE.exe 3008 Services 0 8,460 K
taskhostex.exe 1612 Services 0 4,776 K
taskhost.exe 1664 Services 0 14,132 K
TrustedInstaller.exe 300 Services 0 5,200 K
TiWorker.exe 792 Services 0 54,308 K
wsmprovhost.exe 1608 Services 0 57,904 K
cmd.exe 1996 Services 0 2,032 K
conhost.exe 3468 Services 0 3,048 K
powershell.exe 3216 Services 0 53,140 K
powershell.exe 3484 Services 0 54,916 K
java.exe 1552 Services 0 82,564 K
elasticsearch-service-x64 3944 Services 0 1,315,468 K
svchost.exe 1660 Services 0 2,948 K
powershell.exe 968 Services 0 52,672 K
conhost.exe 1104 Services 0 3,656 K
tasklist.exe 3392 Services 0 5,480 K
] stderr = []>
<org.elasticsearch.packaging.util.Shell$Result exitCode = [1] stdout = [] stderr = [Wait-Process : Cannot find a process with the process identifier 3356.
At line:1 char:1
+ Wait-Process -Id 3356 -Timeout 30
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (3356:Int32) [Wait-Process], ProcessCommandException
+ FullyQualifiedErrorId : NoProcessFoundForGivenId,Microsoft.PowerShell.Commands.WaitProcessCommand
]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment