Can't generate .Net Core app heapdump on Linux Diego Cell prior to TAS 2.11.2
search cancel

Can't generate .Net Core app heapdump on Linux Diego Cell prior to TAS 2.11.2

book

Article ID: 297866

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

For .NET Core apps deployed on Linux OS, there are two approaches for generating heapdump: 
 

  • Integrate a Steeltoe framework and use the /heapdump management endpoint
  • Use the dotnet-dump tool. In this case, dotnet SDK and dotnet-dump utility have to be installed in Diego cell or container to capture heapdump with `dotnet-dump collect -p PID -o DUMP_FILE`. In addition, source-based deployment is not supported by `dotnet-dump`. 

The above approaches do not work on TAS (prior to v2.11.2) Linus Diego Cell at this point because they both require CAP_SYS_PTRACE capacity on the OS which is disabled by the container hardening rules. 

The problem has been resolved in TAS versions 2.11.2 and above; heapdump is now supported on TAS Linux Diego Cell.  


Environment

OS: Linux