Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Mar 2015
    Posts
    165
    Plugin Contributions
    0

    Default php fatal errors memory etc.

    version 1.5.7.c, the latest

    Request URI: /index.php?reviews_id=541, IP address: 157.55.39.20
    PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 16384 bytes) in /var/www/vhosts/domain.com/httpdocs/includes/classes/db/mysql/query_factory.php on line 44.

    I have looked in my log and have cleared every php error log that is possible. the only remaining ones are these that keep popping up. i know it is more of a server issue but could someone possibly point me in the right direction? the URLs vary. this is just an example when someone i guess goes to a url and then the error is next.

    Server Host: mail.domain.com (127.0.0.1)
    Database: domain
    Server OS: Linux 2.6.32-754.35.1.el6.x86_64
    Server Date: 11/08/2021 22:33:49
    Server Up Time: Disabled/Unavailable
    HTTP Server: Apache
    PHP Version: 7.0.33 (Zend: 3.0.0)
    PHP File Uploads: On
    Upload Max Size: 128M
    PHP Memory Limit: 128M
    POST Max Size: 128M
    Database Engine: MySQL 5.1.73
    Database Host: localhost (127.0.0.1)
    Database Date: 11/08/2021 22:33:49
    Database Data Size: 170,372 kB
    Database Index Size: 45,804 kB
    MySQL Slow Query Log Status: On
    MySQL Slow Query Log File: /var/run/mysqld/mysqld-slow.log
    MySQL Mode: (None set)

    and t i a
    Last edited by travbacon; 9 Nov 2021 at 06:37 AM.

  2. #2
    Join Date
    Mar 2015
    Posts
    165
    Plugin Contributions
    0

    Default Re: php fatal errors memory etc.

    here's currently what's going on
    memory usage, total 7.59 gb
    used 2.40 gb
    free 5.19 gb
    shared 0 gb
    buffer 144.04 mb
    cached 1.19 gb
    usage 15.89%

    swap usage total 4.00gb, used 0gb, free 4.00gb usage 0%

    hard disk usage
    total 934247.68 mb
    used 20985.70mb
    available 865798.38 mb
    capacity 2.25%

    it's a dedicated unmanaged server

    again t i a

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: php fatal errors memory etc.

    Increase this:
    > PHP Memory Limit: 128M

    Set it to 1024M at least.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Mar 2015
    Posts
    165
    Plugin Contributions
    0

    Default Re: php fatal errors memory etc.

    you are too smart. i will give this a try and report back

  5. #5
    Join Date
    Mar 2015
    Posts
    165
    Plugin Contributions
    0

    Default Re: php fatal errors memory etc.

    Quote Originally Posted by swguy View Post
    Increase this:
    > PHP Memory Limit: 128M

    Set it to 1024M at least.
    Allowed memory size of 536870912 bytes exhausted (tried to allocate 65536 bytes) in Unknown on line 0

    Should I double it?

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: php fatal errors memory etc.

    Are you looking at your traffic and making sure you're not getting overwhelmed by junk and spiders?
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Mar 2015
    Posts
    165
    Plugin Contributions
    0

    Default Re: php fatal errors memory etc.

    I'm getting stupid stuff like this constantly all different from different ips. i am adding to .htaccess constantly which helps

    order allow,deny
    deny from 173.218.127.89
    deny from 173.218.127.89
    deny from 173.218.127.89
    deny from 173.218.127.89
    deny from 173.218.127.89
    deny from 173.218.127.89
    deny from 173.218.127.89
    allow from all

    http://www.domain.com/category-c-290...xslider.min.js (this is an example)

    i don't know any other way of blocking these ips

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: php fatal errors memory etc.

    You might want to talk with your hoster to see if they offer country level blocking.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  9. #9
    Join Date
    Mar 2015
    Posts
    165
    Plugin Contributions
    0

    Default Re: php fatal errors memory etc.

    oops edited, wrong reply

  10. #10
    Join Date
    Mar 2015
    Posts
    165
    Plugin Contributions
    0

    Default Re: php fatal errors memory etc.

    for future reference those looking i found this

    https://www.ip2location.com/free/visitor-blocker

    you can enter the country and it will generate the block deny whatever so you can add it to your htaccess file

    i am going to start with the chinese commies

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h PHP Out of memory errors
    By jgold723 in forum General Questions
    Replies: 14
    Last Post: 9 Jul 2014, 06:14 PM
  2. Replies: 12
    Last Post: 17 Mar 2014, 11:10 PM
  3. v150 PHP Fatal error: Out of memory in includes/modules/attributes.php
    By donnyb in forum General Questions
    Replies: 0
    Last Post: 6 Apr 2012, 12:15 AM
  4. Replies: 1
    Last Post: 9 Oct 2011, 06:24 AM
  5. Getting Fatal error: Out of memory on meta_tags.php
    By jds580s in forum General Questions
    Replies: 8
    Last Post: 29 Oct 2007, 08:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR