memory overusage, modification required ($$)

Help
Paco
2012-08-06
2013-05-28
  • Paco

    Paco - 2012-08-06

    Hello, thank you for this useful project.
    With 3100 movies and above home stops showing movie list even with limited results per page.

    I noticed in error_log entries such as the following:
    PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 40 bytes) in /home/strombol/public_html/cat/lib/Database.class.php on line 40
    referencing:
    protected function fillObject($obj, $row)

    I am running php4dvd on a server with 32MB memory limit for php scripts.
    How complicated would it be change that class so it would reduce significantly memory usage?
    If anyone can issue an estimate I would allocate some budget to implement that modification.

     
  • qwerty759

    qwerty759 - 2012-11-22

    Try to increase the memory limit in php.ini to 128 mb if you can:

    ; Maximum amount of memory a script may consume (128MB)
    ; http://php.net/memory-limit
    memory_limit = 128M

     
  • Paco

    Paco - 2012-11-22

    Increasing the memory limit is not advisable if you expect to have more than a few concurrent users. I experienced "500 Internal server error" errors simultaneously to memory usage peaks.
    With the modification implemented memory usage decreased significantly (about 16 times less memory for about 4000 movies).
    If you are interested just let me know.
    Cheers,
    Paco

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks