Thứ Hai, 4 tháng 8, 2025

[IIS][ASP.NET] Cách TroubleShooting nguyên nhân gây lỗi crash w3wp.exe (crash pool) trên window

Thực trạng : 1 website chỉ bị lỗi sau khi đăng nhập vào trang quản trị. Mỗi khi đăng nhập vào quản trị thì sẽ làm crash pool (web 503 hoặc treo hoàn toàn website)

Kiểm tra

Tham khảo : https://learn.microsoft.com/en-us/troubleshoot/developer/webapps/iis/site-behavior-performance/process-termination-crash

Cách 1 : sử dụng Event Viewer Log

Kiểm tra Event Viewer -> System sẽ có log tương tư

A process serving application pool '****' suffered a fatal communication error with the Windows Process Activation Service. The process id was '21720'. The data field contains the error number.

Với lỗi này. process w3wp.exe đã bị crash. và để kiểm tra nguyên nhân crash thì xem trong Event Viewer -> Application , chọn Filter :

- Event Source : Application Error

- Event ID : 1000

Khi đó sẽ xem được lỗi crash process chi tiết (cách này áp dụng được cho toàn bộ các loại ứng dụng trên window)


Tới đây xác định được lỗi và tiến hành tìm hiểu theo log trên.


Cách 12 : sử dụng Debug Diagnostic Tool 

- Kiểm tra lỗi crash bằng Tool và Export Dump file :

https://learn.microsoft.com/en-us/troubleshoot/developer/webapps/iis/site-behavior-performance/process-termination-crash#debug-diagnostic-tool


- Phân tích kết quả từ File dump export ở bước trên :

https://learn.microsoft.com/en-us/troubleshoot/developer/webapps/iis/site-behavior-performance/process-termination-crash#how-to-perform-data-analysis




 

Với lỗi crash w3wp.exe và module pcre.dll trên server chạy Plesk thì là do ModSecurity. Cần tắt đi hoàn toàn ModSecurity trên site. Để chế độ "Detection only" vẫn bị lỗi

Tham khảo : https://stackoverflow.com/questions/79686656/iis-asp-net-umbraco-exception-on-on-w3wp-exe-and-pcre-dll

 




Không có nhận xét nào: