如何查看程序是否在运行-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
相关推荐
LongRunning8 小时前
【Linux】RK3568-OpenCV+YOLO(八)
linux·opencv·yolo
民乐团扒谱机11 小时前
【微实验】NSGA-II(非支配排序遗传算法)——解决多目标优化问题的“自然选择模拟器”
linux·人工智能·算法
물の韜11 小时前
ZYNQ/FMQL系列Linux之I2C开发实战
linux·arm开发·嵌入式硬件·设备树·iic·zynq
qq_3718021111 小时前
Ubuntu Linux中安装WorkBuddy
linux·运维·服务器·ubuntu
无足鸟ICT11 小时前
【RHCA+】iptraf-ng(网络监控分析)
linux·网络
独隅12 小时前
WebStorm 在 Linux 环境下的实战安装与高效开发指南
linux·ide·webstorm
坤坤子吖13 小时前
Linux网络编程:TCP服务器的多进程与多线程实现
linux·服务器·开发语言·网络·c++·笔记·学习
阡陌数智14 小时前
Claude API新版本重大变更与安全升级指南
java·linux·安全
奶茶树14 小时前
【Linux】环境开发工具(vim,gcc,g++,Makefile)
linux·运维·vim
木子欢儿18 小时前
国内 macOS/Linux 安装 rust
linux·运维·服务器·macos·rust