I keep getting these messages "PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 64 bytes)"I've increased the PHP memory twice and is now at 512M. The errors go away for while then start up again.Is this something to be concerned about? It doesn't seem to affect the performance of OST.Kent

What version of osTicket?What version of PHP?How many tickets do you have?Whats the rest of the error?Please help us to help you by reading and following the posting

guidelines located in this thread: Please read before requesting assistance.  The more information you give us the better we will be able to assist you. Thank you.

version 1.9.8.1PHP 5.4.16122 open tickets, 745 closedThe following is a tail -10 of the error log. PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 3 bytes) in /var/www/html/support/include/class.filter.php on line 325, referer: http://csc/support/scp/tickets.php?status=open PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 77 bytes) in /var/www/html/support/include/class.orm.php on line 1064, referer: http://csc/support/scp/tickets.php?id=2261&a=edit PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /var/www/html/support/include/class.filter.php on line 170, referer: http://csc/support/scp/tickets.php?id=2263 PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in /var/www/html/support/include/mysqli.php on line 217, referer: http://csc/support/scp/tickets.php?id=2267&a=edit PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in /var/www/html/support/include/mysqli.php on line 217, referer: http://csc/support/scp/tickets.php?id=2271&a=edit PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 1456 bytes) in /var/www/html/support/include/class.orm.php on line 1097, referer: http://csc/support/scp/tickets.php?id=2275&a=edit AH00052: child pid 31606 exit signal Segmentation fault (11) PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /var/www/html/support/include/class.orm.php on line 1089, referer: http://csc/support/scp/tickets.php?id=2286 PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 77 bytes) in /var/www/html/support/include/class.filter.php on line 325, referer: http://csc/support/scp/tickets.php?__CSRFToken__=0b8542d13232f93ac956d78679e82993dce4f1be&a=search&query=thriftymac%40gmail.com PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /var/www/html/support/include/class.filter.php on line 325, referer: http://csc/support/scp/settings.phpKent

I've pinged the devs to take a look at this thread, but my thought is that maybe your PHP or server config has an issue.

I have seen other reports of this memory error but I have yet to see a solution. Is there one?Kent

Q: Any update on this?A: I do not see any updates to this thread, so...Q: I have seen other reports of this memory error but I have yet to see a solution. Is there one?A: That would depend on whats actually causing the issue.  And since I don't have this problem, nor do I know anyone else that has this problem its safe to say that its something about your environment (server configuration) that I would find suspect first.Side note: I noticed that you haven't actually stated what web server you are running.  is it NGINX?

Apache 2.4.6Yesterday I restarted apache and the errors started again in just ten minutes.If you search the forum on "php memory" you will find similar reports but no solutions.So if it's possible my server isn't configured correctly what should I look at to change? It's just a plain CentOS install. I didn't need to do much tweaking to get OST to run.Kent

5 days later

Apparently I had the same problem as described here, http://forum.osticket.com/d/discussion//php-exhausted-memory-running-cron-phpI had one filter configured to auto-assign tickets to Level 1 Support, which I discovered can be done by other means. I configured the auto-assignment, disabled the filter, and restarted httpd to clear the log file. Now there are no errors in the http log and cron has stopped sending error messages in mail.Kent

4 years later

I am getting a similar error, I removed the 1 ticket filter in the system and no change, I increased the memory_limit ti 512M and the error is still coming up. I have been using this same version and configuration for several months with no issue. This error first popped up a few days ago and now it is running down slow.

/include/class.osticket.php on line 263
[22-Apr-2019 16:08:56 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted

About this osTicket Installation

Server Information
osTicket Version v1.9.6 (9adad36)
Web Server Software Apache
MySQL Version 5.6.43
PHP Version 5.6.40
PHP Extensions
gdlib Used for image manipulation and PDF printing
imap Used for email fetching
xml XML API
xml-dom Used for HTML email processing
json Improves performance creating and processing JSON
mbstring Highly recommended for non western european language content
phar Highly recommended for plugins and language packs
fileinfo Used to detect file types for uploads
PHP Settings
cgi.fix_pathinfo "1" is recommended if AJAX is not working
date.timezone UTC
Database Information and Usage
Schema pronlinedb (localhost)
Schema Signature b26f29a6bb5dbb3510b057632182d138
Space Used 174.28 MiB
Space for Attachments 0.26 MiB

@PermitRunner this thread is 4 years old. Also you are running a version of osTicket that is no longer supported. I would urge you to upgrade and inspect your PHP configuration file.

Killing zombie thread with a head shot.
Please start your own thread if you have a question.

Write a Reply...