RE: [U2] Phantom creating Zombies

2007-11-05 Thread David Jordan
Hi David

Just a thought, but you could change your approach to this and use some
newer technologies such as MQ or web services using connection pooling.
These are designed to handle issues like you have mentioned better than the
phantom process.

Regards

David Jordan

Managing Consultant
[EMAIL PROTECTED]
Mobile: 0428 669 730

 
Phone: 61 2 9418 8329
Fax: 61 2 9427 2371
PO Box 909
Lane Cove
NSW 2066
Australia
www.dacono.com.au

CAUTION: This email and any attachments are confidential, may be privileged,
and are intended for use solely by the addressee. The confidentiality and/or
privilege in this email is not waived, lost or destroyed if it has been
transmitted to you in error. If you receive this email in error, please
notify Dacono by reply email immediately, delete the email and destroy any
printed copies. You must not disclose, disseminate, distribute, reproduce or
use the information contained in this email which may contain intellectual
property or copyright irrespective whether you are or are not the intended
recipient. The content and opinions contained in this email are those of the
individual sender and may not necessarily reflect the views and opinions of
Dacono. Dacono does not guarantee that this email is free from viruses,
errors, interception or interference. Use of this email and any attachments
is at the sole risk of the user. Dacono does not accept any liability for
any loss or damage to your computer system or network (including any
consequential damage) which may occur directly or indirectly from the use of
this email. 


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:owner-u2-
 [EMAIL PROTECTED] On Behalf Of Norman, David (SAAS)
 Sent: Monday, 5 November 2007 9:52 AM
 To: u2-users@listserver.u2ug.org
 Subject: [U2] Phantom creating Zombies
 
 UV 10.0.16 (Information) HP-UX 11i
 We have a permanently-running phantom, which needs to periodically start
 another phantom, with both phantoms running independently. When the 2nd
 phantom stops, that process becomes a zombie until the original phantom
 stops (which is preferably just about never).
 As these zombies mount up, we get to the situation where the id
 associated with the phantom can't run processes or even login until the
 zombies are cleared (by stopping the first phantom).
 Our work-around is to stop and restart the first phantom weekly, but we
 really don't want to have to do this.
 It's no good just running the BP of the second phantom, because then the
 first phantom pauses until the second phantom stops.
 
 Is there a better way of one phantom launching another without the
 zombie problem ??
 
 Thanks,
 
 David Norman
 Senior Software Engineer
 SA Ambulance Service
 Box 3, GPO
 Adelaide, South Australia 5001
 *+61 8 8274 0384
 * fax +61 8 8271 4844
 * [EMAIL PROTECTED]
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Phantom creating Zombies

2007-11-05 Thread Gunasegeran Pasupathy
Dear David,

Try setting the NOTIFY ON in the login proc. Whats happening is that, when
the phantom is done, its needs to tell someone, until thats is done the
zombie process will there.

Regards,
Guna

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Norman, David
(SAAS)
Sent: Monday, November 05, 2007 6:52 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] Phantom creating Zombies

UV 10.0.16 (Information) HP-UX 11i
We have a permanently-running phantom, which needs to periodically start
another phantom, with both phantoms running independently. When the 2nd
phantom stops, that process becomes a zombie until the original phantom
stops (which is preferably just about never).
As these zombies mount up, we get to the situation where the id
associated with the phantom can't run processes or even login until the
zombies are cleared (by stopping the first phantom).
Our work-around is to stop and restart the first phantom weekly, but we
really don't want to have to do this.
It's no good just running the BP of the second phantom, because then the
first phantom pauses until the second phantom stops.

Is there a better way of one phantom launching another without the
zombie problem ??

Thanks,

David Norman
Senior Software Engineer
SA Ambulance Service
Box 3, GPO
Adelaide, South Australia 5001
*+61 8 8274 0384
* fax +61 8 8271 4844
* [EMAIL PROTECTED]
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.15.21/1110 - Release Date: 04/11/2007
9:37 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.15.21/1110 - Release Date: 04/11/2007
9:37 PM
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Phantom creating Zombies

2007-11-05 Thread john reid
We had the same problem with a scheduling module. We found that if the
module  CHAINed itself after a given period of time (like an hour) the
zombies went south, following the deceased parent.

On 11/5/07, Gunasegeran Pasupathy [EMAIL PROTECTED] wrote:
 Dear David,

 Try setting the NOTIFY ON in the login proc. Whats happening is that, when
 the phantom is done, its needs to tell someone, until that s is done the
 zombie process will there.

 Regards,
 Guna

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Norman, David
 (SAAS)
 Sent: Monday, November 05, 2007 6:52 AM
 To: u2-users@listserver.u2ug.org
 Subject: [U2] Phantom creating Zombies

 UV 10.0.16 (Information) HP-UX 11i
 We have a permanently-running phantom, which needs to periodically start
 another phantom, with both phantoms running independently. When the 2nd
 phantom stops, that process becomes a zombie until the original phantom
 stops (which is preferably just about never).
 As these zombies mount up, we get to the situation where the id
 associated with the phantom can't run processes or even login until the
 zombies are cleared (by stopping the first phantom).
 Our work-around is to stop and restart the first phantom weekly, but we
 really don't want to have to do this.
 It's no good just running the BP of the second phantom, because then the
 first phantom pauses until the second phantom stops.

 Is there a better way of one phantom launching another without the
 zombie problem ??

 Thanks,
 
 David Norman
 Senior Software Engineer
 SA Ambulance Service
 Box 3, GPO
 Adelaide, South Australia 5001
 *+61 8 8274 0384
 * fax +61 8 8271 4844
 * [EMAIL PROTECTED]
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/


 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.5.503 / Virus Database: 269.15.21/1110 - Release Date: 04/11/2007
 9:37 PM


 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.5.503 / Virus Database: 269.15.21/1110 - Release Date: 04/11/2007
 9:37 PM
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/



-- 
john
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Phantom creating Zombies

2007-11-05 Thread Kevin Sproule
David,



Easy fix:  EXECUTE JOBS CAPTURING JUNK



Put this in your code prior to the PHANTOM launching code.  It will
reap any dead child processes (zombies), that may be hanging around.



Kevin M. Sproule
Sr. Technical Consultant
AFS Technologies, Inc.
2141 E. Highland Ave, Ste. 100
Phoenix, AZ 85016
Care Center: (602) 522-8181
Main: (602) 522-8282
e-mail: [EMAIL PROTECTED]

Our mission is to be the number one supplier of software to the food and
beverage industry

[demime 1.01d removed an attachment of type image/gif which had a name of 
image001.gif]
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Phantom creating Zombies

2007-11-05 Thread John Jenkins
David

NOTIFY ON and also - as this is a scheduler PHANTOM - change any long SLEEP
into smaller chunks of SLEEPS - e.g.

Instead of SLEEP 36000 try

FOR delay = 1 to 100; SLEEO 360; NEXT delay

There were two issues there (from my memory) - the first was that a BREAK on
a foreground process that had spawned a PHANTOM would wake the PHANTOM from
SLEEP. A side effect of the fix for this was that processes that launched
PHANTOMS had to get to a state to receive the signal generated when the
PHANTOM terminated (and a SLEEP was not a useful state). 

Past fixes for PHANTOMs worth note in this context:

10.1.16
===
8072On LINUX and HP platforms, if a PHANTOM was executed from TCL,
the performance for subsequent TCL commands incurred a delay of
one second before processing while the PHANTOM process was active.
This problem has been fixed.


10.1.7
==
7247On LINUX platforms, if a UniVerse process executed the TCL
NOTIFY ON command and that process has previously started a
nonsocket PHANTOM process that terminated, the parent process
did not detect that termination, and the PHANTOM process
became a zombie process until the parent process terminated.

In addition, on all UNIX platforms, when a UniVerse socket
server process excuted the TCL NOTIFY ON command and a 
PHANTOM process started by the socket server was using the
socket connected to the socket server terminated, the server
did not detect the termination, and the PHANTOM process became
a zombie process until the socket server was terminated.

Both of these problems have been fixed.





Hope this helps

Regards

JayJay

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Norman, David
(SAAS)
Sent: 04 November 2007 22:52
To: u2-users@listserver.u2ug.org
Subject: [U2] Phantom creating Zombies

UV 10.0.16 (Information) HP-UX 11i
We have a permanently-running phantom, which needs to periodically start
another phantom, with both phantoms running independently. When the 2nd
phantom stops, that process becomes a zombie until the original phantom
stops (which is preferably just about never).
As these zombies mount up, we get to the situation where the id
associated with the phantom can't run processes or even login until the
zombies are cleared (by stopping the first phantom).
Our work-around is to stop and restart the first phantom weekly, but we
really don't want to have to do this.
It's no good just running the BP of the second phantom, because then the
first phantom pauses until the second phantom stops.

Is there a better way of one phantom launching another without the
zombie problem ??

Thanks,

David Norman
Senior Software Engineer
SA Ambulance Service
Box 3, GPO
Adelaide, South Australia 5001
*+61 8 8274 0384
* fax +61 8 8271 4844
* [EMAIL PROTECTED]
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/