Some trace file to track timings of a process


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Some trace file to track timings of a process
# 1  
Old 01-31-2019
Some trace file to track timings of a process

I will initiate a process from Server1 and the flow is as follow

Code:
Server1 --> Web server --> Application server --> DB Server

Note all seperate unix servers.

Now I need to put a trace for that process to track the timings from each server.

Like the below trace should be there:

Code:
Server1(09:00:00) --> Web Server(09:00:03) --> Application Server (9:00:05) -->DB Server (9:00:59)
Server1(09:02:30) <-- Web Server(09:02:03) <-- Application Server (9:01:05) <-- DB Server (9:01:03)

With this I can understand in performance bottleneck layer.

Please help.
# 2  
Old 01-31-2019
Not sure I understand your request. Pls. enlighten me. What is that flow across four servers? Ususally we're talking of data and / or RPCs. Some processing on server1, then wait for some data transfer or a service call to the Web server, same here and further down, then come back to the parent server1 to continue processing.
Please elaborate.
# 3  
Old 01-31-2019
Applications and Performance Management (APM) products may be what you are looking for. Some examples would be nagios, Foglight, Big Brother, Solarwinds, New Relic, BMC, and probably a bunch more. An agent or instrumentation is installed on each system to "monitor" activity. End to end process tracing or "transaction" tracing has been the holy grail of APM for decades and very few companies can do it well because there isn't always an easy mapping between systems. Usually you will get partial info for specific transactions or you can only monitor a few transactions in real time due to the huge volume of data that would need to be collected for all transactions.
# 4  
Old 02-01-2019
Quote:
Originally Posted by saraperu
....

Now I need to put a trace for that process to track the timings from each server.

....

With this I can understand in performance bottleneck layer.

Please help.
To get started, have you considered using the web dev water fall performance testing tools in your browser?

That is what I use.

Also, some people find online tools like this helpful:

Code:
https://www.webpagetest.org/

These kinds of tests are really good for your first order performance reviews and will tell you where your web performance bottlenecks are including the backend timing.

I use the web dev tools in the chrome browser and I can easily tell what his going on, end-to-end, in a web transaction.
# 5  
Old 02-01-2019
Here from server1, I will issue URL link which will go to web server, app server, db server to retrieve the requested data as output
# 6  
Old 02-01-2019
Quote:
Originally Posted by saraperu
Here from server1, I will issue URL link which will go to web server, app server, db server to retrieve the requested data as output
This is quite standard, obviously.

This server at unix.com works exactly the same way, as do most web servers.

You should start with a good web dev tool like the one in your browser which is designed to show you the timing in a water fall manner.

You can easily insert some testing code, like some Javascript, in the mix to help you drill down further.

If your backend server is slow, you need to move to the server and look at the system performance as a whole.

If you have any modern day, decent, back-end server, the bottleneck is often in the page rendering on the web site (too many big files, large javascript libs, etc.)

There is not one single tool which will do the entire process from user at the browser to the database.

You must first isolate the problem, normally with a web dev tool in a browser, and then drill down.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Trace Process performance Using PID

Hi, i want to track a process using its PID in SOLARIS. i have a code in C++ , which memory is increasing steeply increasing every 20 days, from the code i couldn't see any memory leak. is there any way in UNIX where with the help of PID i can trace the Process usage evry hour. ... (3 Replies)
Discussion started by: senkerth
3 Replies

2. Linux

Trace an extinct process

Hi gurus, Just wanted to know if there is any way to trace the PID of a process that has already completed it's job and exited. My tomcat server was found in a hung state and we restarted it. Now we have found that someone has ran a kill -9 "pid" and wanted to know if it is the PID of tomcat.... (1 Reply)
Discussion started by: Hari_Ganesh
1 Replies

3. Shell Programming and Scripting

Script to monitor a process and track status in a file

i have a scenario where i need a script that monitors a process "Monitor" based on process id... there can be any number of instances of this running... i start this across 4 servers in NFS. Now i need a file which has the process ids of the process that are currently in execution at any... (9 Replies)
Discussion started by: niteesh_!7
9 Replies

4. AIX

How to trace cpu/memory usage for a process

I don't know when the process will start and end, I need write a script to trace it's cpu/memory usage when it is runing. How to write this script? (2 Replies)
Discussion started by: rainbow_bean
2 Replies

5. UNIX for Advanced & Expert Users

How to trace an AIX Process?

Hello, I execute an application on my Unix AIX Server and that one crashes after reading some files. These files are very big (80 Mbytes), the application is a CVS Repository. I have found with a comparaison on a Solaris Server that there are system limitations on my AIX Server in the... (2 Replies)
Discussion started by: steiner
2 Replies

6. Shell Programming and Scripting

how to track a log file of one process and mail that logfile to a group?

Hi Friendz, I have 14 DB load scripts say 1,2,3....14. I want a script to call each script automatically, and after completion of every script, it needs to track the logfile and mail that log file to a group.and again it should run the next script in sequence 1,2,3...14 Please help me,need... (1 Reply)
Discussion started by: shirdi
1 Replies

7. Solaris

Help to trace process consuming more space

Hi all, We have a server having much processes running. It is very difficuilt to trace the exact consuming more memory. Howerver, it shows CPU usage in sequence but how memory? Tried working with TOP command. Please let me know if something not clear. Thanks, Deepak (5 Replies)
Discussion started by: naw_deepak
5 Replies

8. AIX

Trace the process responsible for locking filesystem ?

Hi, Sometimes when I want to unmount some filesystem I get "The requested resource is busy." error. In such a case I try to find and kill process that uses that filesystem. I do that on random. Is there a right way to find whitch prosesses use filesystem resource at given time ? thanks... (1 Reply)
Discussion started by: vilius
1 Replies

9. Linux

how to trace iowait to a certain process

Hi all, Under top command you could see some iowait output. Is any way to locate which process(s) is causing the high percentage of iowait? 17:48:39 up 19 days, 18:54, 3 users, load average: 3.24, 3.14, 3.17 392 processes: 389 sleeping, 1 running, 2 zombie, 0 stopped CPU states: cpu user... (3 Replies)
Discussion started by: will_mike
3 Replies

10. Shell Programming and Scripting

Track Sftp process

Hi, I am using sftp in my bash script. I wanted to know whether if there is any way that we can track whether sftp has been successful or not.. Does sftp return any codes? Thanks in adv (9 Replies)
Discussion started by: borncrazy
9 Replies
Login or Register to Ask a Question