Process Instance not running properly. | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Process Instance not running properly.

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-05-2013
ankitknit ankitknit is offline
Registered User
 
Join Date: Jul 2012
Last Activity: 4 September 2013, 8:04 AM EDT
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Process Instance not running properly.

I have run 10 instances of the process eg, process name is BG


Code:
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 /WP01IRB1_irbapp/IRBWPROD/RB/bin/BG -c 3 -t 23 -a '-caTop TESTBILLCYCLE='5FEB13_81PT19NPT''>c.txt &

nohup /WP01IRB1_irbapp/IRBWPROD/RB/bin/BG -c 4 -t 23 -a '-caTop TESTBILLCYCLE='5FEB13_81PT19NPT''>d.txt &

nohup /WP01IRB1_irbapp/IRBWPROD/RB/bin/BG -c 5 -t 23 -a '-caTop TESTBILLCYCLE='5FEB13_81PT19NPT''>1.txt &

nohup /WP01IRB1_irbapp/IRBWPROD/RB/bin/BG -c 6 -t 23 -a '-caTop TESTBILLCYCLE='5FEB13_81PT19NPT''>2.txt &

nohup /WP01IRB1_irbapp/IRBWPROD/RB/bin/BG -c 7 -t 23 -a '-caTop TESTBILLCYCLE='5FEB13_81PT19NPT''>22.txt &

nohup /WP01IRB1_irbapp/IRBWPROD/RB/bin/BG -c 8 -t 23 -a '-caTop TESTBILLCYCLE='5FEB13_81PT19NPT''>3.txt &

nohup /WP01IRB1_irbapp/IRBWPROD/RB/bin/BG -c 9 -t 23 -a '-caTop TESTBILLCYCLE='5FEB13_81PT19NPT''>4.txt &


These instances supposed to completed within 8 hrs. But the problem is 7 instances completed within a time and the last instance is taking to long too complete.

Plz guide on this. Why the last instance is taking more time as compared to others.

Thanx in advance

Last edited by Scrutinizer; 02-05-2013 at 07:06 AM.. Reason: code tags
Sponsored Links
    #2  
Old 02-05-2013
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 26 November 2014, 11:20 PM EST
Location: NM
Posts: 10,282
Thanks: 288
Thanked 815 Times in 757 Posts
Based on what you presented there is no way to tell what is going on. I am guessing you are running cycle billing, and that you divided accounts from one cycle or group into sub-cycles.

As a wild guess, did you flatten out the the number of accounts in each sub-cycle, e.g., do they all contain approximately the same number of accounts, e.g. say 500 accounts?
Sponsored Links
    #3  
Old 02-05-2013
ankitknit ankitknit is offline
Registered User
 
Join Date: Jul 2012
Last Activity: 4 September 2013, 8:04 AM EDT
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
yes i have set this bill cycle for 5 lac accounts .
    #4  
Old 02-05-2013
Yoda's Avatar
Yoda Yoda is offline Forum Advisor  
Jedi Master
 
Join Date: Jan 2012
Last Activity: 26 November 2014, 4:40 PM EST
Location: Galactic Empire
Posts: 3,389
Thanks: 236
Thanked 1,210 Times in 1,136 Posts
So you are saying 500K accounts are there is each cycle. But if this is cycle billing then you have to consider the account total usages count as well. May be the total usages are much higher compared to the instances that are getting completed early.

If your process BG is connecting to DB, then I suggest you to monitor the SQL sessions and see at what stage it is taking time. Like Jim mentioned it is really difficult to tell what exactly is the reason behind because we have no idea about your process BG and what volume of data it is dealing with!
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Print available running instance out of total panchpan Shell Programming and Scripting 3 08-16-2010 02:40 AM
Multiple Instance Of Same Process glamo_2312 UNIX for Advanced & Expert Users 5 04-26-2009 08:25 AM
Multiple instance of same process glamo_2312 UNIX for Dummies Questions & Answers 0 04-23-2009 11:21 AM
Script not running properly chris1234 UNIX for Dummies Questions & Answers 5 02-22-2008 03:51 PM
How to check if another instance of the process is running sim Shell Programming and Scripting 8 06-30-2005 08:24 AM



All times are GMT -4. The time now is 07:43 AM.