Welcome! Log In Create A New Profile

Advanced

why php-fpm use some udp port?

Posted by peixinchen 
peixinchen
why php-fpm use some udp port?
March 07, 2013 03:40AM
like this:

$ netstat -nlp

udp 0 0 10.168.16.205:54144 0.0.0.0:*
20456/php-fpm: pool
udp 5664 0 0.0.0.0:54086 0.0.0.0:*
9687/php-fpm: pool
udp 0 0 0.0.0.0:54088 0.0.0.0:*
9687/php-fpm: pool
udp 5664 0 0.0.0.0:54103 0.0.0.0:*
19114/php-fpm: pool
udp 0 0 10.168.16.205:54104 0.0.0.0:*
19114/php-fpm: pool
udp 0 0 0.0.0.0:54105 0.0.0.0:*
19114/php-fpm: pool
udp 0 0 10.168.16.205:54109 0.0.0.0:*
17451/php-fpm: pool
udp 0 0 10.168.16.205:54110 0.0.0.0:*
18259/php-fpm: pool
udp 0 0 0.0.0.0:54111 0.0.0.0:*
18259/php-fpm: pool
udp 0 0 10.168.16.205:54135 0.0.0.0:*
23890/php-fpm: pool
udp 0 0 10.168.16.205:54136 0.0.0.0:*
22221/php-fpm: pool
udp 5664 0 0.0.0.0:54141 0.0.0.0:*
26125/php-fpm: pool
udp 0 0 10.168.16.205:54142 0.0.0.0:*
26125/php-fpm: pool
udp 0 0 0.0.0.0:54143 0.0.0.0:*
26125/php-fpm: pool

does these for master/worker communication?

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Jérôme Loyet
Re: why php-fpm use some udp port?
March 07, 2013 03:50AM
are you sure it's not then PHP code FPM is running that opens those UDP
ports ?




2013/3/7 peixinchen <shangtefa@gmail.com>

> like this:
>
> $ netstat -nlp
>
> udp 0 0 10.168.16.205:54144 0.0.0.0:*
> 20456/php-fpm: pool
> udp 5664 0 0.0.0.0:54086 0.0.0.0:*
> 9687/php-fpm: pool
> udp 0 0 0.0.0.0:54088 0.0.0.0:*
> 9687/php-fpm: pool
> udp 5664 0 0.0.0.0:54103 0.0.0.0:*
> 19114/php-fpm: pool
> udp 0 0 10.168.16.205:54104 0.0.0.0:*
> 19114/php-fpm: pool
> udp 0 0 0.0.0.0:54105 0.0.0.0:*
> 19114/php-fpm: pool
> udp 0 0 10.168.16.205:54109 0.0.0.0:*
> 17451/php-fpm: pool
> udp 0 0 10.168.16.205:54110 0.0.0.0:*
> 18259/php-fpm: pool
> udp 0 0 0.0.0.0:54111 0.0.0.0:*
> 18259/php-fpm: pool
> udp 0 0 10.168.16.205:54135 0.0.0.0:*
> 23890/php-fpm: pool
> udp 0 0 10.168.16.205:54136 0.0.0.0:*
> 22221/php-fpm: pool
> udp 5664 0 0.0.0.0:54141 0.0.0.0:*
> 26125/php-fpm: pool
> udp 0 0 10.168.16.205:54142 0.0.0.0:*
> 26125/php-fpm: pool
> udp 0 0 0.0.0.0:54143 0.0.0.0:*
> 26125/php-fpm: pool
>
> does these for master/worker communication?
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "highload-php-en" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to highload-php-en+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Anatoly Pashin
Re: why php-fpm use some udp port?
March 07, 2013 04:54AM
Not confirmed for me (using last debian/testing php-fpm). Looks like on
default configuration it doesn't use tcp/upd ports at all — only socket.

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
2593/mysqld
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN
2209/memcached
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN
2105/redis-server
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
1683/portmap
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
14457/nginx
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
2655/sshd
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN
15552/postgres
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
2971/master
tcp 0 0 0.0.0.0:17500 0.0.0.0:* LISTEN
14021/dropbox
tcp6 0 0 :::22 :::* LISTEN
2655/sshd
tcp6 0 0 :::5432 :::* LISTEN
15552/postgres
tcp6 0 0 :::25 :::* LISTEN
2971/master
udp 0 0 127.0.0.1:11211 0.0.0.0:*
2209/memcached
udp 0 0 0.0.0.0:13025 0.0.0.0:*
2556/dhclient
udp 0 0 0.0.0.0:68 0.0.0.0:*
2556/dhclient
udp 0 0 0.0.0.0:111 0.0.0.0:*
1683/portmap
udp 0 0 0.0.0.0:17500 0.0.0.0:*
14021/dropbox
udp6 0 0 :::42623 :::*
2556/dhclient
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name
Path
unix 2 [ ACC ] STREAM LISTENING 58366 14021/dropbox
/home/anatoly/.dropbox/command_socket
unix 2 [ ACC ] SEQPACKET LISTENING 1671430 20909/udevd
/run/udev/control
unix 2 [ ACC ] STREAM LISTENING 60611 14021/dropbox
/home/anatoly/.dropbox/iface_socket
unix 2 [ ACC ] STREAM LISTENING 8475 2593/mysqld
/var/run/mysqld/mysqld.sock
unix 2 [ ACC ] STREAM LISTENING 3650 2971/master
public/cleanup
unix 2 [ ACC ] STREAM LISTENING 3655 2971/master
private/tlsmgr
unix 2 [ ACC ] STREAM LISTENING 6603 2971/master
private/rewrite
unix 2 [ ACC ] STREAM LISTENING 6606 2971/master
private/bounce
unix 2 [ ACC ] STREAM LISTENING 6609 2971/master
private/defer
unix 2 [ ACC ] STREAM LISTENING 6612 2971/master
private/trace
unix 2 [ ACC ] STREAM LISTENING 6615 2971/master
private/verify
unix 2 [ ACC ] STREAM LISTENING 6618 2971/master
public/flush
unix 2 [ ACC ] STREAM LISTENING 6621 2971/master
private/proxymap
unix 2 [ ACC ] STREAM LISTENING 6624 2971/master
private/proxywrite
unix 2 [ ACC ] STREAM LISTENING 6627 2971/master
private/smtp
unix 2 [ ACC ] STREAM LISTENING 6630 2971/master
private/relay
unix 2 [ ACC ] STREAM LISTENING 6633 2971/master
public/showq
unix 2 [ ACC ] STREAM LISTENING 8505 2971/master
private/error
unix 2 [ ACC ] STREAM LISTENING 8508 2971/master
private/retry
unix 2 [ ACC ] STREAM LISTENING 8511 2971/master
private/discard
unix 2 [ ACC ] STREAM LISTENING 8514 2971/master
private/local
unix 2 [ ACC ] STREAM LISTENING 8517 2971/master
private/virtual
unix 2 [ ACC ] STREAM LISTENING 8520 2971/master
private/lmtp
unix 2 [ ACC ] STREAM LISTENING 8523 2971/master
private/anvil
unix 2 [ ACC ] STREAM LISTENING 8526 2971/master
private/scache
unix 2 [ ACC ] STREAM LISTENING 3414073
19598/php-fpm.conf) /var/run/php5-fpm.sock
unix 2 [ ACC ] STREAM LISTENING 8529 2971/master
private/maildrop
unix 2 [ ACC ] STREAM LISTENING 8532 2971/master
private/uucp
unix 2 [ ACC ] STREAM LISTENING 8535 2971/master
private/ifmail
unix 2 [ ACC ] STREAM LISTENING 8538 2971/master
private/bsmtp
unix 2 [ ACC ] STREAM LISTENING 8541 2971/master
private/scalemail-backend
unix 2 [ ACC ] STREAM LISTENING 8544 2971/master
private/mailman
unix 2 [ ACC ] STREAM LISTENING 91504 15552/postgres
/var/run/postgresql/.s.PGSQL.5432
unix 2 [ ACC ] STREAM LISTENING 9883 1976/acpid
/var/run/acpid.socket
unix 2 [ ACC ] STREAM LISTENING 5803 2162/dbus-daemon
/var/run/dbus/system_bus_socket


2013/3/7 peixinchen <shangtefa@gmail.com>

> like this:
>
> $ netstat -nlp
>
> udp 0 0 10.168.16.205:54144 0.0.0.0:*
> 20456/php-fpm: pool
> udp 5664 0 0.0.0.0:54086 0.0.0.0:*
> 9687/php-fpm: pool
> udp 0 0 0.0.0.0:54088 0.0.0.0:*
> 9687/php-fpm: pool
> udp 5664 0 0.0.0.0:54103 0.0.0.0:*
> 19114/php-fpm: pool
> udp 0 0 10.168.16.205:54104 0.0.0.0:*
> 19114/php-fpm: pool
> udp 0 0 0.0.0.0:54105 0.0.0.0:*
> 19114/php-fpm: pool
> udp 0 0 10.168.16.205:54109 0.0.0.0:*
> 17451/php-fpm: pool
> udp 0 0 10.168.16.205:54110 0.0.0.0:*
> 18259/php-fpm: pool
> udp 0 0 0.0.0.0:54111 0.0.0.0:*
> 18259/php-fpm: pool
> udp 0 0 10.168.16.205:54135 0.0.0.0:*
> 23890/php-fpm: pool
> udp 0 0 10.168.16.205:54136 0.0.0.0:*
> 22221/php-fpm: pool
> udp 5664 0 0.0.0.0:54141 0.0.0.0:*
> 26125/php-fpm: pool
> udp 0 0 10.168.16.205:54142 0.0.0.0:*
> 26125/php-fpm: pool
> udp 0 0 0.0.0.0:54143 0.0.0.0:*
> 26125/php-fpm: pool
>
> does these for master/worker communication?
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "highload-php-en" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to highload-php-en+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



--
Пашин Анатолий,
эникейщик.

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
peixinchen
Re: why php-fpm use some udp port?
March 07, 2013 05:20AM
Maybe this is the point, thanks.

在 2013年3月7日星期四UTC+8下午4时48分30秒,Jérôme Loyet写道:
>
> are you sure it's not then PHP code FPM is running that opens those UDP
> ports ?
>
>
>
>
> 2013/3/7 peixinchen <shan...@gmail.com <javascript:>>
>
>> like this:
>>
>> $ netstat -nlp
>>
>> udp 0 0 10.168.16.205:54144 0.0.0.0:*
>> 20456/php-fpm: pool
>> udp 5664 0 0.0.0.0:54086 0.0.0.0:*
>> 9687/php-fpm: pool
>> udp 0 0 0.0.0.0:54088 0.0.0.0:*
>> 9687/php-fpm: pool
>> udp 5664 0 0.0.0.0:54103 0.0.0.0:*
>> 19114/php-fpm: pool
>> udp 0 0 10.168.16.205:54104 0.0.0.0:*
>> 19114/php-fpm: pool
>> udp 0 0 0.0.0.0:54105 0.0.0.0:*
>> 19114/php-fpm: pool
>> udp 0 0 10.168.16.205:54109 0.0.0.0:*
>> 17451/php-fpm: pool
>> udp 0 0 10.168.16.205:54110 0.0.0.0:*
>> 18259/php-fpm: pool
>> udp 0 0 0.0.0.0:54111 0.0.0.0:*
>> 18259/php-fpm: pool
>> udp 0 0 10.168.16.205:54135 0.0.0.0:*
>> 23890/php-fpm: pool
>> udp 0 0 10.168.16.205:54136 0.0.0.0:*
>> 22221/php-fpm: pool
>> udp 5664 0 0.0.0.0:54141 0.0.0.0:*
>> 26125/php-fpm: pool
>> udp 0 0 10.168.16.205:54142 0.0.0.0:*
>> 26125/php-fpm: pool
>> udp 0 0 0.0.0.0:54143 0.0.0.0:*
>> 26125/php-fpm: pool
>>
>> does these for master/worker communication?
>>
>> --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "highload-php-en" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to highload-php-...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 119
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready