如何监控 Glassfish 内存使用情况?

发布于 2024-10-07 00:00:09 字数 52 浏览 0 评论 0原文

有没有办法监控 Glassfish(开源)服务器随时间的内存使用情况? (最好以图形形式)

Are there any way to monitor the memory usage of Glassfish (open source) server over time? (preferably in a graphical form)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

吃素的狼 2024-10-14 00:00:09

在此处下载 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.

弃爱 2024-10-14 00:00:09

一个简单的解决方案是使用 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.

近箐 2024-10-14 00:00:09

您可以使用名为 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 .

神经大条 2024-10-14 00:00:09

在 Windows 启动选项中键入 jconsole。

当您出现 jconsole.exe 时,单击它。

然后在本地进程中选择与正在运行的 glassfish 域相关的进程。

您可以从任务管理器获取进程 ID。

当 jconsole 面板打开时,您将在“内存”选项卡中看到以下内容:

1.  Heap Memory Usage
Java takes memory from the OS. Part of this memory is called Java Heap Memory. Whenever an object is newly created it  is allocated memory from the Java Heap space and when it is garbage collected the memory occupied by this object is returned back to the OS.

2.Non Heap Memory Usage
3.Memory Pool Eden Space
4.Memory Pool Survivor Space
5.Memory Pool Tenured Gen
6.Memory Pool Code Cache
7.Memory Pool Code Gen

及其解释的良好链接位于此处:
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:

1.  Heap Memory Usage
Java takes memory from the OS. Part of this memory is called Java Heap Memory. Whenever an object is newly created it  is allocated memory from the Java Heap space and when it is garbage collected the memory occupied by this object is returned back to the OS.

2.Non Heap Memory Usage
3.Memory Pool Eden Space
4.Memory Pool Survivor Space
5.Memory Pool Tenured Gen
6.Memory Pool Code Cache
7.Memory Pool Code Gen

Good link with its explanation is here :
How is the java memory pool divided?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文