#20 Memory exhausted - Downloads & Web_Links

closed
None
5
2002-08-12
2001-11-08
No

could you take a look? thanks! maybe its something to watch out for in general..

Large modules should be split into admin and user sub-
modules.

My host provider, like many, has a quota limit of 3MB
per PHP transaction. Most of the PN modules are tiny
<10K affairs but Downloads and Web_Links are around
130Kb in size.

I believe it is the compile/code segment alone that is
exceeding the quota limit on some servers. Attempts to
run the modules result in messages such as

Fatal error: Allowed memory size of 3145728 bytes
exhausted (tried to allocate 737280 bytes)
in /raid/domains/de/t/tonefilm/htdocs/www/Mutant_64/htm
l/modules/Downloads/index.php on line 1624

Looking through the code it would seem possible to
modularise these 130K monsters into a series of
conditional include modules. For example admin
functions and the user functions could be spearated so
the memory footprint would be reduced and transaction
speed significantly increased?

Discussion

  • Daniel Drury
    Daniel Drury
    2002-04-09

    Logged In: YES
    user_id=498193

    I'm fairly new to PHP and MySQL.

    130k is still a very small file. I do not believe it has
    anything to do with the size of the code (or very little).
    Some of the modules (I know that downloads does it), make
    SQL queries that can return large amounts of data (eg; the
    whole downloads_downloads table) which may be making the
    memory requirements for the script very high.

     
  • Johnny Robeson
    Johnny Robeson
    2002-08-12

    • assigned_to: nuncanada --> johnnyrocket
    • status: open --> closed