• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Question Memory exhausted when using AWS SDK

Bargavikalla

New Pleskian
I am using the AWS PHP SDK with my laravel app. I am not seeing issues with many of the API calls but when trying to retrieve a list of AMIs I am getting the following error.

Allowed memory size of 134217728 bytes exhausted (tried to allocate 10365580 bytes)

I know this is a AWS Technical php error and I can technically increase the memory, but I feel that shoudl not be neccessary. Below is the code I am using. is there something I can change to prevent this error?

$ec2 = AWS::get('Ec2');
$amis = $ec2->DescribeImages();
print_r($amis);
I also tried adding filters but I get the same error. even when tryign to fetch 1 AMI.

is anyone else having this issue?
 
Back
Top