Score:0

PHP 7.4 | Fatal Error Unable to allocate shared memory segment (big max segment size)

es flag

Server with Oracle Linux 8 1CPU 3GB RAM, has the following services: ftp, apache, php74, php80, MariaDB.

Starting PHP 7.4 I get the error:

Sun Nov 21 16:07:52 2021 (108654): Fatal Error Unable to allocate shared memory segment of 134217728 bytes: unknown: Success (0)

Taking a look to the shared memory values:

# ipcs -lm

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 18014398509465599
max total shared memory (kbytes) = 18014398509481980
min seg size (bytes) = 1

And

# cat /proc/meminfo 
MemTotal:           2742272 kB
MemFree:            1898576 kB
MemAvailable:       2111092 kB
Buffers:               4204 kB
Cached:              357696 kB
SwapCached:               0 kB
Active:              429096 kB
Inactive:            248940 kB
Active(anon):        316980 kB
Inactive(anon):       33128 kB
Active(file):        112116 kB
Inactive(file):      215812 kB
Unevictable:              0 kB
Mlocked:                  0 kB
SwapTotal:          3170300 kB
SwapFree:           3170300 kB
Dirty:                  100 kB
Writeback:                0 kB
AnonPages:           316188 kB
Mapped:              154284 kB
Shmem:                33972 kB
KReclaimable:         37940 kB
Slab:                 74884 kB
SReclaimable:         37940 kB
SUnreclaim:           36944 kB
KernelStack:           6832 kB
PageTables:           16420 kB
NFS_Unstable:             0 kB
Bounce:                   0 kB
WritebackTmp:             0 kB
CommitLimit:        4541436 kB
Committed_AS:       2748688 kB
VmallocTotal:   34359738367 kB
VmallocUsed:          16740 kB
VmallocChunk:             0 kB
Percpu:               39680 kB
HardwareCorrupted:        0 kB
AnonHugePages:        96256 kB
ShmemHugePages:           0 kB
ShmemPmdMapped:           0 kB
FileHugePages:            0 kB
FilePmdMapped:            0 kB
CmaTotal:                 0 kB
CmaFree:                  0 kB
HugePages_Total:          0
HugePages_Free:           0
HugePages_Rsvd:           0
HugePages_Surp:           0
Hugepagesize:          2048 kB
Hugetlb:                  0 kB
DirectMap4k:         114688 kB
DirectMap2M:        3022848 kB
DirectMap1G:              0 kB

I reduced the OPcache memory value from 128 to 64 but either way still crashes. Does anyone have a clue? thanks

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.