monitoring

How to Get Per Process Disk Activity in Windows

こ雲淡風輕ζ 提交于 2019-11-30 16:03:13
问题 I need to extract disk statistics for a given process, I can get the processes listed and get overall information such as CPU and Memory listed using WMI and PerformanceCounters. But the information is all bundled up, is there any way to extract those data per process. Kind of like in Windows Resource Monitor? Thanks in Advance 回答1: If you need live data, you should implement ETW listener. ETW are the way of tracing performance information in Windows. It is supported back to Windows 2000.

is it possible to monitor folder using java code?

淺唱寂寞╮ 提交于 2019-11-30 15:46:02
问题 is there anyone know how to monitor a folder using java? or anyone could gave me a point that how could i start this. here's my thought about it. start a thread to scan the folder changes,which could be create,delete,update files in this folder or something else happen,like last updated. but in this case, you have to control thread loop. if this thread loop is not controlled well,then it would be a waste of cpu and may cause a fatal problem. or,is there any framework or some demo code to do

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

人盡茶涼 提交于 2019-11-30 14:12:11
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 (only performance) and looked through a few others , but although they monitor a lot, they don't monitor

is it possible to monitor folder using java code?

和自甴很熟 提交于 2019-11-30 14:08:55
is there anyone know how to monitor a folder using java? or anyone could gave me a point that how could i start this. here's my thought about it. start a thread to scan the folder changes,which could be create,delete,update files in this folder or something else happen,like last updated. but in this case, you have to control thread loop. if this thread loop is not controlled well,then it would be a waste of cpu and may cause a fatal problem. or,is there any framework or some demo code to do this ? hope we could find a better way to do this. thank u very much. Your thought is not bad. To

Is it possible to enable remote jmx monitoring programmatically?

ⅰ亾dé卋堺 提交于 2019-11-30 13:40: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", "false" ); System.setProperty("com.sun.management.jmxremote.ssl", "false" ); System.setProperty("com

How to monitor java application memory usage in Docker

◇◆丶佛笑我妖孽 提交于 2019-11-30 13:01:47
问题 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 回答1: To connect to a java process

How to monitor free disk space at AWS EC2 with Cloud Watch in windows

时光怂恿深爱的人放手 提交于 2019-11-30 09:23:56
I want to make alarm in case that there is 10% left in my disk space. I read some articles of how monitoring free disk space with Cloud Watch but I think it seems to be only for linux. Do you have any solution for monitoring free disk space for windows? Thanks in advance. This is how to configure a Windows 2016 EC2 instance to report free disk space (or any other performance counter on your server) Download a sample AWS.EC2.Windows.CloudWatch.json file. This is where I found one. https://s3.amazonaws.com/ec2-downloads-windows/CloudWatchConfig/AWS.EC2.Windows.CloudWatch.json Copy the sample AWS

jps can't connect to a remote jstatd

只愿长相守 提交于 2019-11-30 06:59:42
问题 I'm trying query a remote JVM with jps using jstatd, in order to eventually monitor it using VisualVM. I got jstatd running with the following security policy: grant codebase "file:${java.home}/../lib/tools.jar" { permission java.security.AllPermission; }; jstatd is running on a 64-bit Linux box with a 1.6.0_10 version HotSpot vm. The jstatd command is: jstatd -J-Djava.security.policy=jstatd.tools.policy -J-Djava.rmi.server.logCalls=true I'm trying to run jps from a Windows 7 machine. Due to

Finding out what network sockets are open in the current Java VM

限于喜欢 提交于 2019-11-30 06:23:17
问题 I'm writing an end-to-end test that my Java program releases all of its resources - threads, server sockets, client sockets. It's a library, so releasing resources by exiting the JVM is not an option. Testing the releasing of threads was easy, because you can ask a ThreadGroup for all threads in it, but I haven't yet found a good way to get a list of all network sockets that the current JVM is using. Is there some way to get from a JVM the list of all client and server sockets, similar to

.Net SQL Server Database Monitoring - Insert, Update, Delete

这一生的挚爱 提交于 2019-11-30 05:24:17
Does anyone know of a way to monitor table record changes in a SQL Server (2005 or 2008) database from a .Net application? It needs to be able to support multiple clients at a time. Each client will "subscribe" when it starts, and "unsubscribe" when it exits. Multiple users could be accessing the system at once and I want to reflect their changes on the other users client. Then when the client handles the change event, it could update it's local object representing that record. Kind of similar to how Access updates records that are modified are reflected in each form referencing it. I know