I am using below command to obtain procdump dump file when a service hangs but it not doing anything
procdump -64 -ma -t -n 2 -s 10 MyProcess.exe C:\myprocess.exe.dmp
I am using below command to obtain procdump dump file when a service hangs but it not doing anything
procdump -64 -ma -t -n 2 -s 10 MyProcess.exe C:\myprocess.exe.dmp
It's not doing anything because you didn't tell it to. Your parameters tell procdump to take two 64bit full-memory dumps (-64 -ma -n 2) 10 seconds apart (-s 10) when the process terminates (-t), not hangs.
Unfortunately, I'm not sure procdump can help you here. The hang parameter (-h) triggers when the app "does not respond window messages for at least 5 seconds" -- but a service has no window, and so presumably would never trigger this.