Re: Is 128Mb enough as a PHP allocation?
Hello Alan, No problem! I'm just glad that you were able to figure out the root of the issue. Happy coding, Nadine, AdWords API Team On Thursday, March 3, 2016 at 11:07:24 AM UTC-5, Alan Coleman wrote: > > Hi Nadine, > > Thanks very much for getting back to me, however this issue was down to my > own RAM mismanagement and there not being enough to fulfil some basic > requirements. > > Thanks again for your response. > > On Tuesday, March 1, 2016 at 1:47:04 PM UTC, Alan Coleman wrote: >> >> 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+unsubscr...@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+unsubscr...@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/fc0083d7-e430-4cc2-adee-83b515704be4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Is 128Mb enough as a PHP allocation?
Hi Nadine, Thanks very much for getting back to me, however this issue was down to my own RAM mismanagement and there not being enough to fulfil some basic requirements. Thanks again for your response. On Tuesday, March 1, 2016 at 1:47:04 PM UTC, Alan Coleman wrote: > > 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+unsubscr...@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+unsubscr...@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/fc224d6f-8657-4bdd-b939-83547a2dc3a9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Is 128Mb enough as a PHP allocation?
Hi Alan, Based on the calling structure, it looks like your report definition could be quite large. As far as I can tell, that would be what is getting serialized at the time. Is that the case? If not, could you please click *Reply privately to author* in the forum and send me your report definition? That way I can try reproducing it from my side to figure out what's going on. Thanks, Nadine, AdWords API Team On Tuesday, March 1, 2016 at 8:47:04 AM UTC-5, Alan Coleman wrote: > > 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+unsubscr...@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+unsubscr...@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/1c2811e5-4b4f-4d69-9e90-924bddb0da8e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
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+unsubscr...@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+unsubscr...@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.