To find the maximum number of pseudo-terminals (PTY) in IBM AIX:
# lsattr -l pty0 -E
To increase or decrease the Pseudo Terminals
# smit pty
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
STATE to be configured at boot time [available]
Maximum number of Pseudo-Terminals [256] --change this #
Maximum number of BSD Pseudo-Terminals [16]
--------------------------------------------------------------------------------------------------------
Diagnosing the problem The symptoms may indicate that there is an application that is holding on to ptys and not releasing it.
1. Login to console .
2. Try using the 'fuser' command to find the culprit application, like this:
# cd /dev/pts
# fuser *
The 'fuser' command will list all PIDs associated with each pty device.
If there is a process that is not releasing its ptys, you will see its PID occur many times in the fuser output above .
3. Verify which process is holding the pty's and inform the respective team for corrective action.
# lsattr -l pty0 -E
To increase or decrease the Pseudo Terminals
# smit pty
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
STATE to be configured at boot time [available]
Maximum number of Pseudo-Terminals [256] --change this #
Maximum number of BSD Pseudo-Terminals [16]
--------------------------------------------------------------------------------------------------------
Diagnosing the problem The symptoms may indicate that there is an application that is holding on to ptys and not releasing it.
1. Login to console .
2. Try using the 'fuser' command to find the culprit application, like this:
# cd /dev/pts
# fuser *
The 'fuser' command will list all PIDs associated with each pty device.
If there is a process that is not releasing its ptys, you will see its PID occur many times in the fuser output above .
3. Verify which process is holding the pty's and inform the respective team for corrective action.