I need to do some performance tests of an application in a remote AWS
cluster. I've been asked to measure the maximum memory usage of the tasks in the task queue of a Java Thread Pool obtained using Executors.newScheduledThreadPool(1)
.
I know that I can get the number of tasks in the queue using the Executor
interface, but I don't know how to measure the memory usage of a single task, so I can't calculate the maximum usage.