libgtop2 error: "Too many open files"
I have a while(1) loop, and the error is:
glibtop: open (/proc/stat): Too many open files This error occurs after about a half hour to an hour of running. I've tried running this multiple times, both with using glib_close() at the end of the loop, using glib_init() and glib_close() at beginning/end, and just using glib_init(). The strange thing is these have no effect on the actual glib_get functions. Anybody familiar with libgtop and have a solution? |
Maybe your process is just reaching its limit, 'cat /proc/<pid>/limits | grep files'. The default is 1024 which can be a little low, I usually add
Code:
* - nofile 8192 What I'm trying to say is it may not be a file handle leak.. cheers |
I tried this, and it did not work. The program still dies. I'll attach more information later.
|
All times are GMT -5. The time now is 02:49 AM. |