Questions about memory errors when using Phpexcel

Source: Internet
Author: User
Recently need to make a report program, need to combine with Excel, so chose a PHP processing Excel library, the name is Phpexcel.
However, Phpexcel is always prone to memory errors and memory problems are serious. I just imported a 2M file and consumed 40M of memory.
When I write this data back to Excel, it takes up more, close to 300M of memory.

So in the online search, there is said to modify its files, plus the release of memory code. But not very effective.

Later, I looked for a way to set up the cache, but it didn't work.

Later I was going to write to excel in sections, but I didn't see how to append it, and each time the default was overwrite.

Who has the phpexcel approach to handling high memory usage? Or a method for writing a segmented write to an Excel file. In short, as long as less memory is not very good.


Reply to discussion (solution)

All right... I have the same problem with you ... seek to solve

Khan, I also met.

I am the same problem, the same request

The same request????? , the use of the Daniel, to help solve the next

  • 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.