简体   繁体   中英

Java Heap Memory Error for processing large files

While processing Large file i am getting Java Heap Memory error. I am developing tool which checks specified regex on each line/sheet from file. It works fine for below 2mb files but when i process large size files it gives error.

Application uses recursive function to loop on Files and folders.

Please help me with this, because i need to run it on multiple user system.

try increasing the java heap size by setting Xmx. for example: -Xms256m -Xmx2048m

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM