LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-01-2010, 05:02 PM   #1
zachlac
LQ Newbie
 
Registered: Sep 2009
Posts: 4

Rep: Reputation: 0
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?
 
Old 10-01-2010, 05:09 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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
to /etc/security/limits.conf.

What I'm trying to say is it may not be a file handle leak..

cheers
 
Old 10-02-2010, 08:21 PM   #3
zachlac
LQ Newbie
 
Registered: Sep 2009
Posts: 4

Original Poster
Rep: Reputation: 0
I tried this, and it did not work. The program still dies. I'll attach more information later.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems recovering from getpwnam error related to "too many open files" S_interactive Programming 3 02-19-2010 07:27 AM
script using "/usr/bin/cat error" produces "cannot open" in cron Dcrusoe Programming 6 07-22-2009 03:30 PM
"GConf error" when open files under root account helai Debian 1 03-15-2009 03:54 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-29-2004 11:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration