我使用的是一个基于Kestrel的服务器应用程序和ASP.net核心2.1。我有一个自定义的错误处理中间件,如下所示:
public class ErrorHandlingMiddleware
{
private readonly RequestDelegate next;
public ErrorHandlingMiddleware(RequestDelegate next)
{
this.next = next;
}
public async Task Invoke(HttpContext context /* other dep
我无法使用独立的eclipse内存分析器或visualVM打开堆转储。我已经尝试了两个不同的hprof文件。VisualVM在加载堆转储时挂起,eclipse内存分析器给出了下面的错误。
Error opening heap dump 'java_pid15751.hprof'. Check the error log for further details.
Error opening heap dump 'java_pid15751.hprof'. Check the error log for further details.
Not a HPRO
从windows Vista开始,我们可以直接从任务管理器创建进程的内存转储。遗憾的是,Windows Server 2003还没有这个选项:(我找到了一些方法来完成整个系统范围的内存转储,但这有点太多了。
有没有办法转储单个进程?由于这是一个生产服务器,我不想安装任何在后台运行的重量级工具或服务,理想情况下,我只想转储进程,将转储复制到我自己的机器上并在那里进行调试。