Quantcast
Channel: MSDN Blogs
Viewing all articles
Browse latest Browse all 12366

Taking a crash dump file for node.exe, java.exe using the procdump tool on Azure webapp

$
0
0

Sometimes the process on Azure web app crash and there is no way to understand what happen. On browser, it just shows 500 error. To analyze further, we can take the process dump using the procdump tool, which is already present on the Azure web app environment.

We can analyze the process dump using Visual Studio to understand the root cause of the issue.

Follow these steps for the dump -

 

1. Open the Kudu console using the "scm" text azure the webapp name. For eg http://<my web app name>.scm.azurewebsites.net

2. Browse to the Process Explorer Page -

 

3. Note down the process id for the process like node.exe or java.exe.

4. Go to the DebugConsole by clicking on the Debug console menu option and selecting CMD in that.

5. Change the directory to D:\devtools\sysinternals using the command prompt.

Run the below command -

procdump -accepteula -ma <proc id for your process> -t D:\home\site\wwwroot\mydmp.dmp

 

Here the option "t" stands for terminate. So whenever, your process crashes the dump will be generated in the mydmp.dmp file.

For more options please refer - https://technet.microsoft.com/en-us/sysinternals/dd996900.aspx

You can then download the dump file and open it using Visual studio to get more details for the root cause of the crash.

 

 


Viewing all articles
Browse latest Browse all 12366

Trending Articles