Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果您从 MBean 返回 double 或 float,jconsole 似乎会将其向下舍入到最接近的整数。
诀窍是返回一个 Double 或 Float 。Jconsole 正在寻找包装类以确定何时显示小数位。