为什么GC执行频繁,并且在使用REE部署的Ruby Rails上花费太长时间?

时间:2020-12-09 03:58:51

I have a Ruby on Rails 3.0.9 application deployed on Apache 2.x with mod_ruby (REE). I collect performance statistics with NewRelic and I see that GC Execution happens too often and takes too much time.

我在Apache 2上部署了一个Ruby on Rails 3.0.9应用程序。x mod_ruby(REE)。我使用NewRelic收集性能统计数据,我发现GC执行太频繁,花费太多时间。

What shall I look at to improve this?

我该看些什么来改善这一点呢?

Thanks in advance

谢谢提前

1 个解决方案

#1


2  

Here are a couple of articles I came across recently that I think help explain this.

下面是我最近读到的一些文章,我认为它们有助于解释这一点。

One - Rails 3 Performance: Abysmal to Good to Great

1 - Rails 3性能:从糟糕到伟大

Two - Garbage collector and object space

两个垃圾收集器和对象空间。

#1


2  

Here are a couple of articles I came across recently that I think help explain this.

下面是我最近读到的一些文章,我认为它们有助于解释这一点。

One - Rails 3 Performance: Abysmal to Good to Great

1 - Rails 3性能:从糟糕到伟大

Two - Garbage collector and object space

两个垃圾收集器和对象空间。