Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
1  
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

1 Answer 1

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
403568

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

 
discard

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.