Log4net
  1. Log4net
  2. LOG4NET-50

Process.StartTime hangs on some systems

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.9
    • Fix Version/s: 1.2.10
    • Component/s: Core
    • Labels:
      None

      Description

      It has been reported that on some systems the call to System.Diagnostics.Process.GetCurrentProcess().StartTime hangs.
      This is used to obtain the ProcessStartTime used by the %r pattern.

      The System.Diagnostics.Process uses performance counters which may be disabled or corrupt. While this should throw an exception it appears that in some cases the call will hang.

        Activity

        Nicko Cadell made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Fix Version/s 1.2.10 [ 11128 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Hide
        Nicko Cadell added a comment -

        Rather than using the Process.StartTime the current time is captured when the log4net library is loaded (when LogManager is initialised) and this is used as the start time.

        Show
        Nicko Cadell added a comment - Rather than using the Process.StartTime the current time is captured when the log4net library is loaded (when LogManager is initialised) and this is used as the start time.
        Nicko Cadell created issue -

          People

          • Assignee:
            Nicko Cadell
            Reporter:
            Nicko Cadell
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development