Questions tagged [monitoring]

Monitoring is the act of looking on the processes or systems for performance, supervision and surveillance.

Monitoring is the act of looking on the processes or systems for performance, supervision and surveillance.

4724 questions
607
votes
13 answers

How can I view live MySQL queries?

How can I trace MySQL queries on my Linux server as they happen? For example I'd love to set up some sort of listener, then request a web page and view all of the queries the engine executed, or just view all of the queries being run on a production…
barfoon
  • 27,481
  • 26
  • 92
  • 138
254
votes
12 answers

How to activate JMX on my JVM for access with jconsole?

How to activate JMX on a JVM for access with jconsole?
Mauli
  • 16,863
  • 27
  • 87
  • 114
105
votes
10 answers

How to monitor a complete directory tree for changes in Linux?

How can I monitor a whole directory tree for changes in Linux (ext3 file system)? Currently the directory contains about half a million files in about 3,000 subdirectories, organized in three directory levels. Those are mostly small files (< 1kb,…
Udo G
  • 12,572
  • 13
  • 56
  • 89
91
votes
11 answers

How to monitor SQL Server table changes by using c#?

I have more than one application accessing the same DB and I need to get notified if one of these apps change anything (update, insert) in a certain table. Database and apps are not in the same server.
ToDayIsNow
  • 1,137
  • 1
  • 11
  • 13
87
votes
6 answers

How do I make my program watch for file modification in C++?

There are a lot of programs, Visual Studio for instance, that can detect when an outside program modifies a file and then reload the file if the user wants chooses. Is there a relatively easy way to do this sort of thing in C++ (doesn't necessarily…
Alex
  • 14,973
  • 13
  • 59
  • 94
78
votes
15 answers

How to monitor Java memory usage?

We have a j2ee application running on Jboss and we want to monitor its memory usage. Currently we use the following code System.gc(); Runtime rt = Runtime.getRuntime(); long usedMB = (rt.totalMemory() - rt.freeMemory()) / 1024 / 1024; …
Oleg Pavliv
  • 20,462
  • 7
  • 59
  • 75
77
votes
17 answers

Web application monitoring best practices

We are finishing up our web application and planning for deployment. Very important aspect of deployment to production is monitoring the health of the system. Having a small team of developers/support makes it very critical for us to get the early…
Sergey Golovchenko
  • 18,203
  • 15
  • 55
  • 72
76
votes
23 answers

How to monitor a text file in realtime

For debugging purposes in a somewhat closed system, I have to output text to a file. Does anyone know of a tool that runs on windows (console based or not) that detects changes to a file and outputs them in real-time?
pbreault
  • 14,176
  • 18
  • 45
  • 38
74
votes
5 answers

Read from a log file as it's being written using python

I'm trying to find a nice way to read a log file in real time using python. I'd like to process lines from a log file one at a time as it is written. Somehow I need to keep trying to read the file until it is created and then continue to process…
Anon
  • 5,103
  • 11
  • 45
  • 58
67
votes
5 answers

watchdog monitoring file for changes

I have a need to watch a log file for changes. After looking through stackoverflow questions, I see people recommending watchdog. So I'm trying to test, and am not sure where to add the code for when files change: import time from…
Cmag
  • 14,946
  • 25
  • 89
  • 140
66
votes
11 answers

Monitor network activity in Android Phones

I would like to monitor network traffic of my Android Phone. I was thinking using tcpdump for Android, but I'm not sure if I have to cross-compile for the phone. Another question is the following, If I want to monitor the trafic data for a certain…
Iker
  • 2,018
  • 2
  • 29
  • 52
63
votes
5 answers

Monitoring contents of files/directories?

I'm looking for a cross-platform file monitoring python package? I know it is possible to monitor files on windows using pywin32, and there are packages working on Linux/Unix but does anyone know about a cross-platform one?
dahpgjgamgan
  • 2,977
  • 4
  • 25
  • 26
59
votes
6 answers

God vs. Monit for process monitoring

Which one to use for process monitoring and why?
Milan Novota
  • 15,506
  • 7
  • 54
  • 62
58
votes
3 answers

What is the best macro-benchmarking tool / framework to measure a single-threaded complex algorithm in Java?

I want to make some performance measures (mainly runtime) for my Java code, a single-threaded, local, complex algorithm. (So I do not want a macro-benchmark to measure a JVM implementation.) With the tool, I would like to analyse the complexity,…
DaveFar
  • 7,078
  • 4
  • 50
  • 90
57
votes
7 answers

Graphing a process's memory usage

Does anyone know of a tool to visually show the memory usage of a selected process on Ubuntu? ps aux will show a numerical snapshot, but I'd really like a line I can watch change as I hammer the process and hopefully see unexpected behaviours. Has…
BanksySan
  • 27,362
  • 33
  • 117
  • 216
1
2 3
99 100