Mario, can you please take a look at this one? Is this still happening in 6?
As evidenced by Toshiya the biggest part of this memory occupation is caused by the conversion of InputStreams to Strings. Unfortunately I don't think this is avoidable. Moreover there are many ways to perform this conversion, but as for example reported here: http://www.journaldev.com/706/how-to-convert-inputstream-to-string-in-java we are apparently already using the most memory efficient one. I can't find a way a to improve this issue but any other suggestion is welcome.
closed as won't fix, see comment 6.