• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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