Sponsored Content
Top Forums UNIX for Advanced & Expert Users Need to get the time difference for all the transactions in a day Post 302689119 by samjna on Monday 20th of August 2012 07:37:13 PM
Old 08-20-2012
Need to get the time difference for all the transactions in a day

Hello Experts,

I need to evaluate my API [for ex: for getNEData() as given below] performance, so need a script to get the time difference[between Entering and Exiting] for all the transaction that has gone through my application in a day. The challenge is the multi threaded logs, so I cant just get all the Telephone Numbers and check the entering and existing time, i have to keep in mind the thread factor here. There could be multiple calls for the same Telephone number in different threads for different APIs. Please suggest.


HTML Code:
2012-08-17 00:00:06,369   INFO  [[ACTIVE] ExecuteThread: '33' for queue: 'weblogic.kernel.Default (self-tuning)'] service.impl.SDXInventoryImpl - Entering getNEData() for 5417543010 of com.sdx.services.impl.SDXInventoryImpl
 2012-08-17 00:00:06,369   DEBUG [[ACTIVE] ExecuteThread: '120' for queue: 'weblogic.kernel.Default (self-tuning)'] nmo.dc.RackDC - Exiting getRackInfo() for 5627562233 of com.sdx.services.nmo.dc.RackDC
2012-08-17 00:01:08,369   INFO  [[ACTIVE] ExecuteThread: '33' for queue: 'weblogic.kernel.Default (self-tuning)'] service.impl.SDXInventoryImpl - Exiting getNEData() for 5417543010 of com.sdx.services.impl.SDXInventoryImpl
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Difference in day-hours-minutes-seconds format

Hi experts, I am reading two log files and passing dates as output to a txt file. Code is given below: echo "Start Time:" >> Report.txt cat start.log | while read LINE1 do echo $DATE1 >> Report.txt done echo "End Time:" >> Report.txt cat end.log | while read LINE2 ... (7 Replies)
Discussion started by: Sreejith_VK
7 Replies

2. UNIX for Dummies Questions & Answers

I want to seperate my data by time of day

Hi, I'm a newbie to unix. I have a txt file with my data, a list of events. Each event comes with a unix time. I want to seperate a months worth of events into those that occur during the day, and those at night. I have no clue how to go about this, please can someone push me in the right... (6 Replies)
Discussion started by: pmasterkim
6 Replies

3. Shell Programming and Scripting

value of variable based on time of the day

i would need some help in setting the value of a variable (TIME_NOW) depending on the time of the day ...e.g. if today's date is 12th April 2009 and if the current time is between midnight and 16:59:59 hrs then the TIME_NOW should be yesterday's date i.e. TIME_NOW=11 else if the current time... (3 Replies)
Discussion started by: zainravi
3 Replies

4. Shell Programming and Scripting

How to? Every day, same time... script...

I manage to find and proces one script, now i need to automate this script for every day at the same time... (2 Replies)
Discussion started by: voltaza
2 Replies

5. Shell Programming and Scripting

How to calculate time difference between start and end time of a process!

Hello All, I have a problem calculating the time difference between start and end timings...! the timings are given by 24hr format.. Start Date : 08/05/10 12:55 End Date : 08/09/10 06:50 above values are in mm/dd/yy hh:mm format. Now the thing is, 7th(08/07/10) and... (16 Replies)
Discussion started by: smarty86
16 Replies

6. Shell Programming and Scripting

Day difference between 2 dates

Hello! I need to calculate number of days between two dates. The first date is in format of string. The second one is in format of date (current date): #!/usr/bin/ksh export ORACLE_HOME=/software/oracle/PROD10gR2 cd /etc/ORACLE/WALLETS/oracle export EXP_DATE=`. $ORACLE_HOME/bin/orapki cert... (1 Reply)
Discussion started by: yoavbe
1 Replies

7. AIX

Time of Day Question

I have a question i need clarification. We had a problem on a p520 system and had to pull the battery on the service processor card. That did the trick and system booted. We forgot to set the time in the service processor before booting. Once AIX was booted we changed the date and time there. ... (1 Reply)
Discussion started by: ryan0911
1 Replies

8. Shell Programming and Scripting

Time difference between two time stamps

Hi Friends, I have 2 varaibles which contain START=`date '+ %m/%d/%y %H:%M:%S'` END=`date '+ %m/%d/%y %H:%M:%S'` i want the time difference between the two variables in Seconds. Plz help. (2 Replies)
Discussion started by: i150371485
2 Replies

9. Shell Programming and Scripting

Get day of week from epoch time

Need assistance . Below code gives me the date but I wanted output as day of the week (wday) . Code: use Time::Local; my $time=timelocal(1,2,3,9,11,2013); $theTime = localtime($time); print "$theTime\n"; Result: Mon Dec 9 03:02:01 2013 Wanted output as only Mon (2 Replies)
Discussion started by: ajayram_arya
2 Replies
sys_attrs_socket(5)						File Formats Manual					       sys_attrs_socket(5)

NAME
sys_attrs_socket - socket subsystem attributes DESCRIPTION
This reference page lists and describes attributes for the Socket (socket) kernel subsystem. Refer to the sys_attrs(5) reference page for an introduction to the topic of kernel subsystem attributes. The number of lock entries to use when taking a lock reference on an external cluster mbuf (more is better). Default value: 64 (entries) Minimum value: 0 Maximum value: 8192 The mbuf_ext_lock_count attribute is useful only on SMP machines where locks are used. The CPU number to which to bind the protocol timer thread. Default value: 0 Minimum value: 0 Maximum value: UINT_MAX, or 4 billion Maximum size of the socket buffer. Default value: SB_MAX, or 1048576 (bytes) Minimum value: 1 Maximum value: 4 billion The maximum size of packets to be copied into existing mbuf clusters, or compressed. Only packets of size less than sbcom- press_threshold minus 1 are copied into existing mbuf clusters. Default value: 0 (bytes) Minimum value: 0 Maximum value: UINT_MAX, or 4 billion If the sbcompress_threshold attribute value is 0, mbuf cluster compression is disabled. A read-only attribute that is incremented when a received SYN packet is dropped because the number of queued SYN_RCVD connections for a socket is equal to that socket's backlog limit. The initial value is 0. A read-only attribute that shows the maximum number of pending requests to any of the server sockets in the system. The initial value is 0. Maximum number of pending TCP connections (the socket listen queue limit). Default value: 1024 (connections) Minimum value: 0 Maximum value: 65535 If the listen queue connection limit is too small, incoming connect requests may be dropped. Pending TCP connections can be caused by lost packets in the Internet or denial of service attacks. A read-only attribute that is incremented when a received SYN packet is dropped because the number of queued SYN_RCVD connections for a socket is equal to the value of the somaxconn attribute. The initial value is 0. Minimum number of pending TCP connections socket listen queue (backlog). The attribute controls how many SYN packets can be handled simultaneously before additional requests are discardrd. Default value: 0 Minimum value: 0 Maximum value: 65535 The value of the sominconn attribute overrides the application-specific backlog if the sominconn value is greater than the backlog requested by the application. A value that enables (1) or disables (0) socket writes without the need for a user space to kernel space copy operation. The umc (unified mbuf cache) attribute is used in conjunction with the mmap(2) system call. Default value: 0 (disabled) The size of the umc (unified mbuf cache) buffer. Default value: 1024 (bytes) Minimum value: 0 Maximum value: INT_MAX, or 2 billion SEE ALSO
sys_attrs(5) Tuning Tru64 UNIX for Internet Servers at the following location: http://www.digital.com/internet/document/ias/tuning.html. System Configuration and Tuning sys_attrs_socket(5)
All times are GMT -4. The time now is 02:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy