Multiple instance of same process


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Multiple instance of same process
# 1  
Old 04-23-2009
Question Multiple instance of same process

SmilieHi Everyone,

I am using solaris 5.10.

I have a java process running in server mode in unix.

The problem is that it automatically forks i.e creates a child process.

I mean suddenly two instances of that process start running , in which the process-id of first instance is the parent process-id of second.

Can anyone tell me what is the cause of this problem.
I dont want the new child process.


Can anyone please tell me the reason and solution to stop this.



Thanks in advance.

Glamo_2312
Image
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Configuring mysql for multiple instance only

Hello. I plan to use mysql with only instance database so I can stop one database for maintenance without stopping every thing. When one reads through the my.cnf config file, it is not clear if we must use at the same time a single database mysql plus any instances mysqld2 (for app1), mysqld3... (1 Reply)
Discussion started by: jcdole
1 Replies

2. UNIX for Advanced & Expert Users

How to check a single process instance is always running?

Hi, I want to write one program in C in Unix OS which will check the running status of a process time to time. If the process is stopped somehow by any means, it will ensure that the process is restarted and only one copy of the process image should run in memory at any point of time for the user.... (2 Replies)
Discussion started by: sanzee007
2 Replies

3. Shell Programming and Scripting

Process Instance not running properly.

I have run 10 instances of the process eg, process name is BG nohup /WP01IRB1_irbapp/IRBWPROD/RB/bin/BG -c 1 -t 23 -a '-caTop TESTBILLCYCLE='5FEB13_81PT19NPT''>a.txt & nohup /WP01IRB1_irbapp/IRBWPROD/RB/bin/BG -c 2 -t 23 -a '-caTop TESTBILLCYCLE='5FEB13_81PT19NPT''>b.txt & nohup... (3 Replies)
Discussion started by: ankitknit
3 Replies

4. Shell Programming and Scripting

Multiple instance in tomcat

I need to install a tomcat6 with multiple instances like instance1,instance2 and instance3 in a server. I came to know that for that we need to install tomcat6,apache2.0,mod_jk1.2 and jre with tools.jar installed.And we need to create multiple instances with same web.xml and difference... (0 Replies)
Discussion started by: tuxslonik
0 Replies

5. Shell Programming and Scripting

A script that spawns multiple instance of itself.

Hi all,I have some questions of forking new process,the code is below.Any help will be appreciated. 1 #! /bin/bash 2 3 PIDS=$(pidof sh $0) 4 P_array=( $PIDS ) 5 echo $PIDS 6 let "instances = ${#P_array}-1" 7 8 echo "$instances instance(s)" of this script running." 9... (4 Replies)
Discussion started by: homeboy
4 Replies

6. Shell Programming and Scripting

Help with multiple instance script checking

I am trying to debug the following script. It appears that when the check for script running occurs, it's finding the actual grep statement and causing the script believe the script is already running. This is deployed on two different servers where one works fine, the other doesn't. Any ideas? ... (2 Replies)
Discussion started by: DaddyMoose
2 Replies

7. UNIX for Advanced & Expert Users

Multiple Instance Of Same Process

Hi Everyone, I am using solaris 5.10. I have a java process running in server mode in unix. The problem is that it automatically forks i.e creates a child process. I mean suddenly two instances of that process start running , in which the process-id of first instance is the parent... (5 Replies)
Discussion started by: glamo_2312
5 Replies

8. Shell Programming and Scripting

Printing the Status of a Process in an Instance

Hi, I am executing the command: "./opmnctl status" to get the status of the processes in the instance. There are totally 5 processes that are avaialble, out of which 3 are "Alive" and 2 are "Down". How can I use the IF loop to get the status and echo it?? For instance I want to run a check... (8 Replies)
Discussion started by: yoursdavinder
8 Replies

9. Shell Programming and Scripting

How to check if another instance of the process is running

Hi, I am writing a shell script to invoke a C++ program. Before I start the C++ program (oi7loadbalancer), I am checking if the process is already running. I start the process only if it is not already running. I have the following check in my script. proccount=`ps -f -u $USER_NAME | grep... (8 Replies)
Discussion started by: sim
8 Replies

10. Shell Programming and Scripting

Multiple PHP sessions within the same browser instance

Dear all..... I am currently writing a Help-Desk / Knowledge Base application using PHP/PostGreSQL. I authenticate the user using a quite elaborate mechanism of cookies. The problem is that using cookies (I also have a version using sessions with the same problem), I can only seem to get one... (4 Replies)
Discussion started by: zazzybob
4 Replies
Login or Register to Ask a Question
DtPrintResetConnection(library call)									      DtPrintResetConnection(library call)

NAME
DtPrintResetConnection -- resets the print display connection managed by a DtPrintSetupBox SYNOPSIS
#include <Print.h> XtEnum DtPrintResetConnection( Widget wid, DtPrintResetConnectionMode mode); DESCRIPTION
The DtPrintResetConnection function is a convenience function provided by the DtPrintSetupBox widget that allows applications to direct the widget to stop managing the X print server connection. A mode parameter is included in order to direct the widget to close the print con- nection by calling XpDestroyPrintContext and XCloseDisplay or to simply relinquish control of the connection without closing it. DtPrintResetConnection is intended to be used by applications that fork a child process to perform the print rendering operation. Immedi- ately after the fork is performed, the parent process will close its X print server connection, and retain its connection to the video X server. The forked child on the other hand will close its video X server connection and perform the rendering operation on the X print server connection. ARGUMENTS
wid The DtPrintSetupBox widget ID. mode Indicates whether DtPrintResetConnection should close the X print server connection, or simply cause the DtPrintSetupBox to cease managing the connection. Valid values are: DtPRINT_CLOSE_CONNECTION Set by the parent process when the application forks a child to perform the print rendering. This will cause the DtNclosePrintDisplayCallback list set for the passed DtPrintSetupBox to be called. DtPRINT_RELEASE_CONNECTION Set when the application wishes to destroy the DtPrintSetupBox widget instance and still perform print rendering using the X print server connection initiated by the widget. For example, the child process of an application that forks to perform print rendering will close the video display connection (thereby destroying the DtPrintSetupBox widget) prior to print rendering. No DtPrintSetupBox callbacks will be called as a result of this operation. RETURN VALUE
DtPRINT_SUCCESS DtPrintResetConnection was successful. DtPRINT_NO_CONNECTION An open X print server connection is not currently being managed by the DtPrintSetupBox. DtPRINT_BAD_PARM The value passed for wid is NULL, or an invalid mode was passed. ENVIRONMENT VARIABLES
None. RESOURCES
None. ACTIONS
/MESSAGES None. ERRORS
/WARNINGS None. EXAMPLES
None. FILES
None. SEE ALSO
DtPrintSetupBox(3) DtPrintResetConnection(library call)