Continually creating and deleting Web Agents via Amster exhausts heap memory leading to a 502 Bad Gateway error.
AM 5.0.0, Tomcat 8, Java 8, 2Gb Max heap
DS 5.0.0 separate external config and user stores
index-entry-limit > 1500, ds-rlim-size-limit > 1500
Via Amster scripts, create 1500 Web Agents then delete them. Repeat 10 times.
Restart container before heap is exhausted.
Snapshots of heap-dump reports attached.