Skip to content

Intermittent Performance Issue from logging runspace #575

Open

Description

@FriedrichWeinmann

Irrespective of any providers configured, there have been occasional, rare cases of massive performance issues (reported from within the VSCode console, confirmation from a regular console would be welcome).

Stopping the logging runspace solves the performance hit, but disables logging:

Stop-PSFRunspace -Name 'psframework.logging'

When the issue occurs in a default code console, several phenomenon can be observed:

  • CPU Consumption spikes
  • Procmon finds massive numbers of file access to the logging folder in minimal time
  • Security Solution CPU consumption spikes

The only situation that covers this scenario would be the logging runspace ignoring the sleep statement at each logging cycle.
More investigation into when System.Threading.Thread.Sleep() does not actually do anything is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions