Home > 感悟 > php-fpm卡死,经查是pcscd服务占用了太多连接数

业务量太大的时候,lnmp下的php-fpm就卡死了。查了半天,发现有个pcscd.comm占用了好几千个连接数,极其壮观:
8279987326chatroom_1475651969324_62
查linux官方文档,解释这个服务:
pcscd is the daemon program for pcsc-lite and the MuscleCard framework. It is a resource manager that coordinates communications with smart card readers and smart cards and cryptographic tokens that are connected to the system.pcscd is normally started at boot time from /etc/init.d/pcscd. It allows applications to access smart cards and readers without knowing details of the card or reader.
原来是智能卡的支持服务,果断关掉:
[admin@APP5 ~]$ sudo service pcscd stop
Stopping PC/SC smart card daemon (pcscd): [ OK ]
查看连接数,瞬间降下来了。
然后chkconfig 把pcscd服务自启动给禁用掉:
chkconfig pcscd off
搞定。
至于为什么启动了这么多连接数,具体原因未明,估计是linux虚拟机系统没配置好。

本站内容受著作权法保护。个人 blog 转载时请遵循 “署名-非商业用途-保持一致” 的创作共用协议;商业网站或未授权媒体不得复制本站内容。
Categories: 感悟 Tags: ,

Comments (2) Trackbacks (0) 本篇共有 2 篇评论↓
  1. 2017-05-14 16:22 | #1

    受教了!呵呵!

  2. 2017-06-05 16:13 | #2

    相当精彩的博客!

  1. No trackbacks yet.