Support » Plugin: Jetpack by WordPress.com » Out of memory (allocated 12582912) (tried to allocate 4294967268 bytes)

  • Resolved o6asan

    (@o6asan)


    I moved to WordPress4.7 and PHP7.1.0 on the same day. After that, I had PHP Fatal error: Out of memory (allocated xxxxxxx) (tried to allocate 4294967268 bytes) in \wp-content\plugins\jetpack\json-endpoints.php on line 123.

    Only json-endpoints.php gives this error, so I can use ini_set('memory_limit', '4096M');.
    But the problem is I don’t have such size memory areas because of my WordPress on Windows7 x86. Besides, I think 4096M is so big.

    Any idea?
    Thanks in advance.

Viewing 15 replies - 1 through 15 (of 47 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic πŸš€

    4096M is indeed quite a lot. It would be interesting to understand why the memory requirements are so high.

    Do you host your site yourself? What happens when you revert back to PHP7?

    I’ve reverted back to PHP7.0.14 at 2:15UTC on Dec.10.
    If I have something, I’ll report again.

    Now, at 2:52UTC on Dec.11.

    The error has gone since back to PHP7.0.14.
    My Apache and PHP are Windows version of course.
    Apache2.4.23 with VC14 from apachelounge.com and PHP from windows.php.net.

    Jetpack has a lot of features, so I cannot check everything, but I found the next thing.

    When I used PHP7.1.0, the WP Dashboard didn’t show Site Stats like this.

    After back to PHP7.0.14, the Site Stats is back as usual. Is this related to the error above?

    • This reply was modified 2 years, 9 months ago by  o6asan.
    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic πŸš€

    Thanks for the extra details!

    Do you see anything in your PHP error logs, or when enabling WP_DEBUG on your site?

    Hi Jeremy,

    I enabled WP_DEBUG with PHP7.1.0 and got this log. And Here is Apache.log.

    But there is nothing new except I found ‘Out of memory’ occurred at the exact same time when I saw Site Stats of dashboard though I was able to have no Site Stats.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic πŸš€

    Thanks for the extra details. I find it curious that it fails on that specific line. Could you let me know what version of Jetpack is currently installed on your site?

    Hi Jeremy,

    The version is 4.4.2.
    Thanks.

    • This reply was modified 2 years, 9 months ago by  o6asan. Reason: A mistake
    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic πŸš€

    Thanks!

    What happens if you create a brand new site on that same server? Do you experience similar issues?

    Hi Jeremy,

    I created a brand new site using WordPress4.7 on the server and added Plugins Akismet, WP Multibyte Patch and Jetpack. I had the same issues on the new site.

    My server environments:
    Windows7 HP SP2 32bit
    Apache 2.4.23 VC14 Win32 from Apachelounge
    PHP7.1.0 VC14 x86 Thread Safe from Windows.php.net
    mariadb10.1.19 win32 from MariaDB

    • This reply was modified 2 years, 9 months ago by  o6asan.
    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic πŸš€

    Thanks for the extra details. I’m afraid we’d need to know more to be able to understand where the problem is coming from.

    Would you be able to install a profiling service like Tideways on your machine, to be able to run a memory profiler tool and understand where the problem is on your server?

    Thanks!

    Hi,

    I’ve not used a profiling service like Tideways. Won’t you tell me HowTo page about Tideways?

    Thanks!

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic πŸš€

    You can find more information and instructions here:
    https://tideways.io/profiler/docs/setup/installation#windows

    It requires quite a bit of setup, though.

    I’d be happy to run those tests myself, if I could reproduce your server environment. Could you tell me more about you set up your server? Is this something I could set up by signing up with a specific hosting provider?

    Thanks!

    Sorry for my very late reply because I got a terrible cold.

    Today I tried but nothing was collected. Unfortunately, Windows version only supports PHP5.5 and 5.6. Do I need to install 5.6 to my server and does it give a report about PHP7.1 to me?

    > Is this something I could set up by signing up with a specific hosting provider?

    I don’t know about it. My server is at my house. What information do you need about my server?

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic πŸš€

    Sorry for my very late reply because I got a terrible cold.

    Sorry to hear that! I hope you’re feeling better!

    We’re in the process of running our own tests with PHP 7.1 to catch those issues you’re experiencing. Until the problems are solved, I’d rather not ask you to spend more time on this. If you’d like to use Jetpack you can downgrade to PHP 7.0. We’ll work on PHP 7.1 compatibility in the next few weeks after the holidays!

    I hope you’re feeling better!

    Thanks for your kindness.

    Until the problems are solved, I’d rather not ask you to spend more time on this.

    I agree. I think that’s maybe better for me.

    Now, I report two more things I noticed. This and this. But new errors do not appear on the PHP error log.

    We’ll work on PHP 7.1 compatibility in the next few weeks after the holidays!

    Great!! I’m waiting and expecting.

    Have nice holidays! Bye!

    • This reply was modified 2 years, 9 months ago by  o6asan.
    • This reply was modified 2 years, 9 months ago by  o6asan.
Viewing 15 replies - 1 through 15 (of 47 total)
  • The topic ‘Out of memory (allocated 12582912) (tried to allocate 4294967268 bytes)’ is closed to new replies.