码迷,mamicode.com
首页 > 编程语言 > 详细

java.exe进程来源排查录

时间:2017-05-20 21:49:14      阅读:302      评论:0      收藏:0      [点我收藏+]

标签:windows   启动   环境   解决   exe   debugging   virt   lease   pre   

 

解决后的一个小结:
此处是一个tomcat端口,这种情况下,可以先在浏览器访问下看看效果,就可以快速定位

 

下面的定位过程,适用于各种场合

 

 

无意中发现有个进程开了好多端口,很奇怪
技术分享

看看这个java.exe的启动参数:jinfo
64位环境:jinfo -J-d64  pid
技术分享

技术分享

 

The jinfo command prints Java configuration information for a specified Java process or core file or a remote debug server. 
The configuration information includes Java system properties and Java Virtual Machine (JVM) command-line flags. 
If the specified process is running on a 64-bit JVM, then you might need to specify the -J-d64 option, 
for example: jinfo -J-d64 -sysprops pid.

This utility is unsupported and might not be available in future releases of the JDK. 
In Windows Systems where dbgeng.dll is not present, Debugging Tools For Windows must be installed to have these tools working. 
The PATH environment variable should contain the location of the jvm.dll 
that is used by the target process or the location from which the crash dump file was produced. 
For example, set PATH=%JDK_HOME%\jre\bin\client;%PATH% .

http://docs.oracle.com/javase/8/docs/technotes/tools/unix/jinfo.html

有一个奇怪的地方jps、jconsole.exe和jvisualvm.exe中都看不到4036的进程
技术分享


技术分享

技术分享

技术分享

 

最后通过procexp64.exe来查看
技术分享

 

 

原来是Jenkins,有浏览器访问下看看:
技术分享

 

java.exe进程来源排查录

标签:windows   启动   环境   解决   exe   debugging   virt   lease   pre   

原文地址:http://www.cnblogs.com/softidea/p/6883214.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!