I got this error after reaching Current request rate: 11.12 req/sec Current users: 1184 Current connected users: 990 Current phase: 1 ejabberd tsung testing after that i google it some of them suggested to increase the /proc/sys/fs/file-max ulimit -n 100000 there after also i space the same problem is there any solution for this.
Asked
Active
Viewed 1,938 times
3
-
Is the error emfile is raised by tsung or by ejabberd ? – Rodolphe Oct 11 '13 at 08:43
-
this emfile error occur in ejabberd log file only not for tsung – Hari Haran Oct 11 '13 at 09:27
2 Answers
3
Just for an answer.
This is an issue with file descriptors limit of your OS. ejabberd opens new port for each new connection and this new port happens to use file descriptors. By default file descriptor limit is 1024 (Check with ulimit -n). Increase this limit to 30000 (with ulimit -n 30000)
Check this link for more details - File Descriptors are Yummy or Common Pitfalls of Ejabberd

justin.m.chase
- 13,061
- 8
- 52
- 100

Uday Sawant
- 5,748
- 3
- 32
- 45
0
So it seems that your stress load is too high, reduce the number of users or deploy more than one ejebberd. You could give us more information on your test too to help us helping you.

Rodolphe
- 848
- 4
- 15