Kayako logo
E-mail Piping Issues E-mail piping issues and related configuration questions are posted here,

Kayako develops robust helpdesk software, live chat and real-time visitor monitoring software.
Kayako is trusted by more than 30,000 organizations, including a number of Fortune 500 companies and government institutions.
Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
MKnight Offline
New Member
 
Posts: 11
Join Date: Jun 2007
PHP memory limit being hit - 13-11-2008, 12:58 AM

We have an ongoing problem that seems to be creeping up more often than it should.

Every couple of months we stop receiving responses to tickets in Kayako do to a PHP file memory limit. our IT team keeps upping the memory limit but it at some point reaches it then all email gets stuck in the mail queue.

Here is the latest error message we have:

PHP Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 1647109 bytes) in /home/httpd/sites/com/marketingtips/support/kb/includes/MIME/mimeDecode.php on line 324


We are running the latest STABLE build of Kayako (3.30.02)

Can anyone shed some light on this?
   
Reply With Quote
  (#2) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 7,347
Join Date: Jan 2006
Location: England, UK
13-11-2008, 01:15 AM

Hi there,

20971520 bytes is only 20 Megabytes in size. Under normal circumstances, we would strongly advice any moderately used support desk to set a memory limit well above this (to pick a number from the air, 100MB).

The usual reason why PHP hits the memory limit when downloading e-mail is down to large attachments, or simply large e-mail bodies.

You could say that the PHP memory limit should at least be as large as the e-mails the support desk is processing.

However, this would be a severe underestimate because PHP will be using memory elsewhere: such as serving support desk pages and requests to others, or if you run other PHP scripts on the same server, those scripts will also be sharing that memory allocation.

In any case, a 20MB memory limit for PHP is too low.

Hope this helps,


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#3) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 7,347
Join Date: Jan 2006
Location: England, UK
13-11-2008, 01:17 AM

Quote:
(tried to allocate 1647109 bytes) in /home/httpd/sites/com/marketingtips/support/kb/includes/MIME/mimeDecode.php
This bit indicates the the e-mail being processed is only 1647109 bytes (~ 1.5MB). As you can see, PHP is (without processing other messages) using a substantial amount of the PHP memory allocation.


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#4) Old
Casey Rousseau Offline
Member
 
Casey Rousseau's Avatar
 
Posts: 298
Join Date: Aug 2008
Location: Connecticut, USA
13-11-2008, 04:06 PM

I'd also suggest checking your queue mailbox with another client to be sure there aren't any email messages that are corrupt/too large for eSupport to parse. eSupport expects that the only messages that will be in the box at any time are new ones, so it tries to parse everything every time through, even if there are messages that it can't handle.


Casey Rousseau
Prophesy Transportation Solutions, Inc.
   
Reply With Quote
  (#5) Old
evgeny Offline
New Member
 
Posts: 5
Join Date: Feb 2009
22-04-2009, 04:14 PM

I had the same issue, when sending attachments with size > 1 Mb caused mail parser to fail with memory limit error. Increasing memory_limit in .htaccess didn't work, and I can't change it in php.ini, since the hoster does not allow it.

We were able to resolve the issue by inserting the following line in the beginning of /cli/index.php file:

ini_set('memory_limit', '128M');

This increases memory_limit on per-script level. It worked for me, maybe it will be helpful for someone.
   
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
GoPHP5 BigTom3007 Comments, Questions & Feedback 10 15-05-2008 09:10 AM
Setup PHP on a Windows 2000 server netFusion Technical Chat 5 03-10-2007 10:01 AM
dynamic php includes in smarty templates ebyte.com SupportSuite, eSupport and LiveResponse 3 04-06-2007 09:22 PM
problem ! graziano68 SupportSuite, eSupport and LiveResponse 2 08-11-2006 08:07 AM



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78