php-src icon indicating copy to clipboard operation
php-src copied to clipboard

Specific memory_limit for preloading

Open raziel057 opened this issue 4 years ago • 2 comments

Description

Hello,

What do you think about adding a specific opcache.preload_memory_limit option that could be used only for generating preloading as this task can be more memory consuming than common requests.

In some case when you need to preload lots of files (coming from Framework, vendors and application), the memory can exceed 128M while it's enough for other requests.

See related https://github.com/symfony/symfony/issues/45950

raziel057 avatar Apr 06 '22 10:04 raziel057

Don' t think this is needed. Just change the memory limit on runtime when needed. Otherwise we would need to create specific memory limit ini settings for all kinds of things like uploads etc.

Tobion avatar Apr 06 '22 23:04 Tobion

Ok it’s what I also propose in the linked ticket on Symfony side. Note sure that it’s the best to rely on ini setting on runtime as any people prefer to disable it for security reason, but indeed I see your points.

raziel057 avatar Apr 07 '22 04:04 raziel057