Skip to content

Commit

Permalink
docs add install_dotmemory_in_container.md file
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaYu committed May 21, 2023
1 parent 1a9b3fe commit c28db79
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions doc/dotmemory/install_dotmemory_in_container.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
```shell
#install
docker exec -it aef2acae87dd /bin/bash
cd /
mkdir dotmemory
cd dotmemory
mkdir bin
cd bin
apt-get update -y
apt-get install -y wget
wget -O dotMemoryclt.zip https://www.nuget.org/api/v2/package/JetBrains.dotMemory.Console.linux-x64/2021.3.2
apt-get install -y unzip && unzip dotMemoryclt.zip -d ./dotMemoryclt
chmod +x -R dotMemoryclt/*

#collecting
apt-get update && apt-get install procps
ps aux

cd /dotmemory/bin/dotMemoryclt/tools
./dotMemory.sh get-snapshot 1 --save-to-dir=Snapshots
exit

#move dump file
docker cp aef2acae87dd:/dotmemory/bin/dotMemoryclt/tools/Snapshots/[1]-dotnet.2023-05-19T22-54-53.166.dmw /dotmemory.dmw




```

0 comments on commit c28db79

Please sign in to comment.