monitoring

How to monitor a text file in realtime [closed]

夙愿已清 提交于 2019-11-27 06:31:43
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? Tail for Win32 Apache Chainsaw - used this with log4net logs , may require file to be in a certain format I like tools that will perform more than one task, Notepad++ is a great notepad replacement and has a Document Monitor plugin (installs with standard msi) that works great. It also is portable so you can have it on a thumb drive for use anywhere. For a command line option,

What is the optimal way to monitor changes in a directory with a kqueue()?

谁都会走 提交于 2019-11-27 06:03:42
问题 OK: I'm implementing File Sharing in an iPhone OS app, and of course this means filesystem monitoring. Yay! Basically, the OS copies and/or deletes from and to a directory I can access when the user manipulates files into my app's section in iTunes. Thus, I need to monitor the directory for changes presumably via an efficient mechanism like a kqueue() . How do I implement this so that I know that the files have finished copying? I was thinking along the lines of: Monitor with kqueue() . At

Get heap dump from a remote application in Java using JVisualVM

不羁的心 提交于 2019-11-27 05:30:38
问题 I run JVisualVM (Windows XP, Sun Java 1.6.0.13, 32 bit client VM) to monitor a distant application (Linux, Sun Java 1.6.0.07, 64 bit server VM). Before starting the actual remote application, I launch on the remote machine jstatd using an all access policy: grant codebase "file:${java.home}/../lib/tools.jar" { permission java.security.AllPermission; }; Then I start the actual app using the command line java -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl

PowerShell script to check the status of a URL

前提是你 提交于 2019-11-27 05:26:31
问题 Similar to this question here I am trying to monitor if a set of website links are up and running or not responding. I have found the same PowerShell script over the Internet. However, instead of direct website links I need to check more specific links, for example: http://mypage.global/Chemical/ http://maypage2:9080/portal/site/hotpot/ When I am trying to check on the status of these links, I get the following output: URL StatusCode StatusDescription ResponseLength TimeTaken http://mypage

How to detect all the Devices connected in a WiFi network from Android App

…衆ロ難τιáo~ 提交于 2019-11-27 03:27:50
I am developing an app in which I need to scans WiFi network and display the list of all connected devices. Allow a use to tap on a device and the app should show all the hardware info of that particular device. Here by hardware I mean - RAM, Storage Media, Storage Capacity, Device Name, Device IP address, etc. Now this device can be anything like xbox, a laptop with Linux/Windows, mobile phone like iPhone or any Andorid based smart phone or even a printer. How can I scans WiFi network and query/detect all the devices attached to it? What are the protocols that I need to use to get list of

How can I monitor a Windows directory for changes?

Deadly 提交于 2019-11-27 03:27:34
When a change is made within a directory on a Windows system, I need a program to be notified immediately of the change. Is there some way of executing a program when a change occurs? I'm not a C/C++/.NET programmer, so if I could set up something so that the change could trigger a batch file then that would be ideal. Refracted Paladin Use a FileSystemWatcher like below to create a WatcherCreated Event(). I used this to create a Windows Service that watches a Network folder and then emails a specified group on arrival of new files. // Declare a new FILESYSTEMWATCHER protected FileSystemWatcher

Tomcat 6, JMX and the dynamic port problem

你。 提交于 2019-11-27 02:47:14
问题 after reading and trying a lot around, I have to ask if anyone has a solution for my problem. I am trying to set up some Tomcats (V6) behind a firewall. This is no big deal - but I want to monitor them via JMX. I read the TC docu and came across the JMXRemoteLifecycleListener. My test TC installation is set up exactly as stated in the above link. Thus I don't get a connection from one host in our network to another. Additionally a third, random port is open every time I start TC. In my server

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

不想你离开。 提交于 2019-11-27 02:42:00
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 , i.e. see how my code scales for a parameter n (the search depth). (I already have a junit test parameterized in n.) do some trend analysis to get warned if some change to the code base makes the code slower. For this, I would like to use a tool or framework that does the statistics , optimally computing the mean value, standard deviation and

CPU Usage Per Process in Python

泄露秘密 提交于 2019-11-27 01:22:54
问题 Is it possible for me to see the amount of processor usage (% of maximum) that the current, python, app is using? Scenario: My host will allow me to run my app as long as it does not consume more then X% of the CPU power, so I would like it to 'keep an eye on itself' and slowdown. So how can I know how much CPU the app is using? Target platform is *nix, however I would like to do it on a Win host also. 回答1: >>> import os >>> os.times() (1.296875, 0.765625, 0.0, 0.0, 0.0) >>> print os.times._

How to monitor Windows services [closed]

自古美人都是妖i 提交于 2019-11-27 00:51:41
问题 I'm looking for a way to monitor certain Windows services (on Windows Server 2003) and restart if necessar y. The services are on different servers and include mainly SQL Server services (e.g. SQL Server Agent), but also some proprietary services. Email alerts sent out if a service has stopped would be very useful as well. 回答1: A "might be enough" version of this is built into Windows. Look into the "Recovery" tab of the service properties, as available via services.msc . You can act on a