You are not logged in.

#1 2010-04-11 22:03:32

martin77
Member
Registered: 2010-03-14
Posts: 111

[SOLVED] Maximun TCP open connections and Open File Descriptors

Hi,

back when I was using XP I needed to patch a system file to increase max amount of open TCP connections - you surely know about this. I'm wondering how do I do the same in GNU/Linux and if that's real important here.

Also, by default open files are set to 1024, how do I change that? I'm running x86_64 + KDE SC 4.4.2

Last edited by martin77 (2010-04-12 04:17:27)

Offline

#2 2010-04-11 22:22:25

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [SOLVED] Maximun TCP open connections and Open File Descriptors

No need to change the TCP connections/no such limitation under Arch to my knowledge.  Dunno what you mean by 1024 open files.

Last edited by graysky (2010-04-11 22:22:46)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2010-04-12 03:34:31

martin77
Member
Registered: 2010-03-14
Posts: 111

Re: [SOLVED] Maximun TCP open connections and Open File Descriptors

Thanks for replying.

I mean "open file handler" or in a better GNU/Linux terminology "open file descriptors" aka the maximun number of files that can be accessed at a given time.

For instance, VMWare will need you increase them to 4096 to work properly - and I presume something in the order of 5120 would be ok.

Following The Arch Way, already found the solution and want to share it with all of you fellow n00bs:

1. you need to open for edit /etc/security/limits.conf file with root privileges
2. at the end of the file add:

* soft nofile nn
* hard nofile nn

where nn is the number of open file descriptors you want. I set them to 8196 (probably too high) so for instance it should read:

* soft nofile 8192
* hard nofile 8192

Read the embedded help for a better understanding of this crucial configuration file.

As usual, thank you very much to this great community, devs and users, best!

Last edited by martin77 (2010-04-12 04:18:47)

Offline

Board footer

Powered by FluxBB