monitoring

Request java heap dump (core dump) from within application

和自甴很熟 提交于 2019-11-29 03:45:39
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. Although the MX Beans can give very nice stack traces with monitor and "ownable synchronizer" info,

Monitoring network usage excluding local traffic

百般思念 提交于 2019-11-29 02:56:10
问题 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

Sidecar containers in Kubernetes Jobs?

痴心易碎 提交于 2019-11-29 01:09:06
We use Kubernetes Job s for a lot of batch computing here and I'd like to instrument each Job with a monitoring sidecar to update a centralized tracking system with the progress of a job. The only problem is, I can't figure out what the semantics are (or are supposed to be) of multiple containers in a job. I gave it a shot anyways (with an alpine sidecar that printed "hello" every 1 sec) and after my main task completed, the Job s are considered Successful and the kubectl get pods in Kubernetes 1.2.0 shows: NAME READY STATUS RESTARTS AGE job-69541b2b2c0189ba82529830fe6064bd-ddt2b 1/2 Completed

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

我与影子孤独终老i 提交于 2019-11-29 00:57:08
问题 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

Determining query's progress (Oracle PL/SQL)

蓝咒 提交于 2019-11-28 23:45:38
I am a developer on a web app that uses an Oracle database. However, often the UI will trigger database operations that take a while to process. As a result, the client would like a progress bar when these situations occur. I recently discovered that I can query V$SESSION_LONGOPS from a second connection, and this is great, but it only works on operations that take longer than 6 seconds. This means that I can't update the progress bar in the UI until 6 seconds has passed. I've done research on wait times in V$SESSION but as far as I've seen, that doesn't include the waiting for the query. Is

jps can't connect to a remote jstatd

六眼飞鱼酱① 提交于 2019-11-28 23:36:48
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 firewall restrictions, I'm tunneling the RMI data through an SSH tunnel to my Windows machine such that

Tools and methods for live-monitoring ASP.NET web applications?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 21:58:26
问题 I think many developers know that uncomfortable feeling when users tell them that "The application is slow (again)." In a complex web application there can be many possible reasons for a degradation in (perceived) performance: slow database response, bandwidth issues, bad caching etc. There certainly are issues which will never occur in a development or staging environment. Now my question: Is there a set of tools and/or methods which would provide a comprehensive "live" state on a IIS/ASP

startMonitoringForRegion never calls didEnterRegion/didExitRegion

99封情书 提交于 2019-11-28 21:34:42
问题 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

Check if a VPN connection is active in Android?

二次信任 提交于 2019-11-28 21:32:59
I have a third party VPN app on my non-rooted Android 4.4 device, and want to write a background service to monitor the VPN connection and alert the user if the VPN connection has been broken. Is there a way to do this? I couldn't find any way using the VPNService API. Thanks -D AndZp This is works for me: Tested from API 16 to 23: List<String> networkList = new ArrayList<>(); try { for (NetworkInterface networkInterface : Collections.list(NetworkInterface.getNetworkInterfaces())) { if (networkInterface.isUp()) networkList.add(networkInterface.getName()); } } catch (Exception ex) { Timber.d(

Android Emulator: How can I get a list of services that are running

限于喜欢 提交于 2019-11-28 18:41:16
I have the Android Emulator running in my Ubuntu VM and just installed an apk file trough the console. The emulator and adb have many options to view what is going on on the device. But how can I get a list of services that are currently running? I'm trying to find out if a specific app installes a notify service to view (unwanted) ads. I even know the services' name. PS.: I'm an advanced beginner - but not advanced enough. So thanks for your help. You can get the list with the following command : adb shell dumpsys activity services If you just need a simple list without all the detail dumpsys