[ 
https://issues.apache.org/jira/browse/TS-1815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13838591#comment-13838591
 ] 

Phil Sorber commented on TS-1815:
---------------------------------

I looked into this and it looks like the extra thread is opened for the 
management port.

{noformat}
[Dec  4 04:51:50.891] Server {0x2b7ee03cdd00} DEBUG: (iocore_net_accept) 
Created accept thread #1 for port 80
[Dec  4 04:51:50.891] Server {0x2b7ee03cdd00} DEBUG: (iocore_net_accept) 
Created accept thread #2 for port 80
[Dec  4 04:51:50.892] Server {0x2b7ee03cdd00} DEBUG: (iocore_net_accept) 
Created accept thread #3 for port 80
[Dec  4 04:51:50.892] Server {0x2b7ee03cdd00} DEBUG: (iocore_net_accept) 
Created accept thread #4 for port 80
[Dec  4 04:51:50.894] Server {0x2b7ee03cdd00} DEBUG: (iocore_net_accept) 
Created accept thread #1 for port 8084
{noformat}

{noformat}
20571 nobody    20   0  988m 128m 5072 S  0.0  0.1   0:00.00 [ACCEPT 1]
20572 nobody    20   0  988m 128m 5072 S  0.0  0.1   0:00.00 [ACCEPT 2]
20573 nobody    20   0  988m 128m 5072 S  0.0  0.1   0:00.00 [ACCEPT 3]
20574 nobody    20   0  988m 128m 5072 S  0.0  0.1   0:00.00 [ACCEPT 0]
20577 nobody    20   0  988m 128m 5072 S  0.0  0.1   0:00.00 [ACCEPT 0]
{noformat}

> N+1 ACCEPT threads?
> -------------------
>
>                 Key: TS-1815
>                 URL: https://issues.apache.org/jira/browse/TS-1815
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Network
>            Reporter: Zhao Yongming
>             Fix For: 5.0.0
>
>
> well, just noted that we have N+1 accept threads, but we have only N threads 
> in use, what is the problem here?
> {code}
> [root@test67 trafficserver]# top -b -n 1 -H -M -S | grep ACCEPT
> 15800 ats       20   0 18.1g  10g 4720 R 18.5 23.4 217:15.38 [ACCEPT]
> 15801 ats       20   0 18.1g  10g 4720 S 18.5 23.4 216:49.99 [ACCEPT]
> 15802 ats       20   0 18.1g  10g 4720 S 18.5 23.4 216:49.44 [ACCEPT]
> 15799 ats       20   0 18.1g  10g 4720 S 16.6 23.4 218:04.94 [ACCEPT]
> 15805 ats       20   0 18.1g  10g 4720 S  0.0 23.4   0:00.36 [ACCEPT]
> [root@test67 trafficserver]# grep ACCEPT 
> /opt/ats/etc/trafficserver/records.config -i
> CONFIG proxy.config.accept_threads INT 4
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to