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:
ulimit -aH
Command output similar to the following example is displayed: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:
ulimit -aS
Command output similar to the following example is displayed: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:
cat /proc/PID/limits
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.$ 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 The following example shows the ulimit values for the controller process: