jvisualvm MBeans plugin can't display complex data type
来源:互联网 发布:哭声剧情解析 知乎 编辑:程序博客网 时间:2024/05/21 09:35
1. Problem
jvisualvm MBeans plugin can't display complex data type, as shown below:
2. Analysis
Quoted from Reference [1]:
Complex data types
It is often necessary or desirable for these data types to be more complex than simple Java types such as int or String. In particular, when an attribute represents a snapshot of values such as the state of a thread at a given moment, it may not be meaningful to see a set of different values taken at different times. That could lead to meaningless results such as a thread that appears to be both running and waiting for a certain lock.
Using multiple attributes instead of complex data types
It is sometimes possible to address situations like this by breaking out the set of values into separate attributes and stipulating that those attributes must be read or written with a single getAttributes or setAttributes operation. But this tends to be a special-case solution that is difficult to implement and error-prone when clients fail to respect the requirement for using a single operation. It is also fragile in the face of evolution of the model. For example it does not extend to operation parameters or return values, and it does not work well if the values broken out into attributes are themselves complex types. So in general it is better to have a single data type representing the atomic set of values.
Using model-specific classes for complex data types
Complex data types can also be represented by defining model-specific types, for example a ThreadInfo type for a snapshot of a thread. But this solution presents its own problems. Chief among these is that the client must have the same Java classes available. This is very inconvenient for model-neutral clients such as generic JMX consoles. It also potentially causes problems for access from languages other than Java (for instance, from scripts). And it can lead to serious class-loading headaches if the same client must interact with servers that have different versions of the model-specific classes. Finally, using arbitrary Java types can lead to unforeseen problems with serialization, since when an object is serialized other objects that it references may also be serialized, meaning that a client must have the classes for those other objects available too.
Reference
[1] http://www.oracle.com/technetwork/java/javase/tech/best-practices-jsp-136021.html?ssSourceSiteId=ocomen#mozTocId931827
- jvisualvm MBeans plugin can't display complex data type
- can't open display
- CAN'T OPEN DISPLAY
- Alert can't display any text
- su 用户后,can't open display
- Can't find file: './mysql/plugin.frm'
- pads2007 Can\'t find part Type item
- Can't return type callbacks for 3
- 425 Can't open data connection
- FileZilla 425 Can't open data connection
- FileZilla 425 Can't open data connection
- FileZilla 425 Can't open data connection
- 425 Can't open data connection 问题解决
- netscope,Can't infer network data shapes
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'display-name'.
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'display-name'. One of '{"
- cvc-complex-type.2.3: Element 'beans' cannot have character [children], because the type's content t
- maven cvc-complex-type.2.4.a: Invalid content was found starting with element 'plugin'.
- CentOS 7.0 安装中文输入法
- C#文件执行类的VB.NET版本
- Hive 查询优化总结
- shell学习三十二天----read读取一行
- android系列微谈一之——仿微信6.0左右滑动渐变切换效果
- jvisualvm MBeans plugin can't display complex data type
- Creational模式之Prototype模式
- CentOS英文环境下使用中文输入法
- android TV盒子开发------控制editext弹出输入法
- Step into Kotlin - 04 - 函数
- HDU 4619 Warm up 2(最大流或二分匹配)
- Oracle SQL 优化精萃
- jstree刷新
- Samba Server Configuration in OpenSuSe 13.1