Async File IO | Concurrency Deep Dives
Blowing up memory
Conceptually, regardless where the IO is done, async file IO will be vulnerable to "memory crashes". If you submit IO writes faster than the filesystem or disk is able to process, the data must necessarily be stored somewhere. If they are stored in user-space buffers on the Java side, then OutOfMemory errors occur.
This is fundamentally different from the traditional blocking IO. When the reads/writes occurs synchronously, the calling thread cannot execute a new operation until...
Read more at cmhteixeira.com