- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sshd do_exec_no_pty: fork: Resource temporarily un...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2011 06:46 PM
11-28-2011 06:46 PM
sshd do_exec_no_pty: fork: Resource temporarily unavailable
Hi all,
I have a system with mant errors said "do_exec_no_pty: fork: Resource temporarily unavailable". I have checked there are many ssh connection about 665 ssh connection. how to fix this problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2011 07:26 PM
11-28-2011 07:26 PM
Re: sshd do_exec_no_pty: fork: Resource temporarily unavailable
Are you out of ptys? What are your kctune(1m) kernel parms for: npty and nstrpty
And what is your kcusage(1m) values for those parms?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2011 07:30 PM
11-28-2011 07:30 PM
Re: sshd do_exec_no_pty: fork: Resource temporarily unavailable
bash-4.1# kcusage
Tunable Usage / Setting
=============================================
filecache_max 6511497216 / 6523100774
maxdsiz 268369920 / 1073741824
maxdsiz_64bit 3949608960 / 4294967296
maxfiles_lim 383 / 4096
maxssiz 786432 / 8388608
maxssiz_64bit 8388608 / 268435456
maxtsiz 35868672 / 100663296
maxtsiz_64bit 8495104 / 1073741824
maxuprc 281 / 256
max_thread_proc 312 / 3000
msgmni 2 / 512
msgtql 0 / 1024
nflocks 53 / 4096
ninode 1702 / 8192
nkthread 2271 / 8416
nproc 665 / 4200
npty 0 / 60
nstrpty 2 / 60
nstrtel 1 / 60
nswapdev 1 / 32
nswapfs 0 / 32
semmni 31 / 2048
semmns 149 / 4096
shmmax 17879320 / 1073741824
shmmni 10 / 400
shmseg 3 / 300
maxuprc usage greater than configured.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2011 07:52 PM - edited 11-28-2011 07:53 PM
11-28-2011 07:52 PM - edited 11-28-2011 07:53 PM
Re: sshd do_exec_no_pty: fork: Resource temporarily unavailable
>npty 0 / 60
>nstrpty 2 / 60
Hmm, that's not close to 60 or your 665 ssh connections.
Looking at fork(2), indicates EAGAIN if too many processes total (nproc 665 / 4200) or too many per user (maxuprc 281 / 256).
>I have checked there are many ssh connection about 665 ssh connection. How to fix this problem?
Are these all by one (or a few) users?
>maxuprc usage greater than configured.
Right, that looks like the problem. You should be able to use kctune(1m) to increase it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2011 08:04 PM
11-28-2011 08:04 PM
Re: sshd do_exec_no_pty: fork: Resource temporarily unavailable
all connection by one user. this server used for monitoring dashboard and there are many ssh process from other server to this server to put data for monitoring
-> Right, that looks like the problem. You should be able to use kctune(1m) to increase it.
currently, i have increased this parameter to 4096.
many thankss, let me monitor this changes.