Getting fatal error when installing new plugin by hitting memory_limit I am trying to locally install Craft Typed Link Field from the plugin store and I'm getting this PHP error.

I have already upped my memory_limit to 256M within my php.ini file, yet this is claiming to need 400M to run these updates.

I'd rather try to deal with the root cause instead of upping my memory_limit to 410M.

Trace is following:

A fatal error has occurred:

Status: Internal Server Error

Response: &lt;pre&gt;PHP Fatal Error &amp;#039;yii\base\ErrorException&amp;#039; with message &amp;#039;Allowed memory size of 268435456 bytes exhausted (tried to allocate 4096 bytes)&amp;#039;

in /Users/name/project/build/vendor/composer/composer/src/Composer/DependencyResolver/Solver.php:220

Stack trace:
#0 [internal function]: yii\base\ErrorHandler-&amp;gt;handleFatalError()
#1 {main}&lt;/pre&gt;
This is more of a Composer than a Craft issue. Depending on your project dependencies, Composer could easily need 1GB of memory.

I assume you got the 410M from the 4039 bytes in the error. That's only what Composer can't allocate for what it's doing, you might need more later in the process.

I would start by upping my memory_limit to 512M and see where it gets you.