Reviewing ulimit settings for Teracloud® Streams
Use these commands to review ulimit settings for Teracloud® Streams users and services.
Note: The ulimit command output shows the ulimit
settings for the user who runs the commands. For Teracloud®
Streams users that require ulimit settings, ensure that their settings satisfy the Teracloud®
Streams
ulimit requirements.
Procedure
Review ulimit settings.
- To review the hard ulimit settings, enter the following
command:
Command output similar to the following example is displayed:ulimit -aH
core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 100000 max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 100000 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) unlimited cpu time (seconds, -t) unlimited max user processes (-u) 257262 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
- To review the soft ulimit settings, enter the following
command:
Command output similar to the following example is displayed:ulimit -aS
core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 100000 max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 100000 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 10240 cpu time (seconds, -t) unlimited max user processes (-u) 257262 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
- To review the ulimit settings for a Teracloud®
Streams service, enter the following command as user root:
Run this command for each process on the resource. For example, you can find the domain controller service process ID (PID) by using the streamtool getdomainstate command. In the following example, the PID for the controller on host2.teracloud.com is 28350.cat /proc/PID/limits
The following example shows the ulimit values for the controller process:$ streamtool getdomainstate -d StreamsDomain --long --fmt %Nf domain: StreamsDomain State: STARTED Resource: host1.teracloud.com Status: RUNNING Services: WAITING:controller(22133) RUNNING:sws(22444) Tags: Version: *4.2.0.0 Resource: host2.teracloud.com Status: RUNNING Services: RUNNING:aas(28511),auditlog(28511),controller(28350),jmx(13944) Tags: Version: *4.2.0.0
$ sudo cat /proc/28350/limits Limit Soft Limit Hard Limit Units Max cpu time unlimited unlimited seconds Max file size unlimited unlimited bytes Max data size unlimited unlimited bytes Max stack size 8388608 unlimited bytes Max core file size 0 unlimited bytes Max resident set unlimited unlimited bytes Max processes 100000 100000 processes Max open files 100000 100000 files Max locked memory 65536 65536 bytes Max address space unlimited unlimited bytes Max file locks unlimited unlimited locks Max pending signals 7239 7239 signals Max msgqueue size 819200 819200 bytes Max nice priority 0 0 Max realtime priority 0 0 Max realtime timeout unlimited unlimited us