[Qt-interest] Too many files open error on Mac OS
paulf at free.fr
paulf at free.fr
Wed Sep 29 09:00:27 CEST 2010
Hi
Are you sure that your application does not have a resource leak of opened files? If so, then simply increasing the resource limit isn't a good solution.
Tools like Purify can detect leaked open file resources.
A+
Paul
----- Original Message -----
From: "Serge" <mb0 at km.ru>
To: qt-interest at trolltech.com
Sent: Wednesday, 29 September, 2010 07:42:57 GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
Subject: [Qt-interest] Too many files open error on Mac OS
Hello,
My QT 4.5 GUI program opens a lot of files. On windows it is working
fine, but on Mac OS it receives error - too many files open.
If i type in bash:
ulimit -n
256
I found out how to fix it:
echo limit maxfiles 2048 1000000 > /etc/launchd.conf
#reboot
ulimit -n
2048
I deliver program to users in dmg archive.
They just mount it and launch program.
It can be a problem for some of them to make such a tuning in bash.
Can program itself increase number of files, it can open, without need
to reboot?
Thanks
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list