Sponsored Content
Top Forums Shell Programming and Scripting Processes running response time Post 303023290 by RavinderSingh13 on Friday 14th of September 2018 05:06:25 AM
Old 09-14-2018
Quote:
Originally Posted by simpsa27
Hi All
I have been asked to write scripts within our monitoring tool for a vast requirement set.
One of the requirements is below:
• Lowest, Highest & Average response times of the Documentum process threads serving client requests
Essentially they want a view where we can see the lowest file time / highest file time and the average.
Is there a way to create a script to get the average?
Code:
[apmuser@wyclapph053 epaplugins]$ ps -ef | grep docbase
docuser   6130 20473  0 Sep12 ?        00:01:48 ./documentum -docbase_name ICP -security acl -init_file /opt/product/documentum/dba/config/ICP/server.ini
docuser   6136 20473  0 Sep12 ?        00:00:00 ./documentum -docbase_name ICP -security acl -init_file /opt/product/documentum/dba/config/ICP/server.ini
docuser   7093 20473  0 Sep12 ?        00:00:27 ./documentum -docbase_name ICP -security acl -init_file /opt/product/documentum/dba/config/ICP/server.ini
docuser   9541 20473  0 Sep12 ?        00:00:00 ./documentum -docbase_name ICP -security acl -init_file /opt/product/documentum/dba/config/ICP/server.ini
docuser  10430 20473  0 Sep12 ?        00:04:28 ./dm_agent_exec -docbase_name ICP.ICP -docbase_owner docuser -sleep_duration 0
docuser  12932 20473  0 Sep12 ?        00:00:00 ./documentum -docbase_name ICP -security acl -init_file /opt/product/documentum/dba/config/ICP/server.ini
apmuser  14731 29344  0 09:53 pts/2    00:00:00 grep docbase
docuser  16398 20473  0 Sep12 ?        00:00:02 ./documentum -docbase_name ICP -security acl -init_file /opt/product/documentum/dba/config/ICP/server.ini
docuser  20473     1  0 Sep12 ?        00:00:32 ./documentum -docbase_name ICP -security acl -init_file /opt/product/documentum/dba/config/ICP/server.ini
docuser  21984 20473  0 08:20 ?        00:00:00 ./documentum -docbase_name ICP -security acl -init_file /opt/product/documentum/dba/config/ICP/server.ini
[apmuser@wyclapph053 epaplugins]$

They want a view of the lowest file time / the highest file time and then the average of all files. Is this possible if so what would the command be as I have no clue?
Thanks in advance
Hello simpsa27,

Not sure what do you mean by average values by checking Docbase processes? They are just processes for documentum repository. Please do mention actual requirement of yours as it is not clear, are you seeing any slowness on content server or application server side? Kindly do mention all details in your post.

Thanks,
R. Singh
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

ls -l : response time slow

Hi all, If I give ls , it lists files in 1 second. It I give ls -l , it takes 8 seconds There are only 55 files in the directory. Any explanation? Thanks Wilson (4 Replies)
Discussion started by: geraldwilson
4 Replies

2. UNIX for Advanced & Expert Users

Response time under packet loss

I am experiencing a problem where under a dial condition I am experiencing packet loss, which is failrly normal, but the response to the packet loss is taking bewteen 6 and 10 seconds. Could someone please advise what the industry standard is on the response time under a packet loss senario. (1 Reply)
Discussion started by: shane
1 Replies

3. UNIX for Advanced & Expert Users

Response time & IO max

in HP-UX how i can measure the response time and how can i find the maximum IO (1 Reply)
Discussion started by: salhoub
1 Replies

4. Shell Programming and Scripting

determine the active processes on the system which are running since long time

Hi , Please help me shell script to determine the active processes on the system which are running since long time (2 Replies)
Discussion started by: itian2010
2 Replies

5. Shell Programming and Scripting

Calculate response time from log

I have a running log file (jboss_server.log) which rotates at midnight . I need to constantly check and calculate the time for each thread and alert if it doesnt complete within 60 minute. For example my log file has following printed . I want to run a script in cron every 30 minutes and... (2 Replies)
Discussion started by: gubbu
2 Replies

6. IP Networking

Tshark/pcap and web-server response time

Hi everyone! How can I get response time difference between GET and HTTP/1.0 200 OK (i mean time latency of web-server) with using of tshark&shell or something else for each hostname from pcap file? What can you recommend me to do that? (1 Reply)
Discussion started by: lepetal
1 Replies

7. Shell Programming and Scripting

Calculate avg response time on hourly basis

Hi, I am trying to calculate avg response time on hourly basis from the log file which has millions of records. As of now I am trying with creating temp file which will have lines with unique id and start time and end time and after that another script will run on this temp file to... (7 Replies)
Discussion started by: random_thoughts
7 Replies

8. Shell Programming and Scripting

Script to check response time from nginx logs

Hi, My goal is to monitor the response time from the access logs of nginx server. I am using gawk to print the needed fields - 'response time' and 'name of the service' from nginx logs. Command: gawk '($6 ~ /cloudservice/) {print $10, $6}' access.log Output: 0.645 /nc/cloudservice... (6 Replies)
Discussion started by: nshah11
6 Replies

9. Shell Programming and Scripting

Multi threading - running multiple processes at the same time

so i've been using this a lot in a lot of my scripts: ( columnA & columnAPID=$! & columnB & columnBPID=$! & columnC & columnCPID=$! &) & wait ${columnAPID} wait ${columnBPID} wait ${columnCPID} It seems to work as ive seen it dramatically reduce run time of my scripts. however, i'm... (5 Replies)
Discussion started by: SkySmart
5 Replies

10. UNIX for Beginners Questions & Answers

Many processes running at the same time

Hello everybody , I launched cron to execute a task every hour but the job takes more than hour that's why I'm getting more than 1000 cron processes running at the same time !!! My question is how to tell cron not to execute unless the job terminated in order to have only one process running .... (14 Replies)
Discussion started by: beautymind
14 Replies
squid(8)						      System Manager's Manual							  squid(8)

NAME
squid - HTTP web proxy caching server SYNOPSIS
squid [-dhisrvzCFNRSVYX] [-l facility ] [-f config-file ] [-[au] port ] [-k signal ] [-n service-name ] [-O command-line ] DESCRIPTION
squid is a high-performance proxy caching server for web clients, supporting FTP, gopher, ICAP, ICP, HTCP and HTTP data objects. Unlike traditional caching software, Squid handles all requests in a single, non-blocking process. Squid keeps meta data and especially hot objects cached in RAM, caches DNS lookups, supports non-blocking DNS lookups, and implements nega- tive caching of failed requests. Squid supports SSL, extensive access controls, and full request logging. By using the lightweight Internet Cache Protocols ICP, HTCP or CARP, Squid caches can be arranged in a hierarchy or mesh for additional bandwidth savings. Squid consists of a main server program squid , some optional programs for custom processing and authentication, and some management and client tools. When squid starts up, it spawns a configurable number of helper processes, each of which can perform parallel lookups. This reduces the amount of time the cache waits for results. Squid is derived from the ARPA-funded Harvest Project. This manual page only lists the command line arguments. For details on how to configure Squid see the file /etc/squid/squid.conf.docu- mented, the Squid wiki FAQ and examples at http://wiki.squid-cache.org/ , or the configuration manual on the Squid home page http://www.squid-cache.org/Doc/config/ OPTIONS
-a port Specify HTTP port number where Squid should listen for requests, in addition to any http_port specifications in squid.conf -C Do not catch fatal signals. -d level Write debugging to stderr also. -f file Use the given config-file instead of /etc/squid/squid.conf . If the file name starts with a ! or | then it is assumed to be an external command or command line. Can for example be used to pre-process the configuration before it is being read by Squid. To facilitate this Squid also understands the common #line notion to indicate the real source file. -F Don't serve any requests until store is rebuilt. -h Print help message. -i Install as a Windows Service (see -n option). -k reconfigure | rotate | shutdown | interrupt | kill | debug | check | parse Parse configuration file, then send signal to running copy (except -k parse ) and exit. -l facility Use specified syslog facility. Implies -s -n name Specify Windows Service name to use for service operations, default is: Squid -N No daemon mode. -O options Set Windows Service Command line options in Registry. -r Remove a Windows Service (see -n option). -R Do not set REUSEADDR on port. -s Enable logging to syslog. Also configurable in /etc/squid/squid.conf -S Double-check swap during rebuild. -u port Specify ICP port number (default: 3130), disable with 0. -v Print version and build details. -X Force full debugging. -Y Only return UDP_HIT or UDP_MISS_NOFETCH during fast reload. -z Create missing swap directories and other missing cache_dir structures, then exit. All cache_dir types create the configured top-level directory if it is missing. Other actions are type-specific. For example, ufs-based storage systems create missing L1 and L2 directories while Rock creates the missing database file. This option does not enable validation of any present swap structures. Its focus is on creation of missing pieces. If nothing is missing, squid -z just exits. If you suspect cache_dir corruption, you must delete the top-level cache_dir directory before running squid -z. By default, squid -z runs in daemon mode (so that configuration macros and other SMP features work as expected). Use -N option to overwrite this. FILES
Squid configuration files located in /etc/squid/: squid.conf The main configuration file. You must initially make changes to this file for squid to work. For example, the default configuration only allows access from RFC private LAN networks. Some packaging distributions block even that. squid.conf.default Reference copy of the configuration file. Always kept up to date with the version of Squid you are using. Use this to look up the default configuration settings and syntax after upgrading. squid.conf.documented Reference copy of the configuration file. Always kept up to date with the version of Squid you are using. Use this to read the documentation for configuration options available in your build of Squid. The online configuration manual is also available for a full reference of options. seehttp://www.squid-cache.org/Doc/config/ cachemgr.conf The main configuration file for the web cachemgr.cgi tools. msntauth.conf The main configuration file for the Sample MSNT authenticator. errorpage.css CSS Stylesheet to control the display of generated error pages. Use this to set any company branding you need, it will apply to every language Squid provides error pages for. Some files also located elsewhere: /etc/squid/mime.conf (mime_table) MIME type mappings for FTP gatewaying /usr/share/squid/errors Location of Squid error pages and templates. AUTHOR
Squid was written over many years by a changing team of developers and maintained in turn by Duane Wessels <duane@squid-cache.org> Henrik Nordstrom <hno@squid-cache.org> Amos Jeffries <amosjeffries@squid-cache.org> With contributions from many others in the Squid community. see CONTRIBUTORS for a full list of individuals who contributed code. see CREDITS for a list of major code contributing copyright holders. COPYRIGHT
This software product, SQUID, is developed by a team of individuals, and copyrighted (C) 2001 by the Regents of the University of Califor- nia, with all rights reserved. UCSD administered the NLANR Cache grants, NCR 9616602 and NCR 9521745 under which most of this code was developed. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (version 2) as published by the Free Software Foundation. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. see the CREDITS file for further copyright licensing of third-party code contributions. QUESTIONS
Questions on the usage of this program can be sent to the Squid Users mailing list <squid-users@squid-cache.org> REPORTING BUGS
Bug reports need to be made in English. See http://wiki.squid-cache.org/SquidFaq/BugReporting for details of what you need to include with your bug report. Report bugs or bug fixes using http://bugs.squid-cache.org/ Report serious security bugs to Squid Bugs <squid-bugs@squid-cache.org> Report ideas for new improvements to the Squid Developers mailing list <squid-dev@squid-cache.org> SEE ALSO
cachemgr.cgi (8), squidclient (1), pam_auth (8), squid_ldap_auth (8), squid_ldap_group (8), ext_session_acl (8), squid_unix_group (8), The Squid FAQ wiki http://wiki.squid-cache.org/SquidFaq The Squid Configuration Manual http://www.squid-cache.org/Doc/config/ squid(8)
All times are GMT -4. The time now is 09:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy