osTicket (v1.9.7-19-gad9276e)Mail Sending: phpmailMail Fetching/Receiving: IMAP -  courier-imap 4.6.0-2.1apache2 2.2.22-13PHP version: php5 5.4.39-0Operating System: Debian 7   Linux XXXX 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u2 x86_64 GNU/Linux/etc/php5/cli/php.ini    -- Note "cli" since apache2 isn't involved.  Using  <?php phpinfo(); ?> showed the change; no need to restart apache2.   memory_limit = 512M   (I changed this from -1 or it uses all the memory and the server would become unusable)$ php -q /home/support/support.example.com/docs/api/cron.phpPHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /home/support/support.example.com/docs/include/class.filter.php on line 325The cron.php app worked for a few days, then it stopped; using all the memory and the server needed to be rebooted and the cron.php job disabled.After disabling the cron.php job I unchecked "Fetch on auto-cron"No updates or upgrades had happened.I checked to make sure the email address worked through webmail.

I don't see any question, so you're just sharing some info or what is the actual issue?

What can I do so I can use the cron system again? Without the cron email sent to it gets processed slower.---- more ---I deleted an email filter and now it works.I only had one email filter which was checking the subjects for a specific string then making a ticket assignment and changing the urgency.----I suppose I answered my own question; use lots of care when using email filters.

Or you could up the amount of memory available to PHP.

I stopped using the ticket filters until I see this as resolved.Increasing the PHP memory did not help.When I set php memory to unlimited (-1) it still said it exhausted it and then I needed to reboot.My guess is that there is a bug in the ticket filtering system.

I don't have a problem with it, but then I only have 4 ticket filters in place.

That's 3 more than I had...I just created a filter and it seems to be ok.  Now I have one.I ran cron.php from the command line without error.          php -q /home/support/support.example.com/docs/api/cron.phpOnly time will tell.

FYI: I edited cron.php to have #!/usr/bin/php as it's first line.

Write a Reply...