Java poi Excel reads Big Data

Source: Internet
Author: User

When using poi technology to read a large amount of Excel Data, there will always be a memory overflow. I have found many ways on the Internet, which cannot be better solved in many ways. Finally, I found a better solution. After modifying the JVM, I doubled it to read more than 60 thousand pieces of data in 20 columns.

Modify the location of Tomcat Catalina. BAT as follows (modify Catalina. Sh in Linux ):

Set _ execjava = % _ runjava %
Set mainclass = org. Apache. Catalina. startup. Bootstrap
Set action = start
Set security_policy_file =
Set debug_opts =
Set JPDA =

Add set java_opts =-xms512m-xmx1024m to the end. After setting tomcat, you need to set myeclipse. The method for setting myeclipse is as follows:

Window --> prinference --> myeclipse --> servers --> Tomcat 6.0 --> JDK

Enter-xms512m-xmx1024m in optional Java VM arguments on the right.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.