Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

FileChannelImpl::map() limits size to Integer.MAX_VALUE

user-s8k43Aug 1 2023

FileChannelImpl::map() limits size to Integer.MAX_VALUE that is 2 GB. This limitation we see in all java versions until 20. Is there a specific reason for this limit because in my usecase I am looking to memory map files larger than 10 GB of size. Any further details can be produced if required.

Comments
Post Details
Added on Aug 1 2023
0 comments
562 views