JDK

FileInputStream.read() throws OutOfMemoryError when there is plenty available