我有 Magento 网上商店,它运行 cron 作业来执行预定的进程。其中之一是产品进口。它负责导入产品并将它们分配给类别。根据 sql state 我可以看到这部分已经完成。在它尝试使缓存无效之后。对于缓存,我尝试在 tcp 上使用 memcache 或在套接字上使用 redis。对于这两个选项,我有相同的结果。我使用 strace 命令来查看它正在尝试做什么。
sudo strace -e trace=all -f -d -p 10319
过去 2 小时的输出是:
[wait(0x57f) = 10319]
pid 10319 stopped, [SIGTRAP]
brk(0x236ec000 [wait(0x57f) = 10319]
pid 10319 stopped, [SIGTRAP]
) = 0x236ec000
[wait(0x57f) = 10319]
pid 10319 stopped, [SIGTRAP]
brk(0x2372c000 [wait(0x57f) = 10319]
pid 10319 stopped, [SIGTRAP]
) = 0x2372c000
[wait(0x57f) = 10319]
pid 10319 stopped, [SIGTRAP]
brk(0x2376c000 [wait(0x57f) = 10319]
pid 10319 stopped, [SIGTRAP]
) = 0x2376c000
我知道 brk 是用来分配内存的。
其他输出可能意味着什么?这种行为的原因是什么?有任何想法吗?