如何查看程序是否在运行-Linux

1.命令

bash 复制代码
ps aux | grep RiboCode2_manythreads.py

2.结果:

bash 复制代码
2020200+ 1063124 99.8 19.2 56105444 50796184 pts/0 Sl 18:40 114:36 python RiboCode2_manythreads.py -a ./RiboCode_annot -c config15d.txt -o ./ORFs_15d_final_result --gtf -t 15

从输出结果可以看出,有三个 python RiboCode2_manythreads.py 进程正在运行,并且每个进程都在消耗大量的 CPU 和内存资源。具体信息如下:

bash 复制代码
PID:1063124
CPU 使用率:99.8%
内存使用率:19.2%
启动时间:18:40
运行时间:114 分钟 36 秒
命令:python RiboCode2_manythreads.py -a ./RiboCode_annot -c config15d.txt -o ./ORFs_15d_final_result --gtf -t 15

查看进程详细信息:

bash 复制代码
ps -p 1063124 -o pid,ppid,cmd,%mem,%cpu,etime

查看实时资源使用情况:

bash 复制代码
top -p 1063124,1064924,1069779
相关推荐
hweiyu0014 分钟前
Linux命令:arptables
linux·运维
仙柒4151 小时前
管理网络安全
linux·运维·服务器
福尔摩斯·柯南2 小时前
Ubuntu 14.04/16.04/18.04/20.04/22.04/24.04/26.04全系列LTS长期支持版镜像IOS分享
linux·运维·ubuntu
xiaoming00183 小时前
JAVA项目打包部署运维全流程(多服务、批量)
java·linux·运维
浪客灿心3 小时前
Linux五种IO模型与非阻塞IO
linux·网络
洋哥网络科技3 小时前
centos7 升级openssh-10.2
linux·运维·服务器·系统安全
我先去打把游戏先3 小时前
【保姆级图文教程】:VMware虚拟机安装Ubuntu Server 22.04
linux·数据库·ubuntu
派葛穆4 小时前
Ubuntu-软件安装和执行
linux·运维·ubuntu
AlickLbc4 小时前
WSL2安装Ubuntu与Claude Code记录
linux·运维·ubuntu
青天喵喵4 小时前
Linux WiFi 架构解析:连接流程(基础篇二)
linux·运维·架构·嵌入式·wi-fi·sta·ap