https://gist.github.com/fancellu/780d7c3dab1a8309f561 I'm trying to pull in some XML events, and stop after a few. Blocks on ProducerConsumerIterator.produce If I take out the Thread.sleep, it works fine. Any idea why? Is this a known "feature" ? Also, on a big (4GB) xml file, er.stop doesn't even stop it, seems to run to end of file This isn't really what I want out of streaming. Any help would be appreciated. Thanks.