diagnostics

C++ runtime debugging (diagnostic strategies and constructs)

I'm planning to add extensive diagnostics into my software. Right now I'm thinking about overall strategy of how to do this, because adding such code simply ad hoc can result in serious mess. Do you have any experience in this? I want to monitor: How intensively objects from selected subset are created. How intensively selected metho...

PowerBuilder equivalent to Debug.WriteLine?

Hi - I've got a PowerBuilder project that calls my .Net class library exposed to COM. I'm very new to PowerBuilder and just starting to pick it up. Id like to create some simple tests for my COM calls and I've looked for quite a while and can't find anything that is similar to the VS Diagnostics methods. Does this functionality exist? ...

Any tools to sniff java application networking behaviour?

I want to know the behavior of a web robot, which was written in Java, is there any tool to monitor? I'm running Windows 7 now. ...

Monitor How Often Assemblies Are Loaded From GAC

I currently have 3 servers each running different applications. Occasionally through installation misconfiguration and code re-factoring these machines are left with assemblies in the GAC that are no longer being referenced or used by anything. Are there any tools anybody is aware of to monitor / log how often, or when certain assembli...

How do I log Transactions created by ejb3 requires-new attribute?

I have an ejb method executing in a REQUIRES context, that calls another ejb method with a REQUIRES_NEW context. I suspect the second transaction is not being created/executed, however I'm not certain how to tell. One way I've considered is to use p6spy and just log all new transaction & commit statements, however I would have expected ...

What is a good way to set about diagnosing ASP.NET connection issues?

Whilst on the surface this question looks like it should be on serverfault.com I have a reason for posting here first. I developed an ASP.NET 2.0 web application. Just recently with heavier usage there have been errors whilst (Cannot connect to server) in the middle of an post back or AJAX call. However the errors are intermittent and...

Start a multiple process in code and distinct them at their commandline arguments

I am running a service program which is started multiple times with different configuration files passed on commandline. The program is started by a control program which is running as windows service. This service should be able to monitor and restart the programs. At the moment i have the problem if the control program crashes, i can ...

Get CPU and memory usage of application programatically on HPUX

Is there a way to get the CPU and memory usage programatically (C++) of an application on HPUX? ...

Performance and diagnostics tools for Silverlight

WPF 3.5 has PresentationTraceSources for diagnostics and WPFPerf for performance and data binding diagnostics. Are there equivalent tools / libraries for Silverlight? ...

.Net and SQL Server Diagnostics

Our company has many .Net applications on many servers which utilize many different SQL Servers. We do not have a clear idea of what is using what. It would be great to get a full picture of what's going on down to the smallest details. Especially important is to know what App is connecting to what Database. Idea's so far have been to a...

Powershell status information

What is the prescribed method for display status or progress information to a user from a Powershell script? For example, "Connecting to database..." Normally I'd print to STDERR. Powershell has a Write-Progress cmdlet, but that's for a progress bar. ...

Getting from ProcessThread to a managed thread

Periodically we get a hang on shut down of a Windows service in a production environment that we just cannot reproduce. It can be months before it happens again. I'm putting in some diagnostics to try and help with the issue, one thing I'm looking at is adding an event to the system thread pool for 60 seconds after we initiate shut down...

How do I find out which JAXP implementation is in use and where it was loaded from?

I would like to provide diagnostic information about what JAXP implementation is in use, and which JAR file it was loaded from. One way to achieve this is to create in instance of, for example, a DocumentBuilderFactory, and then inspect the properties of that class: private static String GetJaxpImplementation() { DocumentBuilderFac...

How do I diagnose steps in a trigger on MySQL

I have two tables: source table result table I have an after update trigger on my source table which updates some records in result table. the problem is, my trigger is not updating result table and I would like to diagnose my trigger execution. I tried putting select statements to see variable values but selects are not allowed in ...

What is the most appropriate performance counter type for measuring operation time?

Say I have a method Foo() and I want to measure the time in milliseconds it took to execute which type of Windows Performance Counter should I be using? var stopwatch = new Stopwatch(); stopwatch.Start(); Foo(); stopwatch.Stop(); counter.RawValue = stopwatch.TotalMilliseonds; Currently I'm using NumberOfItems64 but that persists the l...

What disadvantages are there to the <button> tag? (It seems there are quite a few problems with ie)

I started using a diagnostic css stylesheet, e.g. http://snipplr.com/view/6770/css-diagnostics--highlight-deprecated-html-with-css--more/ One of the suggested rules highlights input tags with the type submit, with the recommendation to use <button> as a more semantic solution. This is a new tag to me, do you guys recommend it, or are t...

IEEE Std. 1636-2009

Anyone familiar with the new IEEE standard 1636-2009? IEEE trial-use standard for software interface for maintenance information collection and analysis (SIMICA) This document provides an implementation-independent specification for a software interface to information systems containing data pertinent to the diagn...

IE7: ActiveX Information Bar for Ajax website without ActiveX

We're deploying to our intranet (Internet Explorer 7) an ASP.NET webapp which we created and which we know does not contain ActiveX in any way. A yellow "Information Bar" is appearing when the webapp loads in the browser, with the following message: Your security settings do not allow websites to use ActiveX controls installed o...

Policy for fixing broken nightly builds

I guess everybody agrees that having continuous builds and continuous integration is beneficial for quality of the software product. Defects are found early so they can be fixed ASAP. For continuous builds, which take several minutes, it is usually easy to find the one who caused the defect. However, for nightly integration tests, which ...

How to diagnose client-side WCF issues in Silverlight environment?

It seems that WCF diagnostics is not available in SL. Is it because of limited System.Diagnostics support or something else? Anyway, how do you track client-side WCF issues when server-side diagnostics is not enough? ...