trace

WCF Tracing switchvalue is Off yet there is still a trace output being generated

那年仲夏 提交于 2020-01-12 05:38:05
问题 After having turned on WCF Tracing to assist with finding a problem, I now wish to turn off tracing. So I have changed my config file to this... <system.diagnostics> <sources> <source name="System.ServiceModel" switchValue="Off" > <!-- Information,ActivityTracing--> <listeners> <add name="xmlTraceListener" /> </listeners> </source> <source name="System.ServiceModel.MessageLogging" switchValue="Off" > <listeners> <add name="xmlTraceListener" /> </listeners> </source> </sources>

ERROR- ORA-00060: deadlock detected while waiting for resource

二次信任 提交于 2020-01-11 13:05:16
问题 I got this error when running a procedure I would like to know if it is possible to see the trace file on the server about the details 回答1: You can find such informations in the alert<your_sid>.log file. By <your_sid> , i mean the value when you issue $ echo $ORACLE_SID ( mostly set as this ). It's under $ORACLE_BASE/diag/rdbms/<your_sid>/<your_sid>/trace path location. You may also see the value for base path by issuing $ echo $ORACLE_BASE ( or alternatively, you would keep under $ORACLE

Any way to trace MySqlConnection to detect reasons for slow connection

眉间皱痕 提交于 2020-01-07 02:26:07
问题 I need to find some way in C# to trace the MySqlConnection.Open() methods connection to find out why it's taking over 15 seconds just to establish the connection. I.e to see some kind of connection log to find out whats holding it up. The code below is in an otherwise empty project and I've tried disabling the firewall and changing the port. Please help I've been trying to fix this for two days now and I'm almost admitting defeat. EDIT: Also the port is 3310 instead of the 3306 mySQL default

When using EventSource, should I log two events, or compute the duration and log only one?

岁酱吖の 提交于 2020-01-05 09:08:41
问题 Assume I have some method that I want to trace performance information for. Using System.Diagnostics.Tracing.EventSource , I can see two logical ways of doing this; first, one could write two events, one at the start, and one at the end, and then the consumer of the events could compute the duration: MySource.Log.OperationStart(); RunMyOperation(); MySource.Log.OperatingFinish(); Or, I can compute the duration myself, and only write a single event: var sw = System.Diagnostics.Stopwatch

TFDMoniFlatFileClientLink irregularly does not trace to file

不羁岁月 提交于 2020-01-05 06:33:44
问题 I have a TFDMoniFlatFileClientLink on a form, filename set to d:\temp\monitor.txt , tracing=true, TFDConnection.Params.MonitorBy=mbFlatFile . This sometimes works and sometimes does not trace anything. No file gets created. Tested with Win7 32-bit app, with design time TFDConnection to either FireBird or Oracle. Delphi Tokyo 10.2.1 What is going on? 回答1: This was a really weird bug: It turns out that the TFDMoniFlatFileClientLink remembers the filename when removed and placed back, then does

TFDMoniFlatFileClientLink irregularly does not trace to file

泄露秘密 提交于 2020-01-05 06:33:18
问题 I have a TFDMoniFlatFileClientLink on a form, filename set to d:\temp\monitor.txt , tracing=true, TFDConnection.Params.MonitorBy=mbFlatFile . This sometimes works and sometimes does not trace anything. No file gets created. Tested with Win7 32-bit app, with design time TFDConnection to either FireBird or Oracle. Delphi Tokyo 10.2.1 What is going on? 回答1: This was a really weird bug: It turns out that the TFDMoniFlatFileClientLink remembers the filename when removed and placed back, then does

TFDMoniFlatFileClientLink irregularly does not trace to file

萝らか妹 提交于 2020-01-05 06:33:07
问题 I have a TFDMoniFlatFileClientLink on a form, filename set to d:\temp\monitor.txt , tracing=true, TFDConnection.Params.MonitorBy=mbFlatFile . This sometimes works and sometimes does not trace anything. No file gets created. Tested with Win7 32-bit app, with design time TFDConnection to either FireBird or Oracle. Delphi Tokyo 10.2.1 What is going on? 回答1: This was a really weird bug: It turns out that the TFDMoniFlatFileClientLink remembers the filename when removed and placed back, then does

determine argument type from __VA_ARGS__ in compile time

吃可爱长大的小学妹 提交于 2020-01-04 08:15:38
问题 I wish to determine the types of the parameters passed to a function using VA_ARGS in order to route it to the right handler, but in compile time (and not inside a function with va_args()). by determine type i mean i need to know if the trace contains only integers or has strings in it as well, but i wish it will be in compile time. for example: #define TRACE_HANDLER(type_branch) (Invoke_ ## type_branch) #define TYPE_ARGS(args) ______//Determine if all arguments are uint32________ #define

Finding all statements involved in a deadlock from an Oracle trace file?

巧了我就是萌 提交于 2020-01-04 06:07:19
问题 As I understand it, the typical case of a deadlock involving row-locking requires four SQL statements. Two in one transaction to update row A and row B, and then a further two in a separate transaction to update the same rows, and require the same locks, but in the reverse order. Transaction 1 gets the lock on row A before transaction 2 can request it, transaction 2 gets the lock on row B before transaction 1 can get it, and neither can get the remaining required locks. One or either

Finding all statements involved in a deadlock from an Oracle trace file?

最后都变了- 提交于 2020-01-04 06:07:05
问题 As I understand it, the typical case of a deadlock involving row-locking requires four SQL statements. Two in one transaction to update row A and row B, and then a further two in a separate transaction to update the same rows, and require the same locks, but in the reverse order. Transaction 1 gets the lock on row A before transaction 2 can request it, transaction 2 gets the lock on row B before transaction 1 can get it, and neither can get the remaining required locks. One or either