monitoring

How can I monitor the rendering time in a browser?

我只是一个虾纸丫 提交于 2019-12-18 06:07:37
问题 I work on an internal corporate system that has a web front-end using Tomcat. How can I monitor the rendering time of specific pages in a browser (IE6)? I would like to be able to record the results in a log file (separate log file or the Tomcat access log). EDIT: Ideally, I need to monitor the rendering on the clients accessing the pages. 回答1: In case a browser has JavaScript enabled one of the things you could do is to write an inline script and send it first thing in your HTML. The script

Checking the status of a phone call remotely

喜欢而已 提交于 2019-12-18 05:17:44
问题 I want to check after starting a phone call what the status of the call is via a connected PC, if possible with the ADB. I'm starting a call by entering a phone number with the adb command service call phone 2 s16 "some phone number" and then sending input keyevent 5 to press the call button. Now I'm struggeling to find a way to determine the status of the call. I need to know if the the number getting called is currently busy, if the call got cancelled or if the call was successfull/that I

Android: programmatically determine list of apps that have a TCP connection open

梦想与她 提交于 2019-12-18 04:23:26
问题 I would like know which applications on my android connect to what IP addresses. In essence I would like to know what these apps do in the background without my approval. I tried a netstat OS call in my monitoring app, which already gives me the open connections and the connected IP addresses, but there is no process name, pid or uid that would allow me to map a connection to a particular app. 'netstat -p' seems not to provide the process info. 回答1: If you read source code for 'netstat', it

Request java heap dump (core dump) from within application

本秂侑毒 提交于 2019-12-18 04:05:25
问题 I need a way to request a heap dump from within the application . Rationale: When I encounter a specific error condition, I'd like to dump heap, so that I can see what is holding on to the memory. But I would like to automate this (For example, when I detect that some specific condition has occurred. Or when a watchdog doesn't gets its pings anymore. When some test fails). Thus I need a way to dump the heap from within the application itself. I can't seem to find it with the MX beans stuff.

Show all queries coming to an Oracle database

大兔子大兔子 提交于 2019-12-18 03:05:14
问题 I need to see all queries coming to database. How to do that? I could not get proper results from a Google search. 回答1: Enable SQL Trace & all the queries coming to the database will be logged. ALTER SESSION SET sql_trace = true; ALTER SESSION SET tracefile_identifier = mysqltrace; The trace file will be present in the udump directory. If you want to audit the database, look at my previous answer. 回答2: If you need to see all queries from all sessions for a SHORT window of time and you need a

Can a C# program measure its own CPU usage somehow?

浪尽此生 提交于 2019-12-17 21:46:59
问题 I am working on a background program that will be running for a long time, and I have a external logging program (SmartInspect) that I want to feed with some values periodically, to monitor it in realtime when debugging. I know I can simply fire up multiple programs, like the Task Manager, or IARSN TaskInfo, but I'd like to keep everything in my own program for this, as I also wants to add some simple rules like if the program uses more than X% CPU, flag this in the log. I have a background

Can jconsole data be retrieved from the command line?

别说谁变了你拦得住时间么 提交于 2019-12-17 16:26:19
问题 I am currently using jconsole to monitor performance metrics of my Java application and would like to script this data acquisition . Is there a way to retrieve these VM metrics (heap memory usage, thread count, CPU usage etc.) to STDOUT ? The data in top -p PID -b -n 1 doesn't quite cut it. Thanks 回答1: jconsole just provides a wrapper around the JMX MBeans that are in the platform MBeanServer. You can write a program to connect to your VM using the Attach API which would then query the MBeans

Monitor when an exe is launched

纵饮孤独 提交于 2019-12-17 15:29:43
问题 I have some services that an application needs running in order for some of the app's features to work. I would like to enable the option to only start the external Windows services to initialize after the application is launched. (as opposed to having them start automatically with the machine and take up memory when the application is not needed) I do not have access to the exe's code to implement this, so ideally I would like to write a C# .Net Windows service that would monitor when an exe

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

你说的曾经没有我的故事 提交于 2019-12-17 07:11:49
问题 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

Middleware to build data-gathering and monitoring for a distributed system [closed]

∥☆過路亽.° 提交于 2019-12-14 03:39:44
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 months ago . I am currently looking for a good middleware to build a solution to for a monitoring and maintenance system. We are tasked with the challenge to monitor, gather data from and maintain a distributed system consisting of up to 10,000 individual nodes. The system is clustered into groups of 5-20 nodes. Each group