那些GS流程怎么样? [英] What about those GS processes
问题描述
我们网站上的那些GS流程是什么?这是一个商业内联网。
我有9个进程,我看到顶级命令
用户:www-data
每个需要37%到49%cpu
命令:gs
我在某处读过ghostscript ...不知道如何解决这个问题。我杀了pid butkeps回来了
谢谢
What are those GS processes on our site ? It's a business intranet.
I have like 9 processes I see with top command
user: www-data
each takes from 37 to 49 %cpu
command : gs
I read ghostscript somewhere... don't know how to fix this. I killed the pid butkeps getting back
thank you
推荐答案
我们不知道这些是什么进程。
要列出正在运行的进程,请使用长格式输出的ps
命令:
We can't know what are these processes.
To list the running processes use theps
command with long format output:
ps alx
要限制输出,请使用grep:
To limit the output use grep:
ps alx | grep gs
请注意,一行代表上述命令,当包含 gs 字符串时,可能还有其他非相关代码。
现在查找 ppid 列以查看哪个进程已启动 gs 命令。再次调用上面的 ps
命令,再次为 ppid 编号获取父进程的名称。这个过程可能是一个由Web服务器启动的CGI脚本。
最后查看启动过程的文档。
Note that one line is for the above command and there may be others non related ones when they contain the gs string.
Now lookup the ppid column to see which process has started the gs commands. Call the above ps
command again grepping now for the ppid number to get the name of the parent process. This process may be for example a CGI script which has been started by a web server.
Finally look up the documentation of the initiating process.
这篇关于那些GS流程怎么样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!