English 中文(简体)
有哪些工具可以分析在 Java山坡外的记忆使用?
原标题:What are some tools that can analyse memory usage outside of the heap in Java?
  • 时间:2009-09-28 20:40:22
  •  标签:

我们的记忆泄露问题,因为 Java进程在气.中不断增多。 因此,我们自然地看着蒸汽堆,并使用一个简介仪在一段时间内监测它。 我们发现,

1) The number of threads does not grow
2) The heap usage does not grow
3) Yet the (VIRT) usage keeps growing (which can become a problem because the system starts to run out of swap space)

现在,有一些工具可以丢掉,或监测肥皂,但无法在肥皂外传承。 没有人有什么想法?

该系统是一个遥远的服务器,我们没有机会使用任何全球倡议。

问题回答

你们可以像Sockets那样,在本地记忆中透露一些东西。 是否发生了许多联系,你是否在最后一块地关闭了联系?

(1) 这一过程飞跃的空间没有变化,但2)蒸p使用量的变化是否表明,盒子上的某些其他过程可能会造成记忆使用量的突然增长?

换言之,我的理解是,像 s蒸使用一样,有些东西由监督厅管理,因此,如果 Java进程自食其果,不会改变,而是用掉,这似乎向我表明,问题在于别处,而恰恰是,监督厅正在选择 Java进程,开始吃掉掉 s。

或者,我对外空的错误理解吗?

联合核查机制其他部分的记忆是否在增加? 例如,基因空间?

你们是否使用土著图书馆?

I ll try to answer by answering another question. Is it possible that the heap size configuration of the JVM is more than free physical memory you have? Even if you define initial heap size much smaller than maximum heap size, and JVM allocates it all, it will never returns it back to OS, even if you garbage collect it all, and you don t have any allocations anymore. Don t confiugre 1.5GB max heap on 1G RAM server. Please check that configured maximum heap size "enters" the free RAM you have, together with other processes, especially if it s a server application. Otherwise, your application will get a lot of page faults and will swap all the time.





相关问题
热门标签