[tor-bugs] #29672 [Internal Services/Service - trac]: trac gets overwhelmed

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Jan 13 18:58:45 UTC 2020


#29672: trac gets overwhelmed
----------------------------------------------+------------------------
 Reporter:  anarcat                           |          Owner:  qbi
     Type:  defect                            |         Status:  closed
 Priority:  High                              |      Milestone:
Component:  Internal Services/Service - trac  |        Version:
 Severity:  Critical                          |     Resolution:  fixed
 Keywords:                                    |  Actual Points:
Parent ID:                                    |         Points:
 Reviewer:                                    |        Sponsor:
----------------------------------------------+------------------------

Comment (by anarcat):

 we just had a problem again where trac was overwhelmed. I noticed an IP
 that was hogging ~30 apache threads all on its own, thanks to this magic
 command:

 {{{
 ss -t -n 'dport = 80 or sport = 80 or dport = 443 or sport = 443' | awk
 '{print $NF}' | sed 's/:[0-9]*$//'  | sort | uniq -c | sort
 }}}

 That showed a single IP that was taking up most of the threads. I killed
 the IP with:

 {{{
 iptables -I INPUT -s $IPADDRESS -j REJECT
 }}}

 ... and restarted apache (to kill old sockets). Load has returned to
 normal and things seem generally happier.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/29672#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list