monitoring

Monitoring network usage excluding local traffic

时光毁灭记忆、已成空白 提交于 2019-11-30 05:11:09
I am working on an app that monitors network usage. However I noticed many ways to do this does not allow exclusion of local traffic (say, Time Machine). I am looking for a way to exclude local traffic, and only monitors usage that goes directly to/from the internet. Update : Thank you for your replies, now I know how to find if the traffic is local, but I still don't know how I can calculate total in/out bytes (sorry if I didn't elaborate earlier). I have no way of knowing how many bytes are sent/received locally (or to the internet) in a certain period of time, or since the OS starts. This

How to monitor java application memory usage in Docker

邮差的信 提交于 2019-11-30 05:09:59
I run the java web application on tomcat in the Docker container. Is there any way to monitor the memory usage of the java application? I try to use jconsole with the process id of the docker, but it tells me Invalidate process id I also enable JMX in tomcat, but don't know how to bind to it. I can use visualvm from my local to bind the host machine, but can not find way to bind to the docker inner the host. Is there any good way to achieve this? Thanks To connect to a java process running in a docker container running in boot2docker with visualvm you can try the following: Start your java

How do I enable access to region monitoring service?

纵然是瞬间 提交于 2019-11-30 03:50:30
问题 I've simplified the question a bit. When I create and add regions in my app and interrogate the state of those regions I see the following in monitoringDidFailForRegion method: The operation couldn’t be completed. (kCLErrorDomain error 4.) Checking the CLErrorDomain constants I see that error 4 is kCLErrorRegionMonitoringDenied and it is described like so: Access to the region monitoring service was denied by the user. How is this possible? Here's my set up and what I've checked: I am working

How can I monitor the executed sql statements on a SQL Server 2005

烂漫一生 提交于 2019-11-30 03:17:35
In a project of mine the SQL statements that are executed against a SQL Server are failing for some unknown reason. Some of the code is already used in production so debugging it is not an easy task. Therefore I need a way to see in the database itself what SQL statements are used, as the statements are generated at runtime by the project and could be flawed when certain conditions are met. I therefore considered the possibility to monitor the incoming statements and check myself if I see any flaws. The database is running on a SQL Server 2005, and I use SQL server management studio express as

Monitoring memory usage in AWS CloudWatch for Windows instance

扶醉桌前 提交于 2019-11-30 01:00:05
问题 By default, memory usage isn’t monitored by CloudWatch. So I tried to add it to my Windows instance in AWS using these instructions. This is what I did: I created a user named custom-metrics-user . Then I stored the access and secret key. I created and attached an Inline Policy to the user. it looks like this: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": ["cloudwatch:PutMetricData", "cloudwatch:GetMetricStatistics", "cloudwatch:ListMetrics", "ec2:DescribeTags"],

startMonitoringForRegion never calls didEnterRegion/didExitRegion

核能气质少年 提交于 2019-11-30 00:44:26
I try to get the iPhone4 to monitor regions and notify me by call didEnterRegion or didExitRegion. I can't get it to work. I was reading probably all related enries here, plus a couple more articles on the web....iOS just don't call my CLLocationManagerDelegate methods. What did I do: I have a simple AppDelegate which implements also the CLLocationManagerDelegate methods for didEnterRegion and didExitRegion. Within these methods I simply use a UILocalNotification to report the event. From a ViewController I create a Region (the current Location) with aRadius of 1000meters. Here are some things

How to monitor MySQL query errors, timeouts and logon attempts? [closed]

心不动则不痛 提交于 2019-11-29 20:37:24
问题 While setting up a third party closed source CMS (Sitefinity) the setup doesn't create all tables and procedures necessary to run it. The software lacks a logging system itself and it made me wonder: could I trace and monitor failing SQL statements from MySQL? This serves more than only the purpose of solving my issue with Sitefinity. More often I wonder what's send to the MySQL server, not wanting to dive into the software products or setup a debugging environment etc. I tried JetProfiler

What is the best way to measure Client Side page load times?

孤街浪徒 提交于 2019-11-29 19:55:11
I'm looking to monitor the end user experience of our website and link that with timing information already logged on the server side. My assumption is that this will require javascript to to capture time stamps at the start of request (window.onbeforeunload) and at the end of loading (window.onload). Basically this - " Measuring Web application response time: Meet the client " Is there a better approach? What kind of performance penalty should I be expecting (order of magnitude)? How good are the results? EDIT (2013): try Boomerang instead, like @yasei-no-umi suggests. It's actively

God vs. Monit [closed]

不问归期 提交于 2019-11-29 18:59:33
Which one to use for process monitoring and why? Both solutions are good, and there are some pros and cons for both of them. God config file is written in Ruby, so you can do basically everything Ruby allows you to do, and it's a lot of stuff. Monit has to be configured using its own syntax, it's usually OK but more restrictive. Anyway, you can also generate monit config with Ruby (as a part of your deployment strategy). Also, monit uses less resources, so if you're on VPS or just don't have any spare memory, monit could be a better choice. Personally, I prefer god, as it's more configurable.

Is it possible to enable remote jmx monitoring programmatically?

六眼飞鱼酱① 提交于 2019-11-29 18:31:45
问题 I need to programmatically start a new java process and dynamically set the JMX port. So instead of doing this -Djava.rmi.server.hostname=127.0.0.1 -Dcom.sun.management.jmxremote.port=9995 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false I would like to do the following System.setProperty("java.rmi.server.hostname", "127.0.0.1" ); System.setProperty("com.sun.management.jmxremote", "true" ); System.setProperty("com.sun.management.jmxremote.authenticate