JConsole的等价物净? [英] jconsole equivalent for .Net?

查看:133
本文介绍了JConsole的等价物净?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在找一个DLL,你可以链接到,这将使你的.net应用程序分析能力等同于JConsole的。具体来说,就是我想象的是这样的:

I'm looking for a DLL you could link to, that will give your .Net app profiling abilities equivalent to jconsole. Specifically, what I imagine is something like this:

  1. 您将一个DLL添加到您的项目
  2. 您调用一些init方法
  3. 在此公开了一组端点(网络,TCP,命名管道,等等)。
  4. 这并不妨碍你的应用程序的性能,所以你可以用它在生产中运行。
  5. 当出现故障时,连接到端点,以及个人资料。你可以看到GC根,什么是占用内存(保留套),触发GC,...

有没有这样的事?

推荐答案

OP: 真的是没有。

OP: There really isn't.

西蒙: JConsole的是侧面参数什么是真正的Java和.NET之间的差异。 Java的随手presents到.NET混淆了用户信息。因为各自不同的意识形态和目标或许,Java的设计是,经营上的任何主机OS的.NET主要设计时考虑到Windows中的通用虚拟环境。

Simon: Jconsole is a side argument to what is really the difference between java and .net. Java readily presents to the user information which .net obfuscates. Perhaps because of their differing ideologies and goals, java is designed to be a common virtual environment that operates on any host os where .net is principally designed with windows in mind.

净过程不旨在为暧昧真空运行;它们运行的​​组件服务或IIS的部分,他们在Windows上运行,因此虚拟环境是没有法律条款,为远程监控,因为你会得到WMI某种程度的自由。

.Net processes aren't designed to run in an ambiguous vacuum; they run as component services or parts of iis, and they run on windows, so the virtual environment makes no provisions to provide for remote monitoring because you'll get some degree of that free from wmi.

Java不工作的方式,因为Java不能对底层操作系统或者什么样的信息,它将提供任何假设,以及任何Java没有必须平等地适用于所有系统来完成。这样的java提供有关其存储器和线程活动的用户数据的量巨大,并提供用于处理和发现在用户code(的mbeans)管理对象的基础设施。 JConsole的和jvisualvm允许用户远程连接到一个Java进程(本地或通过使用JMX网络,虽然JMX需要一个标志,是活跃在目标Java程序),然后就可以看到所有这些数据和浏览所有可用的MBean。最重要的是,所有这一切都是核心功能和程序都是免费的。

Java doesn't work that way, because java can't make any assumptions about the underlying os or what information it will provide, and whatever java does must be done equally for all systems. So java offers an enormous amount of data about its memory and thread activity to the user, and provides an infrastructure for handling and discovering managed objects in user code (mbeans). Jconsole and jvisualvm allow the user to remote connect to a java process (either locally or over a network with jmx, although jmx requires a flag to be active on the target java process), and then they can see all this data and browse all available mbeans. On top of that, all of this is core functionality and the programs are free.

净平出没有任何这一点。它是在从一开始的开发人员构建远程管理纳入其应用程序code,并没有一个方便的浏览器,可帮助用户发现哪些管理对象甚至存在。

.Net flat out doesn't have any of this. It's on the developer from the very onset to build remote management into their application code, and there isn't a convenient viewer that helps users discover what management objects even exist.

另外,JAVA code可以平凡转回源,改组为一个项目,然后用对生产系统进行远程断点调试。这一点是可能的。NET,但他们肯定不会很容易地做到。

Further, java code can be trivially reversed back to source, reconstituted into a project, and then debugged with remote breakpoints against a production system. That much is possible with .net but they certainly don't make it easy to do.

这篇关于JConsole的等价物净?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆