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

使用hcache -top 10时报错,could not open '/proc/22621/maps' #32

Open
monkey6 opened this issue Aug 4, 2022 · 1 comment
Open

Comments

@monkey6
Copy link

monkey6 commented Aug 4, 2022

使用hcache -top 10命令时,报错,报错如下:
could not open '/proc/22621/maps' for read: open /proc/22621/maps: no such file or directory

@neland
Copy link

neland commented Nov 2, 2023

感觉很久没维护了,可以自己手动改下源码
main.go的getPidMaps
log.Fatalf("could not open '%s' for read: %v", fname, err) 改成
log.Printf("could not open '%s' for read: %v", fname, err)
return nil
然后调用的地方判断下就好了
maps := getPidMaps(pidFlag)
if maps != nil {
files = append(files, maps...)
}

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

2 participants