Tuesday, 1 March 2016

Is 128Mb enough as a PHP allocation?

Hello everyone,

I'm receiving the following error in my logs:

[01-Mar-2016 06:21:03 America/Denver] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 12730211 bytes) in /googleads-php-lib-6.1.0/src/Google/Api/Ads/Common/Util/XmlUtils.php on line 61

Here is the function in question:

  public static function GetXmlFromDom($document) {
   
return trim($document->saveXml()); // Line 61
 
}


My hosting has 128Mb available to allocate to PHP Scripts, no more.

So my question is, is the API Simply running out of memory whilst trying to process data, or is there other issues at play?

Many thanks

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/36cd9c04-e5bb-47c3-90de-e83fa60964d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment