activity-monitor

Activity Monitor Problems in SQL Server 2005

大兔子大兔子 提交于 2019-12-20 04:39:08
问题 I am looking at the Activty Monitor for SQL Server 2005 and we have some processes that are taking up large amounts of the CPU. When I look at what is trying to be run I get: set transaction isolation level read committed This code is not coming from any of our applications. What is causing it? What should be done? 回答1: Look at sys.dm_exec_sessions and sys.dm_exec_connections for the session ids that take up CPU. You'll find the application name, host name and process id of the client. 回答2:

Detect if another app is running

妖精的绣舞 提交于 2019-12-09 20:13:33
问题 Is it possible on Android to detect if another app is running? I need to trigger some action in my app when a Map application (like Waze or Google Maps) is running. 回答1: You can use ActivityManager class: final ActivityManager activityManager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE); final List<RunningTaskInfo> recentTasks = activityManager.getRunningTasks(Integer.MAX_VALUE); for (int i = 0; i < recentTasks.size(); i++) { Log.d("Executed app", "Application executed : "

AppleScript to force quit Java (JAR) programs?

泪湿孤枕 提交于 2019-12-08 13:00:03
问题 Hello, I run a Java (jar) application on MAC OS. I am using an AppleScript to run the Java program and it works fine. Now, I like to use an AppleScript to close the Java program. I need to Force Quit the Java program. I used the following AppleScript, set app_name to "NPC" set the_pid to (do shell script "ps ax | grep " & (quoted form of app_name) & " | grep -v grep | awk '{print $1}'") if the_pid is not "" then do shell script ("kill -9 " & the_pid) The AppleScript that runs the Java program

Xcode Instruments: peak RAM of iPhone apps running in Simulator?

让人想犯罪 __ 提交于 2019-12-05 03:10:44
问题 Is Activity Monitor (a.k.a. Memory Monitor) the only tool in Xcode Instruments that can measure the total app RAM usage of an iPhone app running in Simulator? Just that line showing momentary wired RAM? And how accurate is that versus iPhone hardware, especially given OSX paging i/o to VM? I'm seeing 7-8MB wired RAM figures for just the default Xcode iPhone project templates (other than OpenGL) compiled and running. At the same time Object Allocations shows well under 1MB for all objects. 回答1

Xcode Instruments: peak RAM of iPhone apps running in Simulator?

僤鯓⒐⒋嵵緔 提交于 2019-12-03 16:14:04
Is Activity Monitor (a.k.a. Memory Monitor) the only tool in Xcode Instruments that can measure the total app RAM usage of an iPhone app running in Simulator? Just that line showing momentary wired RAM? And how accurate is that versus iPhone hardware, especially given OSX paging i/o to VM? I'm seeing 7-8MB wired RAM figures for just the default Xcode iPhone project templates (other than OpenGL) compiled and running. At the same time Object Allocations shows well under 1MB for all objects. Nope, there's a much better way to do it. Go to the Run menu and select Run with Performance Tool then

Activity Monitor Problems in SQL Server 2005

拥有回忆 提交于 2019-12-02 04:07:27
I am looking at the Activty Monitor for SQL Server 2005 and we have some processes that are taking up large amounts of the CPU. When I look at what is trying to be run I get: set transaction isolation level read committed This code is not coming from any of our applications. What is causing it? What should be done? Look at sys.dm_exec_sessions and sys.dm_exec_connections for the session ids that take up CPU. You'll find the application name, host name and process id of the client. This is the default transaction isolation level for ADO.NET and most OR/M frameworks. Chances are this is in fact

Detect disk activity in Delphi

放肆的年华 提交于 2019-11-30 02:29:29
I'm using Delphi 2007. I am copying files to a remote drive. When the copying ends, I shutdown/standby the machine. It can happen that some files don't get copied from buffer to disk, and the remote disk gets disconnected, so the backup is not completed. I need to detect disk activity on that disk to properly be able to take the close action on the machine. Is there a way to detect disk activity in this scenario? (Please move the additional information from the comment to your question.) AFAIK there is no Windows API to tell whether all data has been written to disk. What you are looking for

Detect disk activity in Delphi

江枫思渺然 提交于 2019-11-28 23:24:47
问题 I'm using Delphi 2007. I am copying files to a remote drive. When the copying ends, I shutdown/standby the machine. It can happen that some files don't get copied from buffer to disk, and the remote disk gets disconnected, so the backup is not completed. I need to detect disk activity on that disk to properly be able to take the close action on the machine. Is there a way to detect disk activity in this scenario? 回答1: (Please move the additional information from the comment to your question.)