简体   繁体   English

在jboss 7.1.1上启用旋转

[英]Enable twiddle on jboss 7.1.1

I am using windows 7 and i want to enable twiddle on jboss 7.1.1. 我正在使用Windows 7,并且想在jboss 7.1.1上启用旋转。 Which are the steps to do that? 有哪些步骤可以做到?

Thanks. 谢谢。

Twiddle was a tool/script included in previous versions of JBoss, up to community version 6, to access to the JMX Services of JBoss (MBeans) through command line. Twiddle是早期版本的JBoss中包含的工具/脚本,最高到社区版本6,可通过命令行访问JBoss的JMX服务(MBeans)。 Since JBoss 7 is not based any more on Managed Beans , it doesn't include this tool nor the JMX Console. 由于JBoss 7不再基于Managed Beans ,因此它不包含此工具或JMX控制台。 That said, the management operations exposed through Managed Beans in JBoss 7 can be, of course, accessed with the JConsole tool, included with the JDK. 也就是说,当然可以使用JDK附带的JConsole工具访问通过JBoss 7中的Managed Beans公开的管理操作。

So don't expect there will be an official twiddle command for JBoss 7, though some independent developers have created their own versions . 因此,尽管有些独立的开发人员已经创建了自己的版本 ,但不要期望JBoss 7会有正式的旋转命令。

You have to navigate to the platform-mbean and read the memory-attributes: 您必须导航到platform-mbean并阅读内存属性:

/core-service=platform-mbean/type=memory:read-attribute(name=heap-memory-usage) 

You can find the full resource description by using that expression: 您可以使用该表达式找到完整的资源描述:

/core-service=platform-mbean/type=memory:read-resource-description

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM