10-22-2009
AIX PID Recycling
Had a bizzare problem last night with one of our tools running on an AIX server that has not come up before. The tool has been in use for over a year without this problem showing up.The tool basically does this: -Kick off a background task and record the PIDGo and do a bunch of other taskswait for the background task to completeIt seems that AIX immediately reuses PID's as they become available rather than incrementing the last PID and using that. So what happened last night was that the background task completed while the tool was doing the other stuff and the PID ended up being re assigned to the wait statement! So it sat there all night waiting for itself to complete......Has anyone come across this before?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Trying to alias rm to move files to a hidden trash directory in the bash shell. I've tried to create this alias numberous ways and it's just not working. Here's what I've tried, anyone have any suggestions.
alias rm='mv $* ~/.trash'
alias rm= 'mv$* ~/.trash'
things like that... I've also... (2 Replies)
Discussion started by: strmy_ngts
2 Replies
2. UNIX for Dummies Questions & Answers
1. If I use an software application(which connects to the database in the server) in my local pc, how many PID should be registered? Would there be PID for the session and another PID for socket connection?
2. I noticed (through netstat) that when I logged in using the my software application,... (1 Reply)
Discussion started by: pcx26
1 Replies
3. AIX
Hello,
On a AIX 5.3.5.0 server, we have PID exceeding 999999. This cause some troubles in our programms.
I would like to know the process creation rules on aix :
- what is the maximum pid number ?
- what is the wrap limit on aix, and where to find it, how to configure pid wrap limit ?
-... (3 Replies)
Discussion started by: astjen
3 Replies
4. UNIX for Dummies Questions & Answers
Hello guys,
How to shut down a port number in AIX.
May be first I need to find out what is the process ID of that process that listens to this particular port.. Is there any command to find a process ID from the port number other than "lsof".
thanks (1 Reply)
Discussion started by: solaix14
1 Replies
5. AIX
Hi All,
I searched other threads and could not find any relevant post about this.
I searched for process 0 in SUN OS and could find the sched/swapper process listed.
root 0 0 0 Apr 25 ? 0:06 sched
but i couldnt not find the swapper process (PID 0) in AIX. Is that... (4 Replies)
Discussion started by: quintet
4 Replies
6. UNIX for Advanced & Expert Users
hi.........
can anyone suggest me how n where can i find the module used for recycling logs in Unix(some .so file is used i suppose).till date i have done it with scripting but maintaining the script is becoming difficult.
many2 thanx in advance
-manuj (2 Replies)
Discussion started by: manuj upadhyay
2 Replies
7. UNIX for Advanced & Expert Users
Hi
I have an IBM AIX 5.3 64Bit running with 64bit application (Kernel runs on 64bit also).
I changed the maximum proccesses per user to the maximum.
Currently the pids of proccesses in the system using 5 digits (<100000).
Is it possible to make the system use pids bigger then 4500000? I need it... (6 Replies)
Discussion started by: idana
6 Replies
8. Web Development
Hello everyone...I am very new to UNIX hence needs your help in below.
i have written a script to change some configuration in property files and its working fine.but to reflect that change at the application i want to recycle WAS and ihs.i.e. run below start and stop commands at /usr/local/bin ... (2 Replies)
Discussion started by: Sanaa
2 Replies
9. AIX
Hi,
Below is the code snippet I use on Linux (Centos) to retrieve the Process Name, PID and memory consumed on Linux (Centos) host:-
top -b -n 1 | awk -v date="$tdydate" -v ip="$ip" 'NR>7 {print date","ip","$12,","$1,","$10}'
Any idea how the same can be retrieved on an AIX host? This... (1 Reply)
Discussion started by: Vipin Batra
1 Replies
10. AIX
Hi All,
I am using netstat on AIX to grep info on all open connections. However, unlike on Linux(Centos), I do not get the PID and program name using netstat on AIX.
I need this info to be clubbed along with the information retrieved using netstat version of AIX. Is there a way this can be... (1 Reply)
Discussion started by: Vipin Batra
1 Replies
LEARN ABOUT CENTOS
abrt-retrace-client
ABRT-RETRACE-CLIEN(1) ABRT Manual ABRT-RETRACE-CLIEN(1)
NAME
abrt-retrace-client - Handles the communication with Retrace server.
SYNOPSIS
abrt-retrace-client <operation> [options]
DESCRIPTION
This tool is able to communicate with Retrace server: create a new task, ask about task's status, download log or backtrace of a finished
task.
Integration with libreport events
abrt-retrace-client can be used as an analyzer for application crashes which dump core.
Example usage in report_event.conf:
EVENT=analyze analyzer=CCpp
abrt-retrace-client
OPERATIONS
create
Creates a new task. Prints task ID and password to stdout. Either -d or -c is required.
status
Prints task's status to stdout. Both -t and -p are required.
log
Prints finished task's log to stdout. Both -t and -p are required.
backtrace
Print finished task's backtrace to stdout. Both -t and -p are required.
batch
Runs all operations in one step: creates a new task, periodically asks for status (the period is specified by --status-delay option)
and downloads the result when finished. If the task was successful backtrace file is saved, otherwise log is printed to stdout. Either
-c or -d is required.
OPTIONS
-v, --verbose
be verbose
-s, --syslog
log to syslog
-k, --insecure
allow insecure connection to retrace server
--url URL
retrace server URL
--headers
(debug) show received HTTP headers
-d, --dir DIR
read data from ABRT problem directory
-c, --core COREDUMP
read data from coredump
-l, --status-delay
delay for polling operations (seconds)
--no-unlink
(debug) do not delete temporary archive created in /tmp
-t, --task ID
ID of the task on server
-p, --password PWD
password of the task on server
AUTHORS
o ABRT team
abrt 2.1.11 06/18/2014 ABRT-RETRACE-CLIEN(1)