• Resolved aszele

    (@aszele)


    I cannot share a link to the site as we’re currently testing on an internal only dev site, but we’ve encountered a memory leak with Smart Slider 3 after upgrading to version 3.5.1.21 on RHEL 9 with PHP 8.1. Memory usage slowly climbs continuously until php-fpm crashes and restarts, then memory use starts climbing again. Deactivating the slider plugin eliminates the memory leak. There are no errors showing up in the php logs that might explain what’s happening (other than when php crashes of course). php memory_limit is 640M.

    Any suggestions on settings within Slider that we might try disabling/modifying to correct this. Has anyone else encountered this issue?

    Additional note: there’s only a single slider on the front page of the WordPress site (v6.4.2) with 3 slides.

    • This topic was modified 10 months ago by aszele.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Gabor

    (@nextendweb_gabor)

    Hi @aszele!

    We are not aware of any issues like this, and haven’t encountered it at other users. Do you see the issue happening, when you are only using a default WordPress theme (twenty-anything) and turn off all your other plugins? Because my best guess would be, that you have some sort of code running, which runs through other codes of your website.

    Plugin Author Nextendweb

    (@nextendweb)

    Hi @aszele,

    The applications written in PHP should not cause memory leaks as PHP server should free up all the memory on every page load. Memory leaks are caused by the PHP core, which is really hard to fix at the application level. If you check the changelog of PHP 8, you will see that there are a ton of fixes for different memory leak problems. This is why I think the best bet to update the PHP runtime for the latest version.

    Here is one, which I think might be related: https://github.com/php/php-src/issues/8646 It’s memory leak in PHP 8.1 FPM which was fixed in PHP 8.2.5.

    Thread Starter aszele

    (@aszele)

    We’re currently on php 8.1.14. PHP 8.2 is not expected to be released for Red Hat until 2nd quarter this year.

    I’ll test with a default theme and report back.

    FYI, we migrated to php 8.1 with an existing codebase that used smart-slider-3 version: 3.5.1.19. We didn’t see the memory leak until we upgraded to 3.5.1.21.

    We’ve isolated the problem by deactivating slider and noting no memory growth over time, then reactivating it and noting immediate evidence of the leak. It takes about 2 days to consume ~4G of RAM and crash the php-fpm service on the host.

    While I appreciate that the issue is likely in the php core itself, it’s being triggered by something in the code updates between the two slider versions listed above. We’re scheduled for os/software patching soon, so hopefully the latest php update will resolve.

    Plugin Support Laszlo

    (@laszloszalvak)

    Hi @aszele

    If the problem will occur even with a WordPress default theme and with all other plugins disabled except Smart Slider 3, then I would suggest you to get in touch with your server host and ask them to enable memory profiling as that could help in finding the scripts with bigger memory consumption.

    I would recommend performing these tests on a staging site, since as I see you mentioned that it took about 2 days until the problem started occurring again.

    • This reply was modified 10 months ago by Laszlo.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Memory leak with php 8.1’ is closed to new replies.