有谁知道在Java中配置GC的好指南吗? [英] Does anyone know of a good guide to configure GC in Java?

查看:73
本文介绍了有谁知道在Java中配置GC的好指南吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行应用程序的JVM遇到问题,它的堆内存看起来像一把梳子。它不断从1.5 GB跳到3 GB,并逐渐恶化到更高的值。我使用G1 GC算法,但不知道如何配置它。



我无法访问正在运行的应用程序的代码,这是一个相当大的应用程序。

因此,底线,有谁知道在Java中配置GC的好指南吗?

解决方案

这是使用5.0 Java虚拟机调整Garbage Collection 从Sun ... oops Oracle; - )



这里是适用于Java 6的链接


I'm having trouble with a JVM running an app, whose heap memory looks like a comb. It's constantly jumping from 1.5 GB to 3 GB and slowly deteriorating to higher values. I'm using G1 GC algorithm, but have no idea how to configure it.

I do not have access to the code of the app I'm running and, needless to say, it's a rather large app.

So, bottom line, does anyone know of a good guide to configure GC in Java?

解决方案

Here it is Tuning Garbage Collection with the 5.0 Java Virtual Machine from Sun...oops Oracle ;-)

Here is the link for Java 6

这篇关于有谁知道在Java中配置GC的好指南吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆