日期:2014-05-16  浏览次数:20358 次

JVM问题诊断常用命令:jinfo,jmap,jstack

转载自 ---- http://singleant.iteye.com/blog/739476

?

1.jinfo

描述:输出给定 java 进程所有的配置信息。包括 java 系统属性和 jvm 命令行标记等。

用法:

jinfo [ option ] pid

jinfo [ option ] executable core

jinfo [ option ] [server-id@]remote-hostname-or-IP

例子:

jinfo pid

得到结果如下:

Java代码 ?收藏代码
  1. JVM?version?is? 14.0 -b16??
  2. ??
  3. Java?System?Properties:??
  4. ??
  5. java.runtime.name?=?Java(TM)?SE?Runtime?Environment??
  6. ??
  7. sun.boot.library.path?=?/work/ProgramFiles/jdk1.6 .0_14/jre/lib/i386??
  8. ??
  9. java.vm.version?=?14.0 -b16??
  10. ??
  11. java.vm.vendor?=?Sun?Microsystems?Inc.??
  12. ??
  13. java.vendor.url?=?http://java.sun.com/ ??
  14. ??
  15. path.separator?=?:??
  16. ??
  17. java.vm.name?=?Java?HotSpot(TM)?Server?VM??
  18. ??
  19. file.encoding.pkg?=?sun.io??
  20. ??
  21. sun.java.launcher?=?SUN_STANDARD??
  22. ??
  23. user.country?=?CN??
  24. ??
  25. sun.os.patch.level?=?unknown??
  26. ??
  27. java.vm.specification.name?=?Java?Virtual?Machine?Specification??
  28. ??
  29. user.dir?=?/work/RateWorkspace/branches/rate/daemon??
  30. ??
  31. java.runtime.version?=?1.6 .0_14-b08??
  32. ??
  33. java.awt.graphicsenv?=?sun.awt.X11GraphicsEnvironment??
  34. ??
  35. java.endorsed.dirs?=?/work/ProgramFiles/jdk1.6 .0_14/jre/lib/endorsed??
  36. ??
  37. os.arch?=?i386??
  38. ??
  39. java.io.tmpdir?=?/tmp??
  40. ??
  41. line.separator?=???
  42. ??
  43. <