Home

 

Use the inet daemon (INETD)

 

To establish a TCP connection, follow these steps.

  1. Edit the file /etc/services. If you do not have the following line in the file, add it as shown:
    MQSeries       1414/tcp      # MQSeries channel listener

    To edit this file, be logged in as a superuser or root.

  2. Edit the file /etc/inetd.conf. If you do not have the following line in that file, add it as shown:
    MQSeries stream tcp nowait mqm /opt/mqm/bin/amqcrsta amqcrsta
    [-m queue.manager.name]

  3. Find the process ID of the inetd with the command:
    ps -ef | grep inetd

  4. Run the command:
    kill -1 inetd processid

If you have more than one queue manager on your system, and therefore require more than one service, add a line for each additional queue manager to both /etc/services and inetd.conf.

For example:

MQSeries1     1414/tcp
MQSeries2     1822/tcp
MQSeries1 stream tcp nowait mqm ⁄mqmtop⁄bin⁄amqcrsta amqcrsta -m QM1
MQSeries2 stream tcp nowait mqm ⁄mqmtop⁄bin⁄amqcrsta amqcrsta -m QM2

This avoids error messages being generated if there is a limitation on the number of outstanding connection requests queued at a single TCP port. For information about the number of outstanding connection requests, see Using the TCP listener backlog option.

The inetd process on Linux can limit the rate of inbound connections on a TCP port. The default is 40 connections in a 60 second interval. If you need a higher rate, specify a new limit on the number of inbound connections in a 60 second interval by appending a period (.) followed by the new limit to the nowait parameter of the appropriate service in inetd.conf. For example, for a limit of 500 connections in a 60 second interval use:

MQSeries stream tcp nowait.500 mqm /mqmtop/bin/amqcrsta amqcrsta -m QM1

 

Parent topic:

Establishing a TCP connection


ic14340_


 

Home