| title | Troubleshooting a hang or crash with SSMS |
|---|---|
| ms.prod | sql |
| ms.prod_service | sql-tools |
| ms.reviewer | dnethi |
| ms.technology | ssms |
| ms.topic | conceptual |
| ms.assetid | c28ffa44-7b8b-4efa-b755-c7a3b1c11ce4 |
| author | markingmyname |
| ms.author | maghan |
| ms.custom | seo-lt-2019 |
| ms.date | 09/18/2019 |
[!INCLUDEApplies to]
Get a full memory dump of SQL Server Management Studio (SSMS) when it hangs or crashes.
To capture diagnostic information to troubleshoot a crash or a hang of SSMS, follow the steps below.
-
Download ProcDump.
-
Unzip the download into a folder.
-
Open the command prompt and run the following command.
<PathToProcDumpFolder>\procdump.exe -e -h -ma -w ssms.exeIf it prompts you to accept a license agreement, select Agree.
-
Start SSMS, if it hasn't started already.
-
Reproduce the issue.
-
The text should appear in the cmd prompt about writing the dump file, wait for that to finish.
-
Create a new folder and copy the *.dmp file that is written out to that folder.
-
Copy the following files into the same folder.
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscordacwks.dll" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\SOS.dll" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll"
-
Zip up the folder
Get a full memory dump of SSMS when it throws an OutOfMemoryException.
You can get a full memory dump with any managed exception.
To capture diagnostic information to troubleshoot an OutOfMemoryException from SSMS, follow the steps below.
-
Download ProcDump.
-
Unzip the download into a folder.
-
Open Command Prompt and run the following command.
<PathToProcDumpFolder>\procdump.exe -e 1 -f System.OutOfMemoryException -ma -w ssms.exeIf it prompts you to accept a license agreement, select Agree.
-
Start SQL Server Management Studio if not started already.
-
Reproduce the issue.
-
The text should appear in the cmd prompt about writing the dump file, wait for that to finish.
-
Create a new folder and copy the *.dmp file that is written out to that folder.
-
Copy the following files into the same folder.
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscordacwks.dll" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\SOS.dll" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll"
-
Zip up the folder.