I think that is the JVM implementation issue. I am not using that JVM, but MXBean(such as java.lang.management.MemoryUsage) is the official and standard way to get this. If you want to change, feel free to change the source codes. It is not hard. I am not sure what your issue is. Other APM, most likely commercial product, is not our concern.
Sheng Wu 吴晟 Twitter, wusheng1108 dafang <[email protected]> 于2020年6月29日周一 下午5:46写道: > > > > For example, > When I use oracle_jdk,and I collect jvm_mem by mxbean,And I got > jvm_mem_max is 400M.But when I use zing,and I collect jvm_mem by > mxbean,problely I will got null or a wrong value.This happens on my old APM > products. > > > > > > > > > > > > > > > 在 2020-06-29 17:31:19,"Sheng Wu" <[email protected]> 写道: > >Hi > > > >What do you mean MBean is not right? MBean is based on JVM specification. > >I am confusing. > > > >Sheng Wu 吴晟 > >Twitter, wusheng1108 > > > > > >dafang <[email protected]> 于2020年6月29日周一 下午5:24写道: > > > >> Hi Dev team: > >> I have a question on Instance monitor param,such as jvm_mem,cpu and so > on. > >> I have read the source code for this data collected,and I found that the > >> instance param is from mxbean.But when I use different jdk product,such > as > >> oracle_jdk,zing etc.May the param is not correct. > >> Is this have a resolution? > >> > >> > >> Wait for your reply > >> dafang > >> 2020.06.29 >
