monitoring

WMI __InstanceModificationEvent filtering

一世执手 提交于 2020-01-05 03:36:18
问题 We are designing a monitoring solution for our system, and we're looking into WMI as a possible option. In short, we want to create a generic system where it shall be possible to subscribe to multiple changes in WMI data instances. We're looking into the __InstanceModificationEvent to do this: The following prototype code monitors all changes on any instance of notepad: void StartMonitor() { var query = "SELECT * " + "FROM __InstanceModificationEvent " + "WITHIN 1 " + "WHERE TargetInstance

cAdvisor prometheus integration returns container_cpu_load_average_10s as 0

耗尽温柔 提交于 2020-01-04 14:12:24
问题 I have configured Prometheus to scrape metrics from cAdvisor. However, the metric "container_cpu_load_average_10s" only returns 0. I am able to see the CPU metrics under the cAdvisor web UI correctly but Prometheus receives only 0. It is working fine for other metrics like "container_cpu_system_seconds_total". Could someone point if I am missing something here? Prometheus version: 2.1.0 Prometheus config: scrape_configs: - job_name: cadvisor scrape_interval: 5s metrics_path: /metrics scheme:

cAdvisor prometheus integration returns container_cpu_load_average_10s as 0

眉间皱痕 提交于 2020-01-04 14:11:13
问题 I have configured Prometheus to scrape metrics from cAdvisor. However, the metric "container_cpu_load_average_10s" only returns 0. I am able to see the CPU metrics under the cAdvisor web UI correctly but Prometheus receives only 0. It is working fine for other metrics like "container_cpu_system_seconds_total". Could someone point if I am missing something here? Prometheus version: 2.1.0 Prometheus config: scrape_configs: - job_name: cadvisor scrape_interval: 5s metrics_path: /metrics scheme:

Monitoring the Memory Usage of Spark Jobs

点点圈 提交于 2020-01-03 08:26:30
问题 How can we get the overall memory used for a spark job. I am not able to get the exact parameter which we can refer to retrieve the same. Have referred to Spark UI but not sure of the field which we can refer. Also in Ganglia we have the following options: a)Memory Buffer b)Cache Memory c)Free Memory d)Shared Memory e)Free Swap Space Not able to get any option related to Memory Used. Does anyone have some idea regarding this. 回答1: If you persist your RDDs you can see how big they are in

Batch file to switch between browser tabs

旧街凉风 提交于 2020-01-03 04:44:27
问题 I have two browser tabs running monitoring applications on a screen. I want to automate switching between tabs after lets say every 2 mins. I think this can be achieved by creating a scheduled task in windows which execute a batch file every 2 mins. Batch file will switch the tab. I need help creating such batch file. Thanks. 回答1: You can use VBScript to do that, Example for IE : Create a file Switch.vbs with this : Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.AppActivate

Can VisualVM monitoring apps running on JRE

不打扰是莪最后的温柔 提交于 2020-01-02 07:15:23
问题 as the headline mentioned: is it possible to connect VisualVM to an remote application running on JRE instead of JDK ? And yes, the VisualVM itself runs on JDK ! Kind regards Dominik 回答1: VisualVM connects to a running Java Virtual Machine (JVM). And this JVM is contained both in the JDK and the JRE. In fact, the JDK is a JRE with additional tools and items to allow creating Java programs. If you only want to run them, you only need a JDK. So yes, you can connect to a JRE-only install. 来源:

How do I ping from Flex - AIR?

霸气de小男生 提交于 2020-01-01 10:53:17
问题 I'm bored cause my development server is down and I'm running the command prompt to ping the server indefinitely so that I'll see when they stop timing out and know that I can work again. In the meantime I wanted to make an Air app that will do this for me, so I can have it chirp or alarm or do something when it starts to be able to connect to the server. So I need to start with having AIR do the ping, does anyone know how to do this? I can't find any help on it. I can't use the HTTPService

Monitoring for Commons DBCP?

早过忘川 提交于 2020-01-01 05:20:15
问题 A huge webapp in my Tomcat sometimes starts using too many DBCP connections, leading to problems. To investigate, I want to know precisely at each point in time what thread/method is holding a connection of the pool. Does not need to be real-time, post-mortem analysis is OK. I have been looking for such a DBCP monitoring tool, in vain, so I am about to write mine. (if there is any interest I can make it open source) Here is my plan: Modify PoolingDataSource.getConnection to log " DBCP+1

How to find the cause of a 100% CPU usage on an iPhone App

ぐ巨炮叔叔 提交于 2020-01-01 04:26:25
问题 I've diagnosed a strange behavior in an app : after 10 minutes or so, the CPU usage goes to 100%. There's no leak in the app, and it happens while the app is doing nothing. I can profile this with instruments using the "Time Profiler", but is there a way to find what the actual cause is ? 回答1: When profiling with Instruments (Time Profiler), look to see what method is using the majority of CPU time. Trace the calls back to see why. 来源: https://stackoverflow.com/questions/7388453/how-to-find

What key performance monitors should I watch for ASP.NET application

北城余情 提交于 2019-12-31 14:31:01
问题 I have a site that receives 5 million request per day. On heavy days, the pages take about 10 seconds to return. I also get out of memory exceptions. I've been reading the Improving .NET Application Performance and Scalability from Microsoft and see there are a lot of metrics I could watch. My question is: What are the most basic counters I should be watching that will : Tell me where the 10 seconds is spent Tell me where the memory is being used? this is an ASP.NET 2.0 app running on Win2003