JVMTIInterface jvmti = new JVMTIInterface();
Map inventory1=jvmti.produceInventory();
log.info("Producing first snapshot");
produceMessages(sess, prod, NUM_MESSAGES, cons);
log.info("Producing second snapshot");
jvmti.forceReleaseOnSoftReferences();
jvmti.forceGC();
Map inventory2 = jvmti.produceInventory();
log.info("inventory1.size=" + inventory1.size());
log.info("inventory2.size=" + inventory2.size());