Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an OpenVZ VPS and for some reasons I have run out of the non-TCP sockets:

cat /proc/user_beancounters 
uid  resource    held      maxheld   barrier    limit     failcnt
numothersock     40        2002      2000       2000      4683

An application uses unix-sockets very heavily, up to 4683 as to the listing above. That is the reason, I am going to move to dedicated server.

Question. How do I find out of how many unix-sockets I am allowed to open on a dedicated server?

I think the server's configuration is not a big matter in this case, but I would like to buy a server with CPU 2x2.50GHz, RAM 4G, HDD 80G, CentOS 5.7, Apache 2.2. Sorry, I can't probably formulate a question correctly.

share|improve this question
Eugh. OpenVZ. You've just found yet another reason why this is a "toy" solution for "virtualisation" – Tom O'Connor Dec 2 '11 at 22:07
up vote 1 down vote accepted

well, for maximum number of file descriptors, you can: cat /proc/sys/fs/file-max

here's one for my little ol' laptop:

zsh 15427 [1] % cat /proc/sys/fs/file-max

it all depends on the distro, kernel limits, kernel features, hardware.... there isn't really any firm metric for it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.