This blog is mainly about Java...

Monday, January 25, 2010

"Too many open files error" when running TestNG in Eclipse

I frequently get this exception when trying to run a test from TestNG in Eclipse.

Open a terminal and write ulimit -n and you will most probably get 1024.
(ulimit -a) for everything. (I am running Ubuntu 9.10)

This means you can have max 1024 open files.

To fix this check this page out and follow the instructions.
http://knol.google.com/k/fred-grott/open-file-limits-settings-on-ubuntu/166jfml0mowlh/3#

No comments:

Labels