如何监控 Glassfish 内存使用情况?
有没有办法监控 Glassfish(开源)服务器随时间的内存使用情况? (最好以图形形式)
Are there any way to monitor the memory usage of Glassfish (open source) server over time? (preferably in a graphical form)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在此处下载 Visual VM 的副本 https://visualvm.dev.java.net/download.html< /a>
然后安装 Glassfish 插件。像冠军一样工作,完全按照您的意愿行事。
Download a copy of visual VM here https://visualvm.dev.java.net/download.html
Then install the Glassfish plungin. Works like a champ and does exactly what you want.
一个简单的解决方案是使用 Jconsole 连接到服务器 jvm。这里有一些说明 ,我没有使用过它们,但应该很简单。
A simple solution would be to connect to the servers jvm w/ Jconsole. There are some instructions here, I haven't used them but it should be straightforward.
您可以使用名为 Munin 的工具以图形方式监视资源,或按照 https://blogs.oracle 中的步骤操作.com/meenap/entry/monitoring_memory_growth_in_glassfish。
You could use a tool called Munin to graphically monitor resources or follow the steps in https://blogs.oracle.com/meenap/entry/monitoring_memory_growth_in_glassfish .
在 Windows 启动选项中键入 jconsole。
当您出现 jconsole.exe 时,单击它。
然后在本地进程中选择与正在运行的 glassfish 域相关的进程。
您可以从任务管理器获取进程 ID。
当 jconsole 面板打开时,您将在“内存”选项卡中看到以下内容:
及其解释的良好链接位于此处:
java内存池是如何划分的?
Type jconsole in your windows start option.
When you come up with the jconsole.exe click on it.
Then in local processes select the process relevant to the running glassfish domain.
You can get the process id from the task manager.
When the jconsole panel opens you will see the following in the Memory tab:
Good link with its explanation is here :
How is the java memory pool divided?