yaai
yaai copied to clipboard
Memory leak in asteriskLogger.php
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 566672 bytes) in /var/www/html/sugarcrm/include/nusoap/nusoap.php on line 876
I am a cheated on php.ini in the beginning of on the 128M then everything more and more, should now be installed 512 MB of and the error everything arises and arises: ( Note that the time of occurrence all increases. And down service php /var/www/html/sugarcrm/custom/modules/Asterisk/asteriskLogger.php :(
HELP !
Doesn't happen on my box or my code. You probably injected the memory leak with your other soap changes.
~blake
On Dec 11, 2012, at 4:00 AM, sergeymx [email protected] wrote:
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 566672 bytes) in /var/www/html/sugarcrm/include/nusoap/nusoap.php on line 876
I am a cheated on php.ini in the beginning of on the 128M then everything more and more, should now be installed 512 MB of and the error everything arises and arises: ( Note that the time of occurrence all increases. And down service php /var/www/html/sugarcrm/custom/modules/Asterisk/asteriskLogger.php :(
HELP !
— Reply to this email directly or view it on GitHub.
Sergeymx contact me here http://www.blakerobertson.com/contact if you are interested in paid support.
your other soap changes. ? I use sugarcrm CE 6.5.8 download from sugar server. I use nusoap 0.9.5 download from http://sourceforge.net/projects/nusoap/ ( include nusoap in sugarcrm 6.5.8 no works ) I use http://www.sugarforge.org/frs/download.php/9768/yaai-2.6.0b.zip It is not clear about what changes do you mean? Оr the module yaai-2.6.0b.zip does not work with the current version sugarcrm ?
I don't have memory leaks... Didn't you modify asteriskLogger.php? If not, then could be your modification from NuSOAP.
Wish I could help more. Try a new box? Upgrade PHP?
On Tue, Dec 11, 2012 at 10:59 PM, sergeymx [email protected] wrote:
your other soap changes. ? I use sugarcrm CE 6.5.8 download from sugar server. I use nusoap 0.9.5 download from http://sourceforge.net/projects/nusoap/( include nusoap in sugarcrm 6.5.8 no works ) I use http://www.sugarforge.org/frs/download.php/9768/yaai-2.6.0b.zip It is not clear about what changes do you mean? ïr the module yaai-2.6.0b.zip does not work with the current version sugarcrm ?
-- Reply to this email directly or view it on GitHubhttps://github.com/blak3r/yaai/issues/96#issuecomment-11275848.
Didn't you modify asteriskLogger.php? No change ! I use original. If not, then could be your modification from NuSOAP. No ! I use original from : http://sourceforge.net/projects/nusoap/ Try a new box? box ? Upgrade PHP? No. I use PHP from repo CentOS 6.3 + update !
P.S. I use asterisk : 2 E1 and SIP. Mark in sugarcrm ALL rings :( from E1 to E1.
more, more rings and LEAK :(
I change line in asteriskLogger.php :
if ($e['Event'] == 'Dial' && $e['SubEvent'] != 'End' && ( $e['CallerIDName'] != '
How many calls a day are you getting?
I've never seen Dial events without a CallerIDName or ConnectedLineName not being set... Can you put some of your asterisk log here or email it to me so I can see what's going on.
My email is on my github profile.
If you've narrowed it down, did you look at that code block to see if there is any code which looks suspect?
I've never heard of anyone using Asterisk 2 yet.
@sergeymx and I have been emailing back and forth on this issue. Here's what we've learned.
He was having an issue (See #94) where using the nusoap which comes with sugar his server couldn't connect via soap for some reason.
He then replaced it with the version he downloaded here: http://sourceforge.net/projects/nusoap/files/latest/download
Once he did that he was able to connect via soap... but then a memory leak appeared and after several hours of running on his system which gets thousand calls a day it would run out of memory.
He then changed:
$GLOBALS['_transient']['static']['nusoap_base']['globalDebugLevel'] = 9;
to line
$GLOBALS['_transient']['static']['nusoap_base']['globalDebugLevel'] = 0;
After that his memory leak issue went away.
NOTE: If you're using the stock nusoap.php (which 99.5% of people are) -- there are no known memory leak issues with asteriskLogger.php