Opened 15 years ago

Last modified 7 years ago

#82 closed defect (Fixed)

tor opens too many file descriptors

Reported by: goodell Owned by:
Priority: Low Milestone:
Component: Core Tor/Tor Version:
Severity: Keywords:
Cc: goodell Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

For those of us with systems with high-bandwidth connections, running a
Tor router causes the Tor process to open many file descriptors. So
many, in fact, that Tor routinely runs into the ceiling specified by
ulimit -n. Thus, either (a) the init script included with the tor
package should manually set a large value for ulimit -n, or (b) Tor
itself should somehow set its own ulimit to be large, perhaps based upon
a configuration parameter.

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (3)

comment:1 Changed 15 years ago by arma

Well, Tor can't set its own ulimit past the hard limit (typically 1024), so this is going
to have to be done by root beforehand (e.g. in the init script on some platforms, or
however it's done on each OS).

comment:2 Changed 15 years ago by arma

flyspray2trac: bug closed.
Tor now grows its soft ulimit to MAXCONNECTIONS (15000), assuming the hard ulimit allows it.

comment:3 Changed 7 years ago by nickm

Component: Tor RelayTor
Note: See TracTickets for help on using tickets.