← 返回命令列表

Linux command

prlimit 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

prlimit

Example

prlimit -p [pid]

Example

prlimit -n [1024] [command]

说明

prlimit gets or sets process resource limits. It can query limits for a running process or run a new command with specified limits. Limits can be set as soft:hard or just a single value for both. The tool provides finer control than ulimit, allowing modification of another process's limits and setting both soft and hard limits simultaneously.

参数

-p, --pid _pid_
Process ID to query or modify
-n, --nofile _limit_
Maximum number of open files
-u, --nproc _limit_
Maximum number of processes
-s, --stack _limit_
Maximum stack size
-v, --as _limit_
Maximum virtual memory size
-m, --rss _limit_
Maximum resident set size

FAQ

What is the prlimit command used for?

prlimit gets or sets process resource limits. It can query limits for a running process or run a new command with specified limits. Limits can be set as soft:hard or just a single value for both. The tool provides finer control than ulimit, allowing modification of another process's limits and setting both soft and hard limits simultaneously.

How do I run a basic prlimit example?

Run `prlimit` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -p, --pid _pid_ do in prlimit?

Process ID to query or modify