thread pool starvation
1.0.0
ASPNET應用程序樣本以檢測ThreadPool飢餓使用:
dotnet-countersdotnet-stackheydotnet-monitorprometheusgrafana使用Docker運行應用程序
docker compose up app
使用dotnet-counters監視應用程序
docker exec -it thread-pool-test-app dotnet-counters monitor -n dotnet
要獲得dotnet-stack運行以下
docker exec -it thread-pool-test-app dotnet-stack report -n dotnet
運行該應用程序將使用dotnet-monitor啟動一個容器。該容器是設置的,以通過診斷端口從應用程序容器中獲取診斷命令。 dotnet監視器通過有用信息公開端點:
似乎可以在這裡進行完整列表:https://github.com/dotnet/dotnet-monitor/blob/main/main/documentation/api/readme.md。
指標端點以普羅米修斯博覽會格式捕獲指標。
開始使用Grafana使用命令bellow:
docker compose up grafana
與Prometheus DataSource一起編寫的Grafana,社區提供了dotnet-Monitor儀表板。啟動後,請訪問http:// localhost:3000/dashboards(用戶: admin ,密碼: admin )
啟動打擊同步端點的負載測試
docker compose up send-load-sync
啟動打擊異步端點的負載測試
docker compose up send-load-async