Is orphan process handling by Solaris os and Linux os same?

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Is orphan process handling by Solaris os and Linux os same?
# 8  
Old 05-09-2017
You seem to be saying that you have poorly written code that runs quickly on Solaris 10 systems consuming huge amounts of CPU cycles while not checking for error returns on sockets and that the same code when ported to a Red Hat version 6 Linux distribution runs slow and stops when the same networking error occurs.

Without seeing the Solaris 10 code you're using and the RHEL 6 port of that code it is very hard to guess at what might be causing the differences in behavior you have described. My crystal ball isn't working well enough tonight to even hazard a guess.
This User Gave Thanks to Don Cragun For This Post:
# 9  
Old 05-09-2017
If the application is made up for RHEL 3 and RHEL 4 , and if we will deploy it on RHEL 6, then what will be side effects? Will it affect on performance of application?
# 10  
Old 05-09-2017
It might run faster. It might run slower. It might not run at all. It might run perfectly for a while and crash hours later. And, of course, it could also depend on what data the code encounters while it is running. If you don't show us the code, there is no way to know!
This User Gave Thanks to Don Cragun For This Post:
# 11  
Old 05-09-2017
Processes don't become orphans for no reasons: you must have done something (i.e. terminating the parent process without waiting for - and processing properly the exit code of - the client) and, since you seem to know that already, i wonder why you ask for the consequences of this instead of correcting it.

I mean: sometimes parking at where it is forbidden results in your vehicle towed, sometimes not (like poor implementation is punished in one OS and not punished in another). But even it not resulting in a ticket doesn't make the practice any more legal, you just didn't get punished for what you did wrong immediately. You perhaps are still an obstacle to other traffic, which is why the parking was forbidden there in the first place.

So, instead of asking us (as i perceive it) how can i write bug-ridden programs so that the bugs won't show you should ask yourself how to get rid of the bugs - and then act accordingly.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Handling inode on solaris 9

Dear all, yesterday I had a big problem on Solaris 9. I cannot write anymore on /var. I checked the inode usage, and I see that for /var was at 100% with ifree = 0. I deleted some unused files (like old log on /var/tmp and /var/log), now I have ifree=19641 and 99% iused: root@ciy01 # df -F ufs... (12 Replies)
Discussion started by: Lord Spectre
12 Replies

2. UNIX for Advanced & Expert Users

cronjobs orphan processes

Our cron job stats its started on Oct20 % ps -ef | grep cron root 1442044 1 0 Oct 20 - 25:23 /usr/sbin/cron All the below jobs aixmf,aixgh are triggered from cron only. user pid ppid date time cmd gaix 1581282 1 35 16:33:01 - 20:56... (1 Reply)
Discussion started by: karnan
1 Replies

3. Shell Programming and Scripting

Shell Script to Kill Process(number of process) Unix/Solaris

Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies

4. Linux

Cron ORPHAN (no passwd entry)

I am using the standard vixie-cron am seeing the following my logs : crond: (username) ORPHAN (no passwd entry) Ordinarily this is a simple matter, there is no corresponding user, but I am using central authentication and the username does exist and is usable via the standard nsswitch mechanism, so... (2 Replies)
Discussion started by: humbletech99
2 Replies

5. UNIX for Dummies Questions & Answers

Socket Handling Differences Between Linux & Unix?

Sorry if this is a stupid question! I have been developing a Java application that I am deploying on both Unix and Linux servers, which uses lots of socket handling. When the server side connection is dropped by the server un-gracefully I have been seeing close_waits and null connections. ... (0 Replies)
Discussion started by: Vinnie
0 Replies

6. UNIX for Advanced & Expert Users

how to remove db2 orphan processes

Hi Guys, I'm working on a AIX 5.3 environment and I've been quite a few times in a situation where we can remove db2 orphan processes therefore our only alternative has been to reboot the entire server. Now I wonder is there is any other possible way that we can use to remove those processes... (5 Replies)
Discussion started by: hariza
5 Replies

7. Programming

handling abnormal process termination

hi i m writin a program in which i keep track of all the child processes the program has generated and if a child process has an abnormal termination i need to do certain task related to that child process. for handlin child process i used waitpid: temp_cpid=waitpid(-1,&stat,WUNTRACED); ... (4 Replies)
Discussion started by: mridula
4 Replies

8. Programming

Linux g++ 2.95.3 exception handling

Anybody happen to be familiar with any deficiencies with g++ 2.95.3 regarding exception handling, specifically in multi-threaded / multi-module (shared library) based applications? I'm seeing behavior where thrown exceptions are not caught, but basically ignored causing the application to... (0 Replies)
Discussion started by: earl
0 Replies

9. HP-UX

Inter Process File Handling Problem

Hi All, i am running a oracle procedure which writes a file . The same file is picked up by another script which runs in a cron after every 5 minutes. Now the problem is that sometimes my script picks up a file while the procedure is still writing data in the file. is there is any way i... (4 Replies)
Discussion started by: saurabhjain
4 Replies

10. Shell Programming and Scripting

Script to kill stranded/orphan process by users.

I have customers on our AIX/UNIX node startup a process that becomes stranded or orphaned and must be killed. I would like to create a script to check for these orphan processes and kill them. I can have cron run this job. The customers process will run and after 24 hours time out leaving an... (4 Replies)
Discussion started by: rjohnson
4 Replies
Login or Register to Ask a Question