Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vjtop-1.0.5在 jdk1.7.0_80运行空指针异常 #144

Closed
githubyong opened this issue Nov 26, 2018 · 4 comments
Closed

vjtop-1.0.5在 jdk1.7.0_80运行空指针异常 #144

githubyong opened this issue Nov 26, 2018 · 4 comments

Comments

@githubyong
Copy link

[root@xx]# vjtop.sh 3028
/home/ftprazor/yong/vjtools/jdk1.7.0_80/bin/java

java.lang.NullPointerException
at com.vip.vjtools.vjtop.VMInfo.updateMemoryPool(VMInfo.java:359)
at com.vip.vjtools.vjtop.VMInfo.update(VMInfo.java:226)
at com.vip.vjtools.vjtop.VMDetailView.printView(VMDetailView.java:64)
at com.vip.vjtools.vjtop.VJTop.run(VJTop.java:159)
at com.vip.vjtools.vjtop.VJTop.main(VJTop.java:141)
PID: 3028 - 11:43:46 JVM: 1.6.0_41 USER: root UPTIME: 2d22h
PROCESS: 0.00% cpu( 0.00% of 8 core), 346 thread
MEMORY: 1763m rss, 1769m peak, 0m swap | DISK: 0B read, 0B write
THREAD: 330 live, 45 daemon, 336 peak, 0 new | CLASS: 13003 loaded, 282 unloaded, 0 new
HEAP: 192m/387m/389m eden, 34m/56m sur, 611m/1008m old
NON-HEAP: 55m/56m/64m perm, 19m/22m/48m codeCache
java.lang.NullPointerException
at com.vip.vjtools.vjtop.VMDetailView.printJvmInfo(VMDetailView.java:158)
at com.vip.vjtools.vjtop.VMDetailView.printView(VMDetailView.java:71)
at com.vip.vjtools.vjtop.VJTop.run(VJTop.java:159)
at com.vip.vjtools.vjtop.VJTop.main(VJTop.java:141)

@calvin1978
Copy link
Collaborator

calvin1978 commented Nov 26, 2018

你能JMX连一下,看有没有java.nio.BufferPool对象

calvin1978 added a commit that referenced this issue Nov 26, 2018
兼容读不到BufferPool的情况。
@githubyong
Copy link
Author

VMinfo.java 371行报错:Cannot resolve method 'getMappedBufferPool()
mapUsed == 0 ? 0 : jmxClient.getBufferPoolManager().getMappedBufferPool().getCount());
com.vip.vjtools.vjtop.data.jmx.JmxBufferPoolManager没提交完整吧

@githubyong
Copy link
Author

VMinfo.java 371行报错:Cannot resolve method 'getMappedBufferPool()
mapUsed == 0 ? 0 : jmxClient.getBufferPoolManager().getMappedBufferPool().getCount());
com.vip.vjtools.vjtop.data.jmx.JmxBufferPoolManager没提交完整吧
com.vip.vjtools.vjtop.data.jmx.JmxBufferPoolManager增加mappedBufferPool的getter方法后编译出1.0.8-SNAPSHOT运行ok

@calvin1978
Copy link
Collaborator

fixed

calvin1978 added a commit that referenced this issue Nov 28, 2018
兼容读不到BufferPool的情况。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants