记录器和三通在后台运行?

sto*_*212 0 background-process tee

有时我注意到服务器运行缓慢,在那些时候 aps -e显示loggertee正在运行,但我想不出为什么。这是一个已知的问题?为什么这些需要在不被调用的情况下运行?发生这种情况时,运行的系统很少,但可能与运行 Chromium 有某种联系,但我不确定。

Mic*_*ton 5

使用pstree -s <PID>找出一个进程的父母。

例如:

$ pstree -ps 1518
systemd(1)???nginx(1518)???nginx(1519)
                         ??nginx(1520)
                         ??nginx(1521)
                         ??nginx(1522)
                         ??nginx(1523)
Run Code Online (Sandbox Code Playgroud)

如果进程是由正在运行的服务启动的,systemctl status <PID>则将显示相应的服务。

$ systemctl status 1523
? nginx.service - The nginx HTTP and reverse proxy server
   Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/nginx.service.d
           ??override.conf
   Active: active (running) since Sat 2019-08-10 06:36:27 GMT; 2 weeks 4 days ago
 Main PID: 1518 (nginx)
    Tasks: 6
   Memory: 497.3M
   CGroup: /system.slice/nginx.service
           ??1518 nginx: master process /usr/sbin/nginx
           ??1519 nginx: worker process
           ??1520 nginx: worker process
           ??1521 nginx: worker process
           ??1522 nginx: worker process
           ??1523 nginx: cache manager process
Run Code Online (Sandbox Code Playgroud)