标签归档:LINUX最大线程数

LINUX最大线程数及最大进程数

查看最大线程数:

cat /proc/sys/kernel/threads-max

ulimit

User limits – limit the use of system-wide resources.

Syntax
ulimit [-acdfHlmnpsStuv] [limit]

Options

-S   Change and report the soft limit associated with a resource.
-H   Change and report the hard limit associated with a resource.

-a   All current limits are reported.
-c   The maximum size of core files created.
-d   The maximum size of a process’s data segment.
-f   The maximum size of files created by the shell(default option)
-l   The maximum size that may be locked into memory.
-m   The maximum resident set size.
-n   The maximum number of open file descriptors.
-p   The pipe buffer size.
-s   The maximum stack size.
-t   The maximum amount of cpu time in seconds.
-u   The maximum number of processes available to a single user.
-v   The maximum amount of virtual memory available to the process.
继续阅读