Home
Sign Up
Sign In
V2EX
›
Java
不懂就问, Java 读取大文件字节内存溢出怎么优化
hearthoo
·
Aug 12, 2020
· 2474 views
This topic created in 2164 days ago, the information mentioned may be changed or developed.
MultipartFile 有一个 getBytes() 方法,是将文件读取到内存中,文件大了就内存溢出,该如何优化
溢出
读取
文件
内存
2 replies
•
2020-08-12 10:21:20 +08:00
1
jakes
Aug 12, 2020 via iPhone
使用 MappedByteBuffer,内存映射文件
2
wysnylc
Aug 12, 2020
http://wbnbd.com/?q=MultipartFile%20oom
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
1174 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 35ms ·
UTC 23:25
·
PVG 07:25
·
LAX 16:25
·
JFK 19:25
♥ Do have faith in what you're doing.
❯