Connection problems using IDS 7.24 on HP UX 11.00
Posted in 2011
Topics: Backup & Restore, Storage & Space Management, Connectivity: ODBC / JDBC / .NET, Server Administration, Transactions, Locking & Isolation, Logging & Checkpoints, Networking & sqlhosts Configuration, Migration, Import/Export & Data Conversion, Versions, Editions & End-of-Life
HI,
Has anyone of you experienced this by any chance.
I have a client using IDS 7.24.UC8A on HP UX 11.00 and connects tow
different ways: using Powerbuilder on one hand from PCs using Windows
and Flowmind using JDBC on the other side on a unix box.
There are 4 instances of Informix running on the HP server. The problem
we are facing si only one of the nstances. The one that receives
thegreatest number of connection requests.
They do not have the source code to the application coming through
FLowmind which resides on a separate UNIX server that acts as a client
to the HP server that rund IDS 7.24.
Hence we cannot change anything on the client side. For your
information, the POWERBUILDER conneciotns coming from the PCs are OK.
Some of the connections from Flowmind get rejected.
We tried to add poll threads. That did not help. I advised to add ports
and hence listen threads, but they cannot do that since they cannot
change the client configuration.
The online.log does not give any errors. Only the FLowmind log file says
that the request was rejected.
Here is what onsta gives us: we notice 165 rejected connections.
--------------------------------------------------------
$ onstat -g ntd
INFORMIX-OnLine Version 7.24.UC8A -- On-Line -- Up 06:40:42 -- 71672Kbytes
global network information:
#netscb connects read write q-free q-limits q-exceed
102/ 135 1872 1552945 1552947 35/ 35 240/ 10 0/ 0
Client Type Calls Accepted Rejected Read Write
sqlexec yes 1855 165 1547279 1549138
srvinfx yes 0 0 0 0
onspace yes 0 0 0 0
onlog yes 0 0 0 0
onparam yes 0 0 0 0
oncheck yes 0 0 0 0
onload yes 0 0 0 0
onunload yes 0 0 0 0
onmonitor yes 0 0 0 0
dr_accept yes 0 0 0 0
cdraccept no 0 0 0 0
ontape yes 1 0 3689 3689
srvstat yes 16 0 16 32
asfecho yes 0 0 0 0
listener yes 0 0 1956 84
crsamexec yes 0 0 0 0
safe yes 0 0 0 0
Totals 1872 165 1552940 1552943
------------------------------------------------------------------
Any great suggestions?
Any TCP parameters on the HP side?
Here come the ONCONFIG file the way we found it: it was modified later on
especially for the NETTYPE parameter with no luck:
------------------------------------------------------------------
#**************************************************************************
#
# INFORMIX SOFTWARE, INC.
#
# Title: onconfig.env4
# Description: INFORMIX-OnLine Configuration Parameters
#
#**************************************************************************
# Root Dbspace Configuration
ROOTNAME rootdbs # Root dbspace name
ROOTPATH /database6/root_env4_dbs
# Path for device containing root dbspace
ROOTOFFSET 0 # Offset of root dbspace into device (Kbytes)
ROOTSIZE 100000
# Disk Mirroring Configuration Parameters
MIRROR 0 # Mirroring flag (Yes = 1, No = 0)
MIRRORPATH # Path for device containing mirrored root
MIRROROFFSET 0 # Offset into mirrored device (Kbytes)
# Physical Log Configuration
PHYSDBS rootdbs # Location (dbspace) of physical log
PHYSFILE 20000 # Physical log file size (Kbytes)
# Logical Log Configuration
LOGFILES 40 # Number of logical log files
LOGSIZE 1000 # Logical log size (Kbytes)
# Diagnostics
MSGPATH /opt/informix7/gael_env4.log # System message log file path
CONSOLE /dev/null # System console message path
ALARMPROGRAM /opt/informix7/etc/log_full.sh #Alarm program path
# System Archive Tape Device
TAPEDEV /dev/null # Tape device path
TAPEBLK 16 # Tape block size (Kbytes)
TAPESIZE 1300000 # Maximum amount of data to put on tape (Kbytes)
# Log Archive Tape Device
LTAPEDEV /log_infx/env4/log_env4 # Log tape device path
LTAPEBLK 16 # Log tape block size (Kbytes)
LTAPESIZE 1300000 # Max amount of data to put on log tape (Kbytes)
# Optical
STAGEBLOB # INFORMIX-OnLine/Optical staging area
# System Configuration
SERVERNUM 6 # Unique id corresponding to a OnLine instance
DBSERVERNAME env4 # Name of default database server
DBSERVERALIASES env4_shm # List of alternate dbservernames# NETTYPE # Configure poll thread(s) for nettype
DEADLOCK_TIMEOUT 60 # Max time to wait of lock in distributed env.
RESIDENT 0 # Forced residency flag (Yes = 1, No = 0)
MULTIPROCESSOR 1 # 0 for single-processor, 1 for multi-processor
NUMCPUVPS 2 # Number of user (cpu) vps
SINGLE_CPU_VP 0 # If non-zero, limit number of cpu vps to one
NOAGE 0 # Process aging
AFF_SPROC 0 # Affinity start processor
AFF_NPROCS 0 # Affinity number of processors
# Shared Memory Parameters
LOCKS 30000 # Maximum number of locks
BUFFERS 10000 # Maximum number of shared buffers
NUMAIOVPS 7 # Number of IO vps
PHYSBUFF 64 # Physical log buffer size (Kbytes)
LOGBUFF 64 # Logical log buffer size (Kbytes)LOGSMAX 100 # Maximum number of logical log files
CLEANERS 8 # Number of buffer cleaner processes
SHMBASE 0x0 # Shared memory base address
SHMVIRTSIZE 8000 # initial virtual shared memory segment size
SHMADD 8192 # Size of new shared memory segments (Kbytes)
SHMTOTAL 0 # Total shared memory (Kbytes). 0=>unlimited
CKPTINTVL 300 # Check point interval (in sec)
LRUS 8 # Number of LRU queues
LRU_MAX_DIRTY 60 # LRU percent dirty begin cleaning limit
LRU_MIN_DIRTY 30 # LRU percent dirty end cleaning limit
LTXHWM 50 # Long transaction high water mark percentage
LTXEHWM 60 # Long transaction high water mark (exclusive)
TXTIMEOUT 0x12c # Transaction timeout (in sec)
STACKSIZE 32 # Stack size (Kbytes)
# System Page Size
# BUFFSIZE - OnLine no longer supports this configuration parameter.
# To determine the page size used by OnLine on your platform
# see the last line of output from the command, 'onstat -b'.
# Recovery Variables
# OFF_RECVRY_THREADS:
# Number of parallel worker threads during fast recovery or an offline restore.
# ON_RECVRY_THREADS:
# Number of parallel worker threads during an online restore.
OFF_RECVRY_THREADS 10 # Default number of offline worker threads
ON_RECVRY_THREADS 1 # Default number of online worker threads
# Data Replication Variables
# DRAUTO: 0 manual, 1 retain type, 2 reverse type
DRAUTO 0 # DR automatic switchover
DRINTERVAL 30 # DR max time between DR buffer flushes (in sec)
DRTIMEOUT 30 # DR network timeout (in sec)
DRLOSTFOUND /opt/informix7/etc/dr.lostfound # DR lost+found file path
# Backup/Restore variables
BAR_ACT_LOG /tmp/gael_env3_act.log
BAR_MAX_BACKUP 0
BAR_RETRY 1
BAR_NB_XPORT_COUNT 10
BAR_XFER_BUF_SIZE 31
# Read Ahead Variables
RA_PAGES 50 # Number of pages to attempt to read ahead
RA_THRESHOLD 25 # Number of pages left before next group
# DBSPACETEMP:
# OnLine equivalent of DBTEMP for SE. This is the list of dbspaces
# that the OnLine SQL Engine will use to create temp tables etc.
# If specified it must be a colon separated list of dbspaces that exist
# when the OnLine system is brought online. If not specified, or if
# all dbspaces specified are invalid, various ad hoc queries will create
# temporary files in /tmp instead.
DBSPACETEMP # Default temp dbspaces
# DUMP*:
# The followin
It looks like you are reach a limit of the HPUX OS which requires
special handling in the kernal. I believe 7.24 was actually built on HPUX
10 and
certified to run on HPUX 11. You will need to increase the max file limit
per process (NOT the global file limit, but the per process file limit).
I know at one time there were issues doing this through sam (HP
graphical kernel config tool). You would make the change, save
the change, but if you looked at /stand/system the change was
not there.
I believe the configuration parameter in the kernel is call
maxfiles_lim
Also, you will be much better offf with a nettype of the following
NETTYPE soctcp,2,1500,CPU # Configure poll thread(s) for nettype
John F. Miller III
STSM, Embedability Architect
miller3@us.ibm.com
503-578-5645
IBM Informix Dynamic Server (IDS)
ids-bounces@iiug.org wrote on 01/05/2011 09:59:28 AM:
> [image removed]
>
> Connection problems using IDS 7.24 on HP UX 11.00 [22347]
>
> Khaled Bentebal
>
> to:
>
> ids
>
> 01/05/2011 10:00 AM
>
> Sent by:
>
> ids-bounces@iiug.org
>
> Please respond to ids
>
> HI,
>
> Has anyone of you experienced this by any chance.
>
> I have a client using IDS 7.24.UC8A on HP UX 11.00 and connects tow
> different ways: using Powerbuilder on one hand from PCs using Windows
> and Flowmind using JDBC on the other side on a unix box.
>
> There are 4 instances of Informix running on the HP server. The problem
> we are facing si only one of the nstances. The one that receives
> thegreatest number of connection requests.
>
> They do not have the source code to the application coming through
> FLowmind which resides on a separate UNIX server that acts as a client
> to the HP server that rund IDS 7.24.
> Hence we cannot change anything on the client side. For your
> information, the POWERBUILDER conneciotns coming from the PCs are OK.
>
> Some of the connections from Flowmind get rejected.
>
> We tried to add poll threads. That did not help. I advised to add ports
> and hence listen threads, but they cannot do that since they cannot
> change the client configuration.
> The online.log does not give any errors. Only the FLowmind log file says
> that the request was rejected.
>
> Here is what onsta gives us: we notice 165 rejected connections.
> --------------------------------------------------------
> $ onstat -g ntd
> INFORMIX-OnLine Version 7.24.UC8A -- On-Line -- Up 06:40:42 -- 71672> Kbytes
> global network information:
>
> #netscb connects read write q-free q-limits q-exceed
> 102/ 135 1872 1552945 1552947 35/ 35 240/ 10 0/ 0
> Client Type Calls Accepted Rejected Read Write
> sqlexec yes 1855 165 1547279 1549138
> srvinfx yes 0 0 0 0
> onspace yes 0 0 0 0
> onlog yes 0 0 0 0
> onparam yes 0 0 0 0
> oncheck yes 0 0 0 0
> onload yes 0 0 0 0
> onunload yes 0 0 0 0
> onmonitor yes 0 0 0 0
> dr_accept yes 0 0 0 0
> cdraccept no 0 0 0 0
> ontape yes 1 0 3689 3689
> srvstat yes 16 0 16 32
> asfecho yes 0 0 0 0
> listener yes 0 0 1956 84
> crsamexec yes 0 0 0 0
> safe yes 0 0 0 0
> Totals 1872 165 1552940 1552943
>
> ------------------------------------------------------------------
>
> Any great suggestions?
>
> Any TCP parameters on the HP side?
>
> Here come the ONCONFIG file the way we found it: it was modified later on
> especially for the NETTYPE parameter with no luck:
>
> ------------------------------------------------------------------
>
#**************************************************************************
> #
> # INFORMIX SOFTWARE, INC.
> #
> # Title: onconfig.env4
> # Description: INFORMIX-OnLine Configuration Parameters
> #
>
#**************************************************************************
>
> # Root Dbspace Configuration
>
> ROOTNAME rootdbs # Root dbspace name
> ROOTPATH /database6/root_env4_dbs>
> # Path for device containing root dbspace
> ROOTOFFSET 0 # Offset of root dbspace into device (Kbytes)
> ROOTSIZE 100000>
> # Disk Mirroring Configuration Parameters
>
> MIRROR 0 # Mirroring flag (Yes = 1, No = 0)
> MIRRORPATH # Path for device containing mirrored root
> MIRROROFFSET 0 # Offset into mirrored device (Kbytes)>
> # Physical Log Configuration
>
> PHYSDBS rootdbs # Location (dbspace) of physical log
> PHYSFILE 20000 # Physical log file size (Kbytes)>
> # Logical Log Configuration
>
> LOGFILES 40 # Number of logical log files
> LOGSIZE 1000 # Logical log size (Kbytes)>
> # Diagnostics
>
> MSGPATH /opt/informix7/gael_env4.log # System message log file path
> CONSOLE /dev/null # System console message path
> ALARMPROGRAM /opt/informix7/etc/log_full.sh #Alarm program path>
> # System Archive Tape Device
>
> TAPEDEV /dev/null # Tape device path
> TAPEBLK 16 # Tape block size (Kbytes)
> TAPESIZE 1300000 # Maximum amount of data to put on tape (Kbytes)>
> # Log Archive Tape Device
>
> LTAPEDEV /log_infx/env4/log_env4 # Log tape device path
> LTAPEBLK 16 # Log tape block size (Kbytes)
> LTAPESIZE 1300000 # Max amount of data to put on log tape (Kbytes)>
> # Optical
>
> STAGEBLOB # INFORMIX-OnLine/Optical staging area
>
> # System Configuration
>
> SERVERNUM 6 # Unique id corresponding to a OnLine instance
> DBSERVERNAME env4 # Name of default database server
> DBSERVERALIASES env4_shm # List of alternate dbservernames> # NETTYPE # Configure poll thread(s) for nettype
> DEADLOCK_TIMEOUT 60 # Max time to wait of lock in distributed env.
> RESIDENT 0 # Forced residency flag (Yes = 1, No = 0)
>
> MULTIPROCESSOR 1 # 0 for single-processor, 1 for multi-processor
> NUMCPUVPS 2 # Number of user (cpu) vps
> SINGLE_CPU_VP 0 # If non-zero, limit number of cpu vps to one
>
> NOAGE 0 # Process aging
> AFF_SPROC 0 # Affinity start processor
> AFF_NPROCS 0 # Affinity number of processors>
> # Shared Memory Parameters
>
> LOCKS 30000 # Maximum number of locks
> BUFFERS 10000 # Maximum number of shared buffers
> NUMAIOVPS 7 # Number of IO vps
> PHYSBUFF 64 # Physical log buffer size (Kbytes)
> LOGBUFF 64 # Logical log buffer size (Kbytes)> LOGSMAX 100 # Maximum number of logical log files
> CLEANERS 8 # Number of buffer cleaner processes
> SHMBASE 0x0 # Shared memory base address
> SHMVIRTSIZE 8000 # initial virtual shared memory segment size
> SHMADD 8192 # Size of new shared memory segments (Kbytes)
> SHMTOTAL 0 # Total shared memory (Kbytes). 0=>unlimited
> CKPTINTVL 300 # Check point interval (in sec)
> LRUS 8 # Number of LRU queues
> LRU_MAX_DIRTY 60 # LRU percent dirty begin cleaning limit
> LRU_MIN_DIRTY 30 # LRU percent dirty end cleaning limit
> LTXHWM 50 # Long transaction high water mark percentage
> LTXEHWM 60 # Long transaction high water mark (exclusive)
> TXTIMEOUT 0x12c # Transaction timeout (in sec)
> STACKSIZE 32 # Stack size (Kbytes)>
> # System Page Size
> # BUFFSIZE - OnLine no longer supports this configuration parameter.
> # To determine the page size used by OnLine on your platform@@NL
Thanks John for the info.
It seems that the problem went away by modifying the NETTYPE parameter to :
NETTYPE soctcp,2,1000,NET
I am still waiting for the client to come back to me for a definite
answer about the Kernel parameters.
Khaled Bentebal
Email: khaled.bentebal@consult-ix.fr
Le 05/01/11 20:03, John Miller iii a écrit :
> It looks like you are reach a limit of the HPUX OS which requires
> special handling in the kernal. I believe 7.24 was actually built on HPUX
> 10 and
> certified to run on HPUX 11. You will need to increase the max file limit
> per process (NOT the global file limit, but the per process file limit).
>
> I know at one time there were issues doing this through sam (HP
> graphical kernel config tool). You would make the change, save
> the change, but if you looked at /stand/system the change was
> not there.
>
> I believe the configuration parameter in the kernel is call
> maxfiles_lim
>
> Also, you will be much better offf with a nettype of the following
>
> NETTYPE soctcp,2,1500,CPU # Configure poll thread(s) for nettype>
> John F. Miller III
> STSM, Embedability Architect
> miller3@us.ibm.com
> 503-578-5645
> IBM Informix Dynamic Server (IDS)
>
> ids-bounces@iiug.org wrote on 01/05/2011 09:59:28 AM:
>
>> [image removed]
>>
>> Connection problems using IDS 7.24 on HP UX 11.00 [22347]
>>
>> Khaled Bentebal
>>
>> to:
>>
>> ids
>>
>> 01/05/2011 10:00 AM
>>
>> Sent by:
>>
>> ids-bounces@iiug.org
>>
>> Please respond to ids
>>
>> HI,
>>
>> Has anyone of you experienced this by any chance.
>>
>> I have a client using IDS 7.24.UC8A on HP UX 11.00 and connects tow
>> different ways: using Powerbuilder on one hand from PCs using Windows
>> and Flowmind using JDBC on the other side on a unix box.
>>
>> There are 4 instances of Informix running on the HP server. The problem
>> we are facing si only one of the nstances. The one that receives
>> thegreatest number of connection requests.
>>
>> They do not have the source code to the application coming through
>> FLowmind which resides on a separate UNIX server that acts as a client
>> to the HP server that rund IDS 7.24.
>> Hence we cannot change anything on the client side. For your
>> information, the POWERBUILDER conneciotns coming from the PCs are OK.
>>
>> Some of the connections from Flowmind get rejected.
>>
>> We tried to add poll threads. That did not help. I advised to add ports
>> and hence listen threads, but they cannot do that since they cannot
>> change the client configuration.
>> The online.log does not give any errors. Only the FLowmind log file says
>> that the request was rejected.
>>
>> Here is what onsta gives us: we notice 165 rejected connections.
>> --------------------------------------------------------
>> $ onstat -g ntd
>> INFORMIX-OnLine Version 7.24.UC8A -- On-Line -- Up 06:40:42 -- 71672>> Kbytes
>> global network information:
>>
>> #netscb connects read write q-free q-limits q-exceed
>> 102/ 135 1872 1552945 1552947 35/ 35 240/ 10 0/ 0
>> Client Type Calls Accepted Rejected Read Write
>> sqlexec yes 1855 165 1547279 1549138
>> srvinfx yes 0 0 0 0
>> onspace yes 0 0 0 0
>> onlog yes 0 0 0 0
>> onparam yes 0 0 0 0
>> oncheck yes 0 0 0 0
>> onload yes 0 0 0 0
>> onunload yes 0 0 0 0
>> onmonitor yes 0 0 0 0
>> dr_accept yes 0 0 0 0
>> cdraccept no 0 0 0 0
>> ontape yes 1 0 3689 3689
>> srvstat yes 16 0 16 32
>> asfecho yes 0 0 0 0
>> listener yes 0 0 1956 84
>> crsamexec yes 0 0 0 0
>> safe yes 0 0 0 0
>> Totals 1872 165 1552940 1552943
>>
>> ------------------------------------------------------------------
>>
>> Any great suggestions?
>>
>> Any TCP parameters on the HP side?
>>
>> Here come the ONCONFIG file the way we found it: it was modified later on
>> especially for the NETTYPE parameter with no luck:
>>
>> ------------------------------------------------------------------
>>
> #**************************************************************************
>
>> #
>> # INFORMIX SOFTWARE, INC.
>> #
>> # Title: onconfig.env4
>> # Description: INFORMIX-OnLine Configuration Parameters
>> #
>>
> #**************************************************************************
>
>> # Root Dbspace Configuration
>>
>> ROOTNAME rootdbs # Root dbspace name
>> ROOTPATH /database6/root_env4_dbs>>
>> # Path for device containing root dbspace
>> ROOTOFFSET 0 # Offset of root dbspace into device (Kbytes)
>> ROOTSIZE 100000>>
>> # Disk Mirroring Configuration Parameters
>>
>> MIRROR 0 # Mirroring flag (Yes = 1, No = 0)
>> MIRRORPATH # Path for device containing mirrored root
>> MIRROROFFSET 0 # Offset into mirrored device (Kbytes)>>
>> # Physical Log Configuration
>>
>> PHYSDBS rootdbs # Location (dbspace) of physical log
>> PHYSFILE 20000 # Physical log file size (Kbytes)>>
>> # Logical Log Configuration
>>
>> LOGFILES 40 # Number of logical log files
>> LOGSIZE 1000 # Logical log size (Kbytes)>>
>> # Diagnostics
>>
>> MSGPATH /opt/informix7/gael_env4.log # System message log file path
>> CONSOLE /dev/null # System console message path
>> ALARMPROGRAM /opt/informix7/etc/log_full.sh #Alarm program path>>
>> # System Archive Tape Device
>>
>> TAPEDEV /dev/null # Tape device path
>> TAPEBLK 16 # Tape block size (Kbytes)
>> TAPESIZE 1300000 # Maximum amount of data to put on tape (Kbytes)>>
>> # Log Archive Tape Device
>>
>> LTAPEDEV /log_infx/env4/log_env4 # Log tape device path
>> LTAPEBLK 16 # Log tape block size (Kbytes)
>> LTAPESIZE 1300000 # Max amount of data to put on log tape (Kbytes)>>
>> # Optical
>>
>> STAGEBLOB # INFORMIX-OnLine/Optical staging area
>>
>> # System Configuration
>>
>> SERVERNUM 6 # Unique id corresponding to a OnLine instance
>> DBSERVERNAME env4 # Name of default database server
>> DBSERVERALIASES env4_shm # List of alternate dbservernames>> # NETTYPE # Configure poll thread(s) for nettype
>> DEADLOCK_TIMEOUT 60 # Max time to wait of lock in distributed env.
>> RESIDENT 0 # Forced residency flag (Yes = 1, No = 0)
>>
>> MULTIPROCESSOR 1 # 0 for single-processor, 1 for multi-processor
>> NUMCPUVPS 2 # Number of user (cpu) vps
>> SINGLE_CPU_VP 0 # If non-zero, limit number of cpu vps to one
>>
>> NOAGE 0 # Process aging
>> AFF_SPROC 0 # Affinity start processor
>> AFF_NPROCS 0 # Affinity number of processors>>
>> # Shared Memory Parameters
>>
>> LOCKS 30000 # Maximum number of locks
>> BUFFERS 10000 # Maximum number of shared buffers
>> NUMAIOVPS 7 # Number of IO vps
>> PHYSBUFF 64 # Physical log buffer size (Kbytes)
>> LOGBUFF 64 # Logical log buffer size (Kbytes)>> LOGSMAX 100 # Maximum number of logical log files
>> CLEANERS 8 # Number of buffer cleaner processes
>> SHMBASE 0x0 # Shared memory base address
>> SHMVIRTSIZE 8000 # initial virtual shared memory segment size
>> SHMADD 8192 # Size of new shared memory segments (Kbytes)
>> SHMTOTAL 0 # Total shared memory (Kbytes). 0=>unlimited>> CK
Related threads
- Posting from the Informix-list
- Migrating from IDS 9.40.UC6 to 11.50.UC3
- Ip for a network session
- questions onstat -g