文档章节

AIX stack_hard参数

o
 osc_1ee7cxmx
发布于 2018/08/06 14:59
字数 854
阅读 0
收藏 0

精选30+云产品,助力企业轻松上云!>>>

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

 

o
粉丝 0
博文 500
码字总数 0
作品 0
私信 提问
加载中
请先登录后再评论。

暂无文章

linux下java环境搭建

1、jdk下载: 官方地址:https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html 如下图所示,我这边选择的是红框中的版本 2、压缩包上传至服务器 将下载的压缩包上传...

wc_飞豆
55分钟前
17
0
面试题:Java对象不再使用时,为什么要赋值为null?

前言 许多Java开发者都曾听说过“不使用的对象应手动赋值为null“这句话,而且好多开发者一直信奉着这句话;问其原因,大都是回答“有利于GC更早回收内存,减少内存占用”,但再往深入问就回...

码农突围
57分钟前
22
0
设计模式(5) 原型模式

原型模式 原型模式的适用场景 浅拷贝 深拷贝 用Initialize方法修改初始化状态 原型模式与之前学习的各种工厂方法、单例模式、建造者模式最大、最直观的区别在于,它是从一个既有的对象“克隆...

zhixin9001
57分钟前
7
0
获取免费的pycharm激活码网站

http://www.lookdiv.com/

云烟成雨forever
57分钟前
27
0
用Helm部署Kubernetes应用,支持多环境部署与版本回滚

1 前言 Helm是优秀的基于Kubernetes的包管理器。利用Helm,可以快速安装常用的Kubernetes应用,可以针对同一个应用快速部署多套环境,还可以实现运维人员与开发人员的职责分离。现在让我们安...

南瓜慢说
58分钟前
25
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部