happyfish100 / libshmcache

libshmcache is a local cache in the share memory for multi processes. high performance due to read is lockless. libshmcache is 100+ times faster than a remote interface such as redis.
449 stars 136 forks source link

ERROR - file: shmcache.c, line: 397, malloc -312 bytes fail #29

Open hs-llsong opened 3 years ago

hs-llsong commented 3 years ago

多进程微秒级超高频读写同一个KEY造成php进程假死(ps进程存在,但是没有任何打印输出,也没有报错,代码里echo,dump都没有输出,只能 kill -9),可能是进程之间锁竞争造成死锁?然后,手动删除了/tmp/shmcache文件,再运行以下代码报错了:

new ShmCache('/etc/libshmcache.conf', ShmCache::SERIALIZER_PHP);

报错:ERROR - file: shmcache.c, line: 397, malloc -312 bytes fail

运行以下命令

shmcache_delete      shmcache_dump        shmcache_get         shmcache_remove_all  shmcache_set         shmcache_stats

均报 ERROR - file: shmcache.c, line: 397, malloc -312 bytes fail