Oh fuck me, OPcache

iMGSRC.RU
Oct 19, 2022

--

Ok, computer[jit] => Array
(
[enabled] => 1
[on] => 1
[kind] => 5
[opt_level] => 4
[opt_flags] => 6
[buffer_size] => 3145712
[buffer_free] => 2062640
)

What is that? This is a portion of opcache_get_status() output from one of our server when we run stable for a lot more than 24hrs. But what happens when we lover a opcache.jit_buffer_size to 2M? From a basic math you would think that “oh, cool, we’ve freed another M for some other stuff, hooray”. Nope. That server crashed. Do you have any idea of why?

--

--