如何查看程序是否在运行-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
相关推荐
weixin_520649872 分钟前
Modbus RTU
linux·运维·服务器
zhangfeng11335 分钟前
超算中心 高性能计算 slurm的linux版本 centos7,如何安装docker,如何安装torch2.4
linux·运维·服务器·开发语言·人工智能·机器学习·docker
Configure-Handler27 分钟前
linux-kernel-fault-codes
linux·运维·服务器
xiaoye-duck43 分钟前
《Linux系统编程》Linux 进程间通信之 System V 共享内存:IPC 底层原理与实战
linux
一勺菠萝丶1 小时前
Linux 服务器临时用户创建与删除教程
linux·运维·服务器
曲幽1 小时前
你的FastAPI又在服务器上“跑不起来”了?来,今天咱把打包这件事彻底聊透
linux·windows·python·docker·fastapi·web·pyinstaller·nssm·services
2023自学中1 小时前
imx6ull 开发板,RTMP 推流本地视频 到虚拟机
linux·音视频·嵌入式·开发板
驭渊的小故事1 小时前
网络初始1(2000字详细剖析网络的TCP/IP协议栈)
linux·服务器·网络
benjiangliu2 小时前
LINUX系统-18-EXT系列文件系统(三)
linux·运维·chrome
无足鸟ICT2 小时前
【RHCA+】~_.vimrc
linux