\u4f60\u4e5f\u53ef\u4ee5\u901a\u8fc7 ps\u00a0\u547d\u4ee4\uff0c\u5e76\u914d\u5408\u7ed3\u679c\u8f93\u51fa\u7ba1\u9053\u7b26\u8fdb\u884c\u00a0grep\uff0c\u4ece\u800c\u67e5\u770b\u7cfb\u7edf\u4e0a\u8fd0\u884c\u7684 Java \u8fdb\u7a0b\uff0c\u3002<\/p>\n
$ ps ax |grep java\r\n67604 pts\/1 Sl+ 0:18 \/usr\/lib\/jvm\/java-11-openjdk-11.0.12.0.7-4.fc34.x86_64\/bin\/java -D[Standalone] -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true --add-exports=java.desktop\/sun.awt=ALL-UNNAMED --add-exports=java.naming\/com.sun.jndi.ldap=ALL-UNNAMED --add-opens=java.base\/java.lang=ALL-UNNAMED --add-opens=java.base\/java.lang.invoke=ALL-UNNAMED --add-opens=java.base\/java.io=ALL-UNNAMED --add-opens=java.base\/java.security=ALL-UNNAMED --add-opens=java.base\/java.util=ALL-UNNAMED --add-opens=java.management\/javax.management=ALL-UNNAMED --add-opens=java.naming\/javax.naming=ALL-UNNAMED -Dorg.jboss.boot.log.file=\/home\/alan\/wildfly\/24.0.1\/standalone\/log\/server.log -Dlogging.configuration=file:\/home\/alan\/wildfly\/24.0.1\/standalone\/configuration\/logging.properties -jar \/home\/alan\/wildfly\/24.0.1\/jboss-modules.jar -mp \/home\/alan\/wildfly\/24.0.1\/modules org.jboss.as.standalone -Djboss.home.dir=\/home\/alan\/wildfly\/24.0.1 -Djboss.server.base.dir=\/home\/alan\/wildfly\/24.0.1\/standalone<\/pre>\n\u7136\u800c\uff0cOpenJDK \u6709\u81ea\u5df1\u4e13\u5c5e\u7684\u8fdb\u7a0b\u76d1\u89c6\u5668\u3002Java \u865a\u62df\u673a\u8fdb\u7a0b\u72b6\u6001Java Virtual Machine Process Status\uff08jps\uff09\u5de5\u5177\u53ef\u4ee5\u5e2e\u4f60\u626b\u63cf\u7cfb\u7edf\u4e0a\u6240\u6709\u8fd0\u884c\u7684 Java \u865a\u62df\u673a\uff08JVM\uff09\u5b9e\u4f8b\u3002<\/p>\n
\u8981\u60f3\u5b9e\u73b0\u4e0e\u00a0ps\u00a0\u547d\u4ee4\u7c7b\u4f3c\u7684\u8f93\u51fa\uff0c\u53ef\u4ee5\u4f7f\u7528\u00a0-v\u00a0\u9009\u9879\u3002\u8fd9\u5f88\u5b9e\u7528\uff0c\u8fd9\u4e0e\u00a0ps \u76f8\u6bd4\uff0c\u53ef\u4ee5\u51cf\u5c11\u4f60\u7684\u8f93\u5165\u3002<\/p>\n
$ jps -v\r\n67604 jboss-modules.jar -D[Standalone] -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true --add-exports=java.desktop\/sun.awt=ALL-UNNAMED --add-exports=java.naming\/com.sun.jndi.ldap=ALL-UNNAMED --add-opens=java.base\/java.lang=ALL-UNNAMED --add-opens=java.base\/java.lang.invoke=ALL-UNNAMED --add-opens=java.base\/java.io=ALL-UNNAMED --add-opens=java.base\/java.security=ALL-UNNAMED --add-opens=java.base\/java.util=ALL-UNNAMED --add-opens=java.management\/javax.management=ALL-UNNAMED --add-opens=java.naming\/javax.naming=ALL-UNNAMED -Dorg.jboss.boot.log.file=\/home\/alan\/wildfly\/24.0.1\/standalone\/log\/server.log -Dlogging.configuration=file:\/home\/alan\/wildfly\/24.0.1\/standalone\/configuration\/logging.properties<\/pre>\njps \u547d\u4ee4\u7684\u9ed8\u8ba4\u8f93\u51fa\u5305\u542b\u8fdb\u7a0b\u6807\u8bc6\u7b26\uff0c\u7c7b\u540d\u6216 Jar \u6587\u4ef6\u540d\u3002<\/p>\n
$ jps\r\n67604 jboss-modules.jar\r\n69430 Jps<\/pre>\n\u6ce8\u610f\uff1a<\/strong> jps\u00a0\u7684\u624b\u518c\u9875\u6307\u51fa\u6b64\u547d\u4ee4\u662f\u8bd5\u9a8c\u6027\u4e14\u4e0d\u53d7\u652f\u6301\u7684\u3002\u5c3d\u7ba1\u5982\u6b64\uff0c\u5b83\u4ecd\u7136\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\uff0c\u56e0\u4e3a\u4e00\u4e2a\u7cfb\u7edf\u901a\u5e38\u8fd0\u884c\u7740\u8bb8\u591a\u8fdb\u7a0b\uff0c\u8fd9\u79cd\u53ea\u8bc6\u522b Java \u8fdb\u7a0b\u7684\u5feb\u901f\u65b9\u6cd5\u662f\u5f88\u6709\u7528\u7684\u3002<\/p>\n\u5f53\u4e0b\u7684 Java \u4ecd\u7136\u662f\u4e00\u79cd\u6d41\u884c\u7684\u8bed\u8a00\uff0c\u6240\u4ee5\u719f\u6089 Java \u5f00\u53d1\u5de5\u5177\u5305\u548c\u8fd0\u884c\u65f6\u73af\u5883\u4ecd\u7136\u5f88\u91cd\u8981\u3002\u5b83\u4eec\u5305\u542b\u7740\u8bb8\u591a\u9002\u7528\u4e8e Java \u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u548c\u7ef4\u62a4\u7684\u5de5\u5177\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u5728 Linux \u4e2d\uff0c\u6709\u4e00\u4e9b\u7528\u4e8e\u67e5\u770b\u7cfb\u7edf\u4e0a\u8fd0\u884c\u8fdb\u7a0b\u7684\u547d\u4ee4\u3002\u8fdb\u7a0b\u662f\u6307\u7531\u5185\u6838\u7ba1\u7406\u7684\u6b63\u5728\u8fdb\u884c\u7684\u4e8b\u4ef6\u3002\u6bcf\u542f\u52a8\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f […]<\/p>\n","protected":false},"author":323,"featured_media":208904,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-228390","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/228390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=228390"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/228390\/revisions"}],"predecessor-version":[{"id":228417,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/228390\/revisions\/228417"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/208904"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=228390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=228390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=228390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}