OutOfMemory exception in a lot of memory
问题 Sorry for the bad question name but i couldn't find anything better. I have some code long heapFreeSize = Runtime.getRuntime().freeMemory(); URL url = new URL("http://example.com"); URLConnection myUrlConnection = url.openConnection(); GZIPInputStream gZIPInputStream = new GZIPInputStream(myUrlConnection.getInputStream()); StringBuffer decompressedStringBuffer = new StringBuffer(); int bytes_read; int bufferSize; heapFreeSize = Runtime.getRuntime().freeMemory(); while ((bytes_read =