What is the issue of out of memory?

Source: Internet
Author: User
This post was last edited by billykame723 on 2013-09-12 19:08:44

What's the problem, please?
Fatal Error:out of memory (allocated 1458044928) (tried to allocate 2496 bytes) in G:\education\class\simplehtmldom\simpl e_html_dom.php on line 1180
Php. INI has been modified.
Memory_limit = 1128M

Add in Code
Set_ini ("Memory_limit", "1");
No, it's a solution!


Reply to discussion (solution)

Memory is out of bounds, maybe your code needs to be optimized.

Reduce it appropriately.
MaxClients
Maxrequestsperchild
Maxkeepaliverequests
The value

Decrease the value of the KeepAliveTimeout.

In addition, optimize the code, the variables after the altogether unset () and null a bit.

Simplehtmldom ..... Mad memory .... You can unset unset.

Check your program and execute the timeout.

You have set up, that the memory has changed, but the program is still a problem, it means that your program write a problem, output, see what the reason

I also met before, is IE and FF to the SESSION of different processing, ie default is $_session["XX"][0], and FF is $_session["XX" [], to define their own subscript, do not know whether you have Help

How big a project it will be memory overflow ah ... In the query is remember to release the result set ....

Menu: Project>options>delphi compoler>linking > Right debug information> set to False

The memory is gone? It is generally the first check under your program, see what is unreasonable place.

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