Operating System - HP-UX
1752307 Members
5066 Online
108786 Solutions
New Discussion юеВ

Problem with number of connections.

 
Pheroz Tengra
Advisor

Problem with number of connections.

I have HPUX 10-20 running Oracle 7.3.4. What we are noticing are when we had reach 64 connection limit, the system would not allow any further oracle connections to be established. The error codes that are generated are not available. So is there any TCP/IP connection limit that may inhibit the oracle connections. ? The information is sketchy but this is all I have to go by.
12 REPLIES 12
harry d brown jr
Honored Contributor

Re: Problem with number of connections.


Can you post your kernel parameters?

Take a look at npty.

live free or die
harry
Live Free or Die
Michael Tully
Honored Contributor

Re: Problem with number of connections.

Do your users actually 'login' to your system ? If so, you have most likely run out of pseudo tty devices. These relate directly to your kernel parameter 'npty'. You would need to generate a new kernel and have a short outage whilst your system reboots with a new kernel. To be sure, post you existing kernel parameters.

# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system

post a copy of the system file that gets generated.
Anyone for a Mutiny ?
Pheroz Tengra
Advisor

Re: Problem with number of connections.

My Kernel Parameter
-- npty = 120
-- nstrpty = 60

I will try to post the remaining parameters however I was having difficulty with the command posted. I did exactly as requested, and it just returns back with no errors. What am I doing wrong.?
Michael Tully
Honored Contributor

Re: Problem with number of connections.

As I stated before it seems that your system has run out of pseudo tty devices. You will need to generate a new kernel and have your system reboot with the new kernel. There are two way to go about this. From the command line or you canould use 'sam'.

# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# vi system (Make changes the values of 'npty' and 'nstrpty' say at least 500 for each)
save the file

# /usr/sbin/mk_kernel -s system
# mv /stand/vmunix /stand/vmunix_prev
# mv /stand/build/vmunix_test /stand/vmunix

# cd /

Reboot you system
# shutdown -r -y 0

If you are in any way uncomfortable, use 'sam'
Anyone for a Mutiny ?
Bill Hassell
Honored Contributor

Re: Problem with number of connections.

You are very likely out of pty device files. While you can change the kernel parameters, they will be ineffective until you run insf to create the additional device files. Rather than explain all the details, use SAM, and change both npty and nstrpty to 250. SAM will automatically generate the matching device files and re-gen the kernel. This will require a reboot.


Bill Hassell, sysadmin
rick jones
Honored Contributor

Re: Problem with number of connections.

There are no fixed limits to the number of connections in the TCP/IP stack of HP-UX 10.20 (or 11.X for that matter).

As far as TCP is concerned, so long as there is memory enough to hold the connections, it will allow them.

Now, given that a TCP connection is accessed via a socket, and a socket is a file descriptor, the per-process and system-wide limits on the number of open file descriptors does provide an upper bound .
there is no rest for the wicked yet the virtuous have no pillows
Pheroz Tengra
Advisor

Re: Problem with number of connections.

I did change the npty from 120 --> 240, and nstrpty from 60 --> 120, using SAM, and re-booted the system.

No improvement yet, gathering more information and keep you guys posted, and thanks for all your help.

Wodisch
Honored Contributor

Re: Problem with number of connections.

Hi,

how about your Oracle instance's parameters?
- is "processes" big enough?
- do you have sufficient "semmns"? (Ok, that's another kernel parameter)
- do you have enough "dml_locks"?

FWIW,
Wodisch
Wodisch
Honored Contributor

Re: Problem with number of connections.

Hi,

how about your Oracle instance's parameters?
- is "processes" big enough?
- do you have sufficient "semmns"? (Ok, that's another kernel parameter)
- do you have enough "dml_locks"?
- how about "max_files"? (another kernel parameter)

FWIW,
Wodisch