MemorySinkSource mem = FlumeBenchmarkHarness.synthInMem();
b.mark("disk_loaded");
FlumeConfiguration conf = FlumeConfiguration.get();
final AvroEventSource tes = new AvroEventSource(conf.getCollectorPort());
tes.open();
// need to drain the sink otherwise its queue will fill up with events!
Thread drain = new Thread("drain") {
public void run() {
try {
EventUtil.dumpAll(tes, new NullSink());