Hello guys
I am experiencing a very strange behavior on one of our AIX servers. We have an application with several processes that listen on several port numbers. Sometimes we receive complains that people cannot connect to the server on a specific port that is used by one the application processes. When we check for the process status we can see that the process is up and running and everything is ok. But when we run
where 1234 is (for example) the port number, we don't find the port in the list of the listening ports.
The obvious solution is to kill and restart the process. Well this doesn't always solve the problem as sometimes it stays that way even after restarting it and stays for a few minutes before listening.
Now the question is: what could possibly cause an application in AIX to be running but not listening on the port where it should be listening?
Does the existence of too many concurrent connections to the same port cause this behavior?
Thanks a lot in advance and I appreciate any help from your side.
Hi Everybody,
I want to create a shell script named as say "jip" and it is runned.
And i want that when i do ps + grep for the process than this jip should be shown as process.
Infact there might be process with name jip which is already running. (3 Replies)
Hello all,
I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted.
Thanks in advance
Regards,
pradeep kulkarni.
:mad: (13 Replies)
How can I have ports that are listening without processes being associated with them?
root@ldv002 # netstat -ltnup
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0... (2 Replies)
I have been having some trouble trying to get some code working, so I was wondering...what system calls are required to execute a different program from an already running process? (1 Reply)
I have process1 running on one machine and generating some log file. Now another process which can be launched on any machine wants to know if process1 is running or not and also in case it is running it wants to stream the logs file generated by process1 on terminal from which process2 is... (2 Replies)
Hi Experts,
I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state.
On doing cat /proc/<pid>wchan showing the "__init_begin" in the output.
Can you please help me here... (0 Replies)
Hi Experts,
I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state.
On doing cat /proc/<pid>wchan showing the "__init_begin" in the output.
Can you please help me here... (1 Reply)
Hi Experts,
I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state.
On doing cat /proc/<pid>wchan showing the "__init_begin" in the output.
Can you please help me here... (6 Replies)
Team,
I have multiple batchjobs running in VM, if I do ps -ef |grep java or tomcat I am getting multiple process list.
How do I get my exact tomcat process running and that is unique? via shell script? (4 Replies)
Discussion started by: Ghanshyam Ratho
4 Replies
LEARN ABOUT DEBIAN
roar_socket_listen
roar_socket_listen(3) System Manager's Manual: RoarAudio roar_socket_listen(3)NAME
roar_socket_listen - Opens a new listen socket
SYNOPSIS
#include <roaraudio.h>
int roar_socket_listen(int type, char * host, int port);
DESCRIPTION
Opens a new listening socket for network clients to connect to. You may accept new connections via accept(2).
PARAMETERS
type The type of the Socket. See the list below.
host The host or path name to listen on. This depends on the type argument. For TCP/IP to listen on any interface use a value of
"0.0.0.0".
port The port number to listen on. This may be ignored by types not supporting port numbers.
SOCKET TYPES
ROAR_SOCKET_TYPE_UNKNOWN
The type will be auto detected. Don't use this if you know the type. Only use this to support user given addresses and enable auto
detection.
ROAR_SOCKET_TYPE_TCP
Use a TCP/IP connection. This is standard mode for networking. host is the hostname or IP to listen on and port is the port number
to use.
ROAR_SOCKET_TYPE_INET
Same as above but deprecated. Use ROAR_SOCKET_TYPE_TCP.
ROAR_SOCKET_TYPE_UNIX
UNIX Domain Socket. This should be default for local connections. host is the filename of the socket.
ROAR_SOCKET_TYPE_DECNET
DECnet socket.
ROAR_SOCKET_TYPE_FORK
This is to fork a roard to communicate with. Can't be use to listen on, just to connect to. host and port is ignored at the moment.
ROAR_SOCKET_TYPE_FILE
This is used to open a plain file. Can't be use to listen on, just to connect to. host is the filename to connect to.
RETURN VALUE
On success these calls return filehandle. On error, -1 is returned.
BUGS
Listening on UDP sockets is not supported at the moment.
EXAMPLES
FIXME
SEE ALSO accept(2), libroar(7), RoarAudio(7).
RoarAudio May 2011 roar_socket_listen(3)