I am looking for a utility to generate memory dump for my containerized .net applications running on aws eks
We are planning to use createdump or dotnet-dump utility.
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.14.2
PRETTY_NAME="Alpine Linux v3.14"
HOME_URL="https://alpinelinux.org/"
Suggestions are welcome.
If you want to automatically generate dumps upon crash, you might use the
createdumpwith appropriate environment variables set to fit your need. For details please refer to Collect dumps on crash.If you just want to manually generate dumps then either
createdumpordotnet-dumpwill do.And since you are running the applications in container, you will need to add the
PTRACEcapability via--cap-add=SYS_PTRACEor--privilegedwhen you start the container.Another utility
ProcDumpallows dump generation by rules (e.g., generate dump when low memory or CPU high) which is similar to the DebugDiag in Windows. However I am not sure if Alpine distro is capable to run it or not, as itis not listed in the install guide.