取消
顯示結果 
搜尋替代 
您的意思是: 

maxuthreads (=2048) exceeded for uid 201

maxuthreads (=2048) exceeded for uid 201

Jul 30 15:50:59 host05 vmunix: thread_create() failed for pid 226570: maxuthread

s (=2048) exceeded for uid 201

, 但此時 uid 201 的 process 卻未達到 600, why?
8 回覆

maxuthreads (=2048) exceeded for uid 201

Hi Eric,



> maxuthreads (=2048) exceeded for uid 201

The maxuthreads maps to max_threads_per_user and

task_create() related max_proc_per_user defined in /etc/sysconfigtab.



Compare the uid 201 to use the total processes and threads via

# ps -u201 | wc

# ps -mu201 | wc



The uid 201 had run a multi-threads in one AP process and

get the shortage on multi-threads creating. Please increase it from 2048 to 4096 or more .. in /etc/sysconfigtab.



The reboot is required for running.



Kind regards,

Richard.

maxuthreads (=2048) exceeded for uid 201

Hi all,



Please increase both max_proc_per_user and

max_threads_per_user in /etc/sysconfigtab then rebooring for AP requirement.



# sysconfig -q proc|grep per

max_proc_per_user = 1024

max_threads_per_user = 2048



Best regards,

Richard.

maxuthreads (=2048) exceeded for uid 201

h05#ps -u201 | wc

447 2957 39232

h05#ps -mu201 | wc

2199 6427 133131



--------------

請問這是指 uid201 的 thread = 2199?



--------------

h05#sysconfig -q proc|grep per

max_proc_per_user = 2048

max_threads_per_user = 2048

--------------

maxuthreads (=2048) exceeded for uid 201

Hi,



> 請問這是指 uid201 的 thread = 2199?

Yes. It is required to increased ASAP!



Why it has over the 2048?

Because some processes were forked by root from cron or "su - oracle -c ..." and getting

the child processes/threads from Euid (Execute uid)assigned.



Actually, the "max_threads_per_user=2048" is less to run on this Alpha system, please increase it as soon as quickly!



Best regards,

Richard.

maxuthreads (=2048) exceeded for uid 201

# sysconfig -q proc|grep per

max_proc_per_user = 0

max_threads_per_user = 0



另一台 Alpha server 都設成 0, 是 unlimited 的意思嗎?

maxuthreads (=2048) exceeded for uid 201

Hi,



Yes! See



# man sys_attrs_proc

..

max_proc_per_user

..



If you specify 0 for this attribute, the system does not check how many

processes a user creates.

..

max_threads_per_user

..



If you specify 0 for this attribute, the system does not check how many

threads a user creates.



Best regards,

Richard.

maxuthreads (=2048) exceeded for uid 201

請問這兩個參數 (max_proc_per_user, max_threads_per_user) 的設定值是否與 RESOURCE (RAM) 大小有關?

maxuthreads (=2048) exceeded for uid 201

Hi Eric,



沒有直接關聯!

但沒有設限, 同一 user 將可無限 fork or creating new task/threads 直到記憶體 (VM)不足!



Kind regards,

Richard.