Tuesday, 15 April 2014

To find the exact details about any port on LINUX

We have always faced issues in UNIX flavours regarding the ports which are used in PeopleSoft system like the HTTP port .JSL port,JSH etc etc.
to find out each and every details about any port fire this command:--

lsof -nP -i :1521
PSAPPSRV  26856 psoft    5u  IPv4     262797            TCP > (ESTABLISHED)

on sxecuting the above command on Application server for 1521 port which is the default DB listen port for Oracle. the following output gives detailed information.

COMMAND:-- this the process which is using the port 1521

PID:-- everybody knows whats that :-)

USER:-- which user is running that process.

FD:-- (File Descriptor):-- this is important as it shows the important parameter. Below is the explanation how to interpret the output of FD.

# - The number in front of flag(s) is the file descriptor number of used by the process to associated with the file
u - File open with Read and Write permission
r - File open with Read permission
w - File open with Write permission
W - File open with Write permission and with Write Lock on entire file
mem - Memory mapped file, usually for share library

So 5u will mean that PSAPPSRV has FD 5 associated with read write permission.

TYPE:-- this can be of different  types like FIFO,dir. Here PSAPPSRV is a process having connection to database through .IPV4.

NAME:-- this shows the established connection between the two servers through 1521 port.

Wednesday, 2 April 2014

Kernel parameter changes for PeopleSoft in UNIX flavours

During all these years of my work on PeopleSoft on various flavours of UNIX (RHEL,AIX,SUSE,Solaris)
There are specific modifications which are needed to be made in the various kernel parameters on the application/Web servers for proper functioning of Server Processes.

The below given details are absolutely based on my work,so please exercise the changes judiciously considering the implications of these parameters.

The following 2 are the most important parameters with respect to PeopleSoft which need to be taken care of;--

1.) msgmni:--
This parameter takes care of the number of message queues.By default this parameter is 16 in all Unix OS's.
IF this parameter is not changed to required value, the most likely error one will face is:--

Cannot create error process - fork() 
while booting up the application server, for which when Tuxlog is checked you will find the following error entries:--

System init function failed, Uunixerr = : msgget: No space left on device

 Please make sure the msgmni is set to 1024 in /etc/systctl.conf.

2.) fs.file.max :--
This parameter is for the no. of open files, this is denoted by -n when you pass ulimit-a 

set this to 65536 in /proc/sys/fs/file-max.

A typical sysctl.conf for peoplesoft application server should be like this:--

kernel.msgmnb = 65536 ---> Controls the maximum size of a message, in bytes
kernel.msgmax = 65536---> Controls the default maximum size of a message queue
kernel.shmmax = 1073741824--->Controls the maximum shared segment size, in bytes
kernel.shmall = 2097152--->Controls the maximum number of shared memory segments, in pages
fs.file-max = 65536
kernel.msgmni = 1024