Need to run a heap dump from container portal-pssg
CA Developer Portal 5.2, 5.3
Debian GNU/Linux 12 (bookworm)
CA API Gateway 11.x
1. Identify the container Id with command : docker ps
ie:
834e4b8db927 caapim/pssg:5.3
2. then run the command line :
ie :
docker exec -it 834e4b8db927 /bin/bash
to access the container gateway at Portal server
3. from within container gateway use the following command
/usr/lib/jvm/default-jvm/jcmd/bin/jmap
ie :
bash-5.1$ /usr/lib/jvm/default-jvm/jcmd/bin/jmap -dump:live,format=b,file=/tmp/heapdump_1729124495/heap.hprof com.l7tech.server.boot.GatewayMain
Dumping heap to /tmp/heapdump_1729124495/heap.hprof ...
Heap dump file created [353228172 bytes in 2.571 secs]
Note: com.l7tech.server.boot.GatewayMain need to be used as there is no ps command in the container.
4. copy the heap dump to a folder on a laptop.
ie :
PS C:\Users\myusername> docker cp 78d6e01f11d4:/tmp/heapdump_1729124495/heap.hprof C:\temp
Successfully copied 353MB to C:\temp