OS:AIX 7.1
root、oracle、grid用户查看资源限制,其中stack受限,需要在/etc/security/limits中增加stack_hard = -1,受硬限制限制!
1 [oracle@DB-003]/home/oracle$ulimit -a 2 time(seconds) unlimited 3 file(blocks) unlimited 4 data(kbytes) unlimited 5 stack(kbytes) 4194304 6 memory(kbytes) unlimited 7 coredump(blocks) unlimited 8 nofiles(descriptors) unlimited 9 threads(per process) unlimited 10 processes(per user) unlimited 11 12 # su - grid 13 $ ulimit -a 14 time(seconds) unlimited 15 file(blocks) unlimited 16 data(kbytes) unlimited 17 stack(kbytes) 4194304 18 memory(kbytes) unlimited 19 coredump(blocks) unlimited 20 nofiles(descriptors) unlimited 21 threads(per process) unlimited 22 processes(per user) unlimited 23 24 # ulimit -a 25 time(seconds) unlimited 26 file(blocks) unlimited 27 data(kbytes) unlimited 28 stack(kbytes) 4194304 29 memory(kbytes) unlimited 30 coredump(blocks) unlimited 31 nofiles(descriptors) unlimited 32 threads(per process) unlimited 33 processes(per user) unlimited
1 # cat /etc/security/limits 2 3 * 4 * Sizes are in multiples of 512 byte blocks, CPU time is in seconds 5 * 6 * fsize - soft file size in blocks 7 * core - soft core file size in blocks 8 * cpu - soft per process CPU time limit in seconds 9 * data - soft data segment size in blocks 10 * stack - soft stack segment size in blocks 11 * rss - soft real memory usage in blocks 12 * nofiles - soft file descriptor limit 13 * fsize_hard - hard file size in blocks 14 * core_hard - hard core file size in blocks 15 * cpu_hard - hard per process CPU time limit in seconds 16 * data_hard - hard data segment size in blocks 17 * stack_hard - hard stack segment size in blocks 18 * rss_hard - hard real memory usage in blocks 19 * nofiles_hard - hard file descriptor limit 20 * 21 * The following table contains the default hard values if the 22 * hard values are not explicitly defined: 23 * 24 * Attribute Value 25 * ========== ============ 26 * fsize_hard set to fsize 27 * cpu_hard set to cpu 28 * core_hard -1 29 * data_hard -1 30 * stack_hard 8388608 31 * rss_hard -1 32 * nofiles_hard -1 33 * 34 * NOTE: A value of -1 implies "unlimited" 35 * 36 37 default: 38 fsize = -1 39 core = -1 40 cpu = -1 41 data = -1 42 rss = -1 43 stack = -1 44 nofiles = -1 45 46 root: 47 48 daemon: 49 50 bin: 51 52 sys: 53 54 adm: 55 56 uucp: 57 58 guest: 59 60 nobody: 61 62 lpd: 63 64 pconsole: 65 stack_hard = 131072 66 data = 1280000 67 data_hard = 1280000 68 69 esaadmin: 70 stack = 393216 71 stack_hard = 393216 72 73 oracle: 74 fsize = -1 75 core = -1 76 cpu = -1 77 data = -1 78 rss = -1 79 stack = -1 80 nofiles = -1 81 82 83 grid: 84 fsize = -1 85 core = -1 86 cpu = -1 87 data = -1 88 rss = -1 89 stack = -1 90 nofiles = -1 91 92 root: 93 fsize = -1 94 core = -1 95 cpu = -1 96 data = -1 97 rss = -1 98 stack = -1 99 nofiles = -1
1 # cat /etc/security/limits 2 3 * 4 * Sizes are in multiples of 512 byte blocks, CPU time is in seconds 5 * 6 * fsize - soft file size in blocks 7 * core - soft core file size in blocks 8 * cpu - soft per process CPU time limit in seconds 9 * data - soft data segment size in blocks 10 * stack - soft stack segment size in blocks 11 * rss - soft real memory usage in blocks 12 * nofiles - soft file descriptor limit 13 * fsize_hard - hard file size in blocks 14 * core_hard - hard core file size in blocks 15 * cpu_hard - hard per process CPU time limit in seconds 16 * data_hard - hard data segment size in blocks 17 * stack_hard - hard stack segment size in blocks 18 * rss_hard - hard real memory usage in blocks 19 * nofiles_hard - hard file descriptor limit 20 * 21 * The following table contains the default hard values if the 22 * hard values are not explicitly defined: 23 * 24 * Attribute Value 25 * ========== ============ 26 * fsize_hard set to fsize 27 * cpu_hard set to cpu 28 * core_hard -1 29 * data_hard -1 30 * stack_hard 8388608 31 * rss_hard -1 32 * nofiles_hard -1 33 * 34 * NOTE: A value of -1 implies "unlimited" 35 * 36 37 default: 38 fsize = -1 39 core = -1 40 cpu = -1 41 data = -1 42 rss = -1 43 stack = -1 44 stack_hard = -1 -->增加这个即可 45 nofiles = -1 46 47 root: 48 49 daemon: 50 51 bin: 52 53 sys: 54 55 adm: 56 57 uucp: 58 59 guest: 60 61 nobody: 62 63 lpd: 64 65 pconsole: 66 stack_hard = 131072 67 data = 1280000 68 data_hard = 1280000 69 70 esaadmin: 71 stack = 393216 72 stack_hard = 393216 73 74 oracle: 75 fsize = -1 76 core = -1 77 cpu = -1 78 data = -1 79 rss = -1 80 stack = -1 81 nofiles = -1 82 83 84 grid: 85 fsize = -1 86 core = -1 87 cpu = -1 88 data = -1 89 rss = -1 90 stack = -1 91 nofiles = -1 92 93 root: 94 fsize = -1 95 core = -1 96 cpu = -1 97 data = -1 98 rss = -1 99 stack = -1 100 nofiles = -1