Skip to content

Linux共享内存占用查看 #4

@nicebug

Description

@nicebug

在服务器管理中,常常因为共享内存被占用导致某个进程无法启动,例如通常有如下的配置:

[ShmKey]
CompetitionShm=330010001
MsgStatShm=330010002

如果因为共享内存被占用,该服务器进程将无法启动,我们将十进制330010001转为十六进制0x13AB8D91,再ipcs -m | grep 0x13ab8d91 ,可查看到该共享内存被谁占用,每列的具体信息如下:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Linuxlinux技巧相关

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions