Closed zkbaba closed 11 months ago
your system has a limit on number of files open at the same time. For linux, you can up your ulimit https://ss64.com/bash/ulimit.html and/or identify if you have a leak via lsof https://www.redhat.com/sysadmin/analyze-processes-lsof
hello, i encountered a problem: "open /proc/stat: too many open files". How can I solve it? Thank you. code: var cpuInfo, _ = procfs.NewFS(procfs.DefaultMountPoint) stat1, err := cpuInfo.Stat() if err != nil { panic(err) }