Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hs-llsong opened this issue Nov 12, 2020 · 0 comments
Open

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

hs-llsong opened this issue Nov 12, 2020 · 0 comments

Comments

@hs-llsong
Copy link

多进程微秒级超高频读写同一个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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant