Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Need tune my command occupying 90% CPU Post 302384726 by senthil.ak on Wednesday 6th of January 2010 06:55:09 AM
Old 01-06-2010
Can some body help on this, i still cant understood the solution, I have provided the script snippet which i am using in the script and the suggested one

Code:
tail -n 1000 /logs/trace.log | awk 'BEGIN{OOM = 0; ScE = 0;NaE = 0; Jms = 0}
{if ($0 ~ /OutOfMemoryException/)OOM = 1;}
{if ($0 ~ /StaleConnectionException/)ScE = 1;}
{if ($0 ~ /NamingException/)NaE = 1;}
{if ($0 ~ /JmsTimeOutException/)Jms = 1;}
END{printf " %-7s%-7s%-7s%-7s",OOM,ScE,NaE,Jms;}'

Do the above code is correct or i need to change this one too.... My purpose is to check the error in the last 1000 line in logs and then set the counter to 1 if not then 0. Awaiting for better solution from experts.
 

8 More Discussions You Might Find Interesting

1. Programming

Application occupying CPU resources

Dear all, I have a pro c application running in the unix environement. This pro c program actually trigger by a java application from sun workstation. Recently, when we released a new proc c application and notice that the application occupying the CPU resources even through we check that the... (1 Reply)
Discussion started by: ghho
1 Replies

2. UNIX for Dummies Questions & Answers

Tune my logic of script

I have big log file, which contains the netstat output from my application server to a particular DB server. I aim is to plot a daily graph for this. Please find the sample log file below. @ - ........................................................... @ - Total number of connection to the ... (3 Replies)
Discussion started by: senthilkumar_ak
3 Replies

3. Shell Programming and Scripting

Tune my query

I have a requirement to separate only some numbers from the input file and produce it in a format. The input is ( i have took a sample, the actual file contains more than 50000 rows around 840 MB in size) $cat temp.txt 001 08 002 08 003 06 004 11 005 11 006 08 007 08 008 92* 009 92 010... (1 Reply)
Discussion started by: senthil.ak
1 Replies

4. Solaris

Please tune my script for Solaris

I have very big log file around 2-3 GB in that it contians 24 hours log data. My work is extract only 5-5 data and count the patterns from them. I worte a script in linux and we're using that. sed -n "/2009 05:/,/2009 17:/p" trace.log | grep -f patterns.txt > temp.log while read string ;do... (5 Replies)
Discussion started by: senthil.ak
5 Replies

5. Shell Programming and Scripting

Command to find the Memory and CPU utilization using 'top' command

Hi all, I found like top command could be used to find the Memory and CPU utilization. But i want to know how to find the Memory and CPU utilization for a particular user using top command. Thanks in advance. Thanks, Ananthi.U (2 Replies)
Discussion started by: ananthi_ku
2 Replies

6. Programming

SQL : Fine tune Insert by query

i would like to know how can i fine tune the following query since the cost of the query is too high .. insert into temp temp_1 select a,b,c,d from xxxx .. database used is IDS.. (1 Reply)
Discussion started by: expert
1 Replies

7. Shell Programming and Scripting

Tune my script

Hi ! My script read out data out of 144 files per day - every ten minutes a file with data. data-file WR030B 306.71 0 WR050B 315.13 0 WR120B 308.34 0 WV030B 3.52 0 WV050B 5.06 0 WV120B 6.65 0 TLUFT02B 8.60... (3 Replies)
Discussion started by: IMPe
3 Replies

8. Red Hat

Files not getting deleted with rm & occupying space in filesystem

Hello, OS version is Red Hat Enterprise Linux Server release 6.5 (Santiago). In one of the filesystem some old files post clone are not getting removed even with 'rm' # ls -ltr | grep meagpd_62.dbf -rw-rw---- 1 oracle oinstall 34358697984 Sep 1 08:46 meagpd_62.dbf # rm... (7 Replies)
Discussion started by: saharookiedba
7 Replies
DateTime::Locale::kam(3)				User Contributed Perl Documentation				  DateTime::Locale::kam(3)

NAME
DateTime::Locale::kam SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'kam' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Kamba. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) Jumatatu Jumanne Jumatano Alamisi Ijumaa Jumamosi Jumapili Abbreviated (format) Jtt Jnn Jtn Alh Ijm Jms Jpl Narrow (format) 2 3 4 5 6 7 1 Wide (stand-alone) Jumatatu Jumanne Jumatano Alamisi Ijumaa Jumamosi Jumapili Abbreviated (stand-alone) Jtt Jnn Jtn Alh Ijm Jms Jpl Narrow (stand-alone) 2 3 4 5 6 7 1 Months Wide (format) Mwei wa mbee Mwei wa keli Mwei wa katatu Mwei wa kanne Mwei wa katano Mwei wa thanthatu Mwei wa muonza Mwei wa nyanya Mwei wa kenda Mwei wa ikumi Mwei wa ikumi na imwe Mwei wa ikumi na ili Abbreviated (format) Mwei wa mbee Mwei wa keli Mwei wa katatu Mwei wa kanne Mwei wa katano Mwei wa thanthatu Mwei wa muonza Mwei wa nyanya Mwei wa kenda Mwei wa ikumi Mwei wa ikumi na imwe Mwei wa ikumi na ili Narrow (format) 1 2 3 4 5 6 7 8 9 10 11 12 Wide (stand-alone) Mwei wa mbee Mwei wa keli Mwei wa katatu Mwei wa kanne Mwei wa katano Mwei wa thanthatu Mwei wa muonza Mwei wa nyanya Mwei wa kenda Mwei wa ikumi Mwei wa ikumi na imwe Mwei wa ikumi na ili Abbreviated (stand-alone) Mwei wa mbee Mwei wa keli Mwei wa katatu Mwei wa kanne Mwei wa katano Mwei wa thanthatu Mwei wa muonza Mwei wa nyanya Mwei wa kenda Mwei wa ikumi Mwei wa ikumi na imwe Mwei wa ikumi na ili Narrow (stand-alone) 1 2 3 4 5 6 7 8 9 10 11 12 Quarters Wide (format) Q1 Q2 Q3 Q4 Abbreviated (format) Q1 Q2 Q3 Q4 Narrow (format) 1 2 3 4 Wide (stand-alone) Q1 Q2 Q3 Q4 Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide mbee wa yesu IY Abbreviated MY IY Narrow MY IY Date Formats Full 2008-02-05T18:30:30 = Jumanne, 2008 Mwei wa keli 05 1995-12-22T09:05:02 = Ijumaa, 1995 Mwei wa ikumi na ili 22 -0010-09-15T04:44:23 = Jumamosi, -10 Mwei wa kenda 15 Long 2008-02-05T18:30:30 = 2008 Mwei wa keli 5 1995-12-22T09:05:02 = 1995 Mwei wa ikumi na ili 22 -0010-09-15T04:44:23 = -10 Mwei wa kenda 15 Medium 2008-02-05T18:30:30 = 2008 Mwei wa keli 5 1995-12-22T09:05:02 = 1995 Mwei wa ikumi na ili 22 -0010-09-15T04:44:23 = -10 Mwei wa kenda 15 Short 2008-02-05T18:30:30 = 08/02/05 1995-12-22T09:05:02 = 95/12/22 -0010-09-15T04:44:23 = -10/09/15 Default 2008-02-05T18:30:30 = 2008 Mwei wa keli 5 1995-12-22T09:05:02 = 1995 Mwei wa ikumi na ili 22 -0010-09-15T04:44:23 = -10 Mwei wa kenda 15 Time Formats Full 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Long 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Medium 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Short 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 Default 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Datetime Formats Full 2008-02-05T18:30:30 = Jumanne, 2008 Mwei wa keli 05 18:30:30 UTC 1995-12-22T09:05:02 = Ijumaa, 1995 Mwei wa ikumi na ili 22 09:05:02 UTC -0010-09-15T04:44:23 = Jumamosi, -10 Mwei wa kenda 15 04:44:23 UTC Long 2008-02-05T18:30:30 = 2008 Mwei wa keli 5 18:30:30 UTC 1995-12-22T09:05:02 = 1995 Mwei wa ikumi na ili 22 09:05:02 UTC -0010-09-15T04:44:23 = -10 Mwei wa kenda 15 04:44:23 UTC Medium 2008-02-05T18:30:30 = 2008 Mwei wa keli 5 18:30:30 1995-12-22T09:05:02 = 1995 Mwei wa ikumi na ili 22 09:05:02 -0010-09-15T04:44:23 = -10 Mwei wa kenda 15 04:44:23 Short 2008-02-05T18:30:30 = 08/02/05 18:30 1995-12-22T09:05:02 = 95/12/22 09:05 -0010-09-15T04:44:23 = -10/09/15 04:44 Default 2008-02-05T18:30:30 = 2008 Mwei wa keli 5 18:30:30 1995-12-22T09:05:02 = 1995 Mwei wa ikumi na ili 22 09:05:02 -0010-09-15T04:44:23 = -10 Mwei wa kenda 15 04:44:23 Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 Jnn 1995-12-22T09:05:02 = 22 Ijm -0010-09-15T04:44:23 = 15 Jms Hm (H:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 PM 1995-12-22T09:05:02 = 9:05 AM -0010-09-15T04:44:23 = 4:44 AM Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 PM 1995-12-22T09:05:02 = 9:05:02 AM -0010-09-15T04:44:23 = 4:44:23 AM M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (M-d) 2008-02-05T18:30:30 = 2-5 1995-12-22T09:05:02 = 12-22 -0010-09-15T04:44:23 = 9-15 MEd (E, M-d) 2008-02-05T18:30:30 = Jnn, 2-5 1995-12-22T09:05:02 = Ijm, 12-22 -0010-09-15T04:44:23 = Jms, 9-15 MMM (LLL) 2008-02-05T18:30:30 = Mwei wa keli 1995-12-22T09:05:02 = Mwei wa ikumi na ili -0010-09-15T04:44:23 = Mwei wa kenda MMMd (MMM d) 2008-02-05T18:30:30 = Mwei wa keli 5 1995-12-22T09:05:02 = Mwei wa ikumi na ili 22 -0010-09-15T04:44:23 = Mwei wa kenda 15 MMMEd (E MMM d) 2008-02-05T18:30:30 = Jnn Mwei wa keli 5 1995-12-22T09:05:02 = Ijm Mwei wa ikumi na ili 22 -0010-09-15T04:44:23 = Jms Mwei wa kenda 15 MMMMd (MMMM d) 2008-02-05T18:30:30 = Mwei wa keli 5 1995-12-22T09:05:02 = Mwei wa ikumi na ili 22 -0010-09-15T04:44:23 = Mwei wa kenda 15 MMMMEd (E MMMM d) 2008-02-05T18:30:30 = Jnn Mwei wa keli 5 1995-12-22T09:05:02 = Ijm Mwei wa ikumi na ili 22 -0010-09-15T04:44:23 = Jms Mwei wa kenda 15 ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (y-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -10-9 yMEd (EEE, y-M-d) 2008-02-05T18:30:30 = Jnn, 2008-2-5 1995-12-22T09:05:02 = Ijm, 1995-12-22 -0010-09-15T04:44:23 = Jms, -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 Mwei wa keli 1995-12-22T09:05:02 = 1995 Mwei wa ikumi na ili -0010-09-15T04:44:23 = -10 Mwei wa kenda yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = Jnn, 2008 Mwei wa keli 5 1995-12-22T09:05:02 = Ijm, 1995 Mwei wa ikumi na ili 22 -0010-09-15T04:44:23 = Jms, -10 Mwei wa kenda 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 Mwei wa keli 1995-12-22T09:05:02 = 1995 Mwei wa ikumi na ili -0010-09-15T04:44:23 = -10 Mwei wa kenda yQ (y Q) 2008-02-05T18:30:30 = 2008 1 1995-12-22T09:05:02 = 1995 4 -0010-09-15T04:44:23 = -10 3 yQQQ (y QQQ) 2008-02-05T18:30:30 = 2008 Q1 1995-12-22T09:05:02 = 1995 Q4 -0010-09-15T04:44:23 = -10 Q3 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 Miscellaneous Prefers 24 hour time? Yes Local first day of the week Jumatatu SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.18.2 2017-10-06 DateTime::Locale::kam(3)
All times are GMT -4. The time now is 08:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy