如何在jboss eap生产服务器中监视Java堆内存使用情况

时间:2018-07-06 06:07:04

标签: out-of-memory jboss-eap-7

我需要监视生产服务器JBOSS EAP和Web服务器nginx中的Java堆内存使用情况,以避免OutofMemory错误。 请建议

2 个答案:

答案 0 :(得分:2)

您可以使用Jboss CLI来检查JVM内存的详细信息,

  • 使用CLI连接到JBoss:
  

./jboss-cli.sh -c --controller=localhost:9999

  • 获取JVM内存详细信息:
  

/core-service=platform-mbean/type=memory/:read-resource(recursive=true,proxies=true,include-runtime=true,include-defaults=true)

或者您可以使用JBoss management console

  • 转到Runtime标签
  • JVM中选择Sytem status

或者您可以使用JConsole

答案 1 :(得分:0)

有关如何使用VisualVM或JConsole监视EAP服务器的说明,请参阅《 EAP性能调优指南》:https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.1/html-single/performance_tuning_guide/#monitoring_performance

它也包含有关对性能问题进行故障排除的部分,包括内存设置。