JetBrains / JetBrains/profiler-self-api

Doesn't Work In Azure App Service

Open
#7 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
64
Forks
7
PR merge metrics
No merged PRs in 30d

Description

I'm trying to get a dotMemory Snaphost from an application that runs on Azure App Service but I'm getting this error.

```
System.InvalidOperationException: dotMemory console profiler has failed. See details below.
*** Standard Error ***
Unable to attach to the process #23240: Make sure it exists and it is a .NET Framework 4.0+/.NET Core 3.0+/.NET 5+ process.

*** Standard Output ***
dotMemory Console Profiler 2022.1.2 build 221.0.20220601.192640. Copyright (C) 2017-2022 JetBrains s.r.o.

Performs memory profiling of .NET applications

Attach Helper v221.0.19138.24931 Copyright (C) 2010-2022 JetBrains s.r.o.
Attach Helper v221.0.19138.24935 Copyright (C) 2010-2022 JetBrains s.r.o.

at JetBrains.Profiler.SelfApi.Impl.ConsoleProfiler.BuildException(String caption)
at JetBrains.Profiler.SelfApi.Impl.ConsoleProfiler.AwaitFinished(Int32 milliseconds)
at JetBrains.Profiler.SelfApi.DotMemory.Session.AwaitFinished(Int32 milliseconds)
at JetBrains.Profiler.SelfApi.DotMemory.GetSnapshotOnce(Config config)

**here I removed a few lines that are specific to our code**

at lambda_method6544(Closure , Object )
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Logged|12_1(ControllerActionInvoker invoker)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.