[#3228] Core support for Gems, and namespace — "Luke A. Kanies" <luke@...>

Hi all,

21 messages 2004/07/27
[#3230] Re: Core support for Gems, and namespace — Austin Ziegler <halostatue@...> 2004/07/27

On Tue, 27 Jul 2004 11:39:08 +0900, Luke A. Kanies <luke@madstop.com> wrote:

[#3234] Re: Core support for Gems, and namespace — "Luke A. Kanies" <luke@...> 2004/07/27

On Tue, 27 Jul 2004, Austin Ziegler wrote:

[#3238] Re: Core support for Gems, and namespace — Austin Ziegler <halostatue@...> 2004/07/27

On Wed, 28 Jul 2004 00:14:29 +0900, Luke A. Kanies <luke@madstop.com> wrote:

Re: cgi.rb possible memory leak

From: matz@... (Yukihiro Matsumoto)
Date: 2004-07-28 10:11:10 UTC
List: ruby-core #3247
Hi,

In message "cgi.rb possible memory leak"
    on 04/07/28, Kent Sibilev <ksibilev@bellsouth.net> writes:

|Recently I've noticed that the memory usage of our Ruby processes goes 
|very high after intensive usage and never goes down. I wrote a simple 
|memory monitoring tool which uses ObjectSpace module to display the 
|current heap content. I noticed that there were a lot of StringIO and 
|Tempfile object hanging around and never got released by garbage 
|collector. The only place where these objects can be created is inside 
|the CGI class when the HTTP POST request has a multipart form. Having 
|spent a couple of hours in debugger, I was able to identify the source 
|of the problem. All these objects were marked by rb_mark_end_proc(), 
|which was very alarming especially that 'end_procs' list was unusually 
|huge.

CGI_PARAMS and CGI_COOKIES are obsolete.  So we can (and should)
remove their supporting code, in which at_exit call exists.  Will be
fixed soon.

							matz.

In This Thread

Prev Next