How to Dump a .NET Core Application on Linux

后端 未结 4 1676
余生分开走
余生分开走 2021-01-07 19:12

I have a .NET application that I have ported to .NET Core. I am testing it on Ubuntu 14.04.

I am trying to figure out how to get a .dmp file or the Linux equivalent

4条回答
  •  感动是毒
    2021-01-07 19:32

    you want a core dump, this is built into the OS.

    first ulimit -Sc unlimited as the user you want to run the process as so allow creating a core file of any size. Then kill -4

    This should generate the core dump. It should probably be in the directory where the process was run from.

    If you can't login as the user the application runs as, you will need to put this into limits.conf.

提交回复
热议问题