[root@localhost data]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ca34c9274d99 aspnetapp "dotnet AspNetWebApi…" 20 seconds ago Exited (139) 9 seconds ago aspnetcore_sample
[root@localhost data]# docker logs ca34c9274d99 ... at AspNetWebApi.Program.Test(System.String) at AspNetWebApi.Program.Test(System.String) at AspNetWebApi.Program.Test(System.String) at AspNetWebApi.Program.Test(System.String) at AspNetWebApi.Program+<>c.b__0_0() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task+<>c.<.cctor>b__272_0(System.Object) at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread) at System.Threading.Tasks.Task.ExecuteEntryUnsafe(System.Threading.Thread) at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart() at System.Threading.Thread.StartCallback()
[createdump] Gathering state for process 1 dotnet [createdump] Crashing thread 0017 signal 6 (0006) [createdump] Writing full dump to file /dumps/1-dotnet-ca34c9274d99-1687746929.dmp [createdump] Written 261320704 bytes (63799 pages) to core file [createdump] Target process is alive [createdump] Dump successfully written
[root@localhost data2]# cd /data2 [root@localhost data2]# ls -ln total 255288 -rw-------. 1 0 0 261414912 Jun 26 10:35 1-dotnet-ca34c9274d99-1687746929.dmp
[root@localhost data]# docker rm -f aspnetcore_sample aspnetcore_sample [root@localhost data]# docker run -it --rm -p 5001:5001 --privileged -v /data2:/dumps --name aspnetcore_sample aspnetapp ProcDump v1.5 - Sysinternals process dump utility Copyright (C) 2023 Microsoft Corporation. All rights reserved. Licensed under the MIT license. Mark Russinovich, Mario Hewardt, John Salem, Javid Habibi Sysinternals - www.sysinternals.com
Monitors one or more processes and writes a core dump file when the processes exceeds the specified criteria.
[02:57:34 - INFO]: Waiting for processes 'dotnet' to launch
[02:57:34 - INFO]: Press Ctrl-C to end monitoring without terminating the process(es). Process Name: dotnet CPU Threshold: n/a Commit Threshold: >=30 MB Thread Threshold: n/a File Descriptor Threshold: n/a Signal: n/a Exception monitor Off Polling Interval (ms): 1000 Threshold (s): 10 Number of Dumps: 1 Output directory: /dumps [02:57:34 - INFO]: Starting monitor for process dotnet (9) info: Microsoft.Hosting.Lifetime[14] Now listening on: http://[::]:5001 info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down. info: Microsoft.Hosting.Lifetime[0] Hosting environment: Production info: Microsoft.Hosting.Lifetime[0] Content root path: /app/ [02:57:35 - INFO]: Trigger: Commit usage:48MB on process ID: 9 [createdump] Gathering state for process 9 dotnet [createdump] Writing full dump to file /dumps/dotnet_commit_2023-06-26_02:57:35.9 [createdump] Written 254459904 bytes (62124 pages) to core file [createdump] Target process is alive [createdump] Dump successfully written [02:57:35 - INFO]: Core dump 0 generated: /dumps/dotnet_commit_2023-06-26_02:57:35.9 [02:57:36 - INFO]: Stopping monitors for process: dotnet (9)
[root@localhost data2]# ls -lh total 243M -rw-------. 1 root root 243M Jun 26 10:57 dotnet_commit_2023-06-26_02:57:35.9
ProcDump v1.5 - Sysinternals process dump utility Copyright (C) 2023 Microsoft Corporation. All rights reserved. Licensed under the MIT license. Mark Russinovich, Mario Hewardt, John Salem, Javid Habibi Sysinternals - www.sysinternals.com
Monitors one or more processes and writes a core dump file when the processes exceeds the specified criteria.
[03:35:56 - INFO]: Waiting for processes 'dotnet' to launch
[03:35:56 - INFO]: Press Ctrl-C to end monitoring without terminating the process(es). Process Name: dotnet CPU Threshold: >= 20% Commit Threshold: n/a Thread Threshold: n/a File Descriptor Threshold: n/a Signal: n/a Exception monitor Off Polling Interval (ms): 1000 Threshold (s): 5 Number of Dumps: 2 Output directory: /dumps [03:35:56 - INFO]: Starting monitor for process dotnet (8) info: Microsoft.Hosting.Lifetime[14] Now listening on: http://[::]:5001 info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down. info: Microsoft.Hosting.Lifetime[0] Hosting environment: Production info: Microsoft.Hosting.Lifetime[0] Content root path: /app/