https://github.com/georgeosddev/samplebuggyapp
Sample buggy app for .NET Core diagnostic scenario
https://github.com/georgeosddev/samplebuggyapp
Last synced: 2 months ago
JSON representation
Sample buggy app for .NET Core diagnostic scenario
- Host: GitHub
- URL: https://github.com/georgeosddev/samplebuggyapp
- Owner: georgeOsdDev
- Created: 2024-03-31T02:33:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-05T23:42:56.000Z (12 months ago)
- Last Synced: 2025-01-20T19:33:27.880Z (4 months ago)
- Language: C#
- Size: 936 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample buggy app for .NET Core diagnostic scenario
Deployed at https://toshida-dotnet-buggyapp.azurewebsites.net/
# APIs
## [Slow Request](https://toshida-dotnet-buggyapp.azurewebsites.net/api/SlowRequest/)
- Sleep `n` sec [/api/SlowRequest/sleep/{n}](https://toshida-dotnet-buggyapp.azurewebsites.net/api/SlowRequest/sleep/1)
- Wait external dependency `n` sec [/api/SlowRequest/waitExternalDependency/{n}](https://toshida-dotnet-buggyapp.azurewebsites.net/api/SlowRequest/waitExternalDependency/1)
- Wait external dependency `n` sec in async [/api/SlowRequest/waitExternalDependencyAsync/{n}](https://toshida-dotnet-buggyapp.azurewebsites.net/api/SlowRequest/waitExternalDependencyAsync/1)
- Wait `n` sec [/api/SlowRequest/wait/{n}](https://toshida-dotnet-buggyapp.azurewebsites.net/api/SlowRequest/wait/1)
- Wait `n` sec in async [/api/SlowRequest/waitAsync/{n}](https://toshida-dotnet-buggyapp.azurewebsites.net/api/SlowRequest/waitAsync/1)## [Exception](https://toshida-dotnet-buggyapp.azurewebsites.net/api/Exceptions/)
- Throw exception [/api/Exception/throw](https://toshida-dotnet-buggyapp.azurewebsites.net/api/Exception/throw)
- Throw unhandle exception [/api/Exception/throwUnhandled](https://toshida-dotnet-buggyapp.azurewebsites.net/api/Exception/throw)
- Crash application [/api/Exception/crash](https://toshida-dotnet-buggyapp.azurewebsites.net/api/Exception/crash)
- Exit application [/api/Exception/exit](https://toshida-dotnet-buggyapp.azurewebsites.net/api/Exception/exit)## [Locked Request](https://toshida-dotnet-buggyapp.azurewebsites.net/api/Lock)
- Do deadlock [/api/Lock/deadlock](https://toshida-dotnet-buggyapp.azurewebsites.net/api/Lock/deadlock)
- Wait single semaphore [/api/Lock/semaphore](https://toshida-dotnet-buggyapp.azurewebsites.net/api/Lock/semaphore)
- Wait unavilable semaphore [/api/Lock/semaphoreUnavailble](https://toshida-dotnet-buggyapp.azurewebsites.net/api/Lock/semaphoreUnavailble)## [Metric spikes](https://toshida-dotnet-buggyapp.azurewebsites.net/api/Spike)
- CPU spike `n` sec [/api/Spike/memspike/{n}](/api/Spike/cpuspike/1)
- Memory spike `n` sec [/api/Spike/memspike/{n}](/api/Spike/memspike/1)
- Leak memory[/api/Spike/memleak](https://toshida-dotnet-buggyapp.azurewebsites.net/api/Spike/memleak)# Build
`cd dotnet8app && dotnet publish -c Release -o ./bin/Publish`
# Diagnostic
Under writing...
# References
- https://learn.microsoft.com/en-us/troubleshoot/developer/webapps/aspnetcore/practice-troubleshoot-linux/lab-1-1-reproduce-troubleshoot
- https://learn.microsoft.com/en-us/dotnet/core/diagnostics/debug-memory-leak