Any ideas how to determine the number of active threads currently running in an ExecutorService?
Assuming pool is the name of the ExecutorService instance:
pool
if (pool instanceof ThreadPoolExecutor) { System.out.println( "Pool size is now " + ((ThreadPoolExecutor) pool).getActiveCount() ); }