From victori@lamer0.com Thu Feb 1 00:27:51 2007
Date: Thu, 1 Feb 2007 00:28:00 +0000
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="1180908984.D1c61bD.9667";
charset="us-ascii"
List-Archive: <http://lists.rawmode.org/pipermail/catalyst>
List-Post: <mailto:catalyst@lists.rawmode.org>
In-Reply-To: <9e0a28690701311127w4131c2cn546682e3cd487fc3@mail.gmail.com>
Errors-To: catalyst-bounces@lists.rawmode.org
List-Help: <mailto:catalyst-request@lists.rawmode.org?subject=help>
References: <200612271208.42815.mark@itsolve.co.uk>
<45926EB1.2040007@cpan.org>
<9e0a28690701310723p2db99e58tab1f82e1824a0abd@mail.gmail.com>
<6053700D-69B0-40F2-BED8-3587EB4A9ACC@trout.me.uk>
<9e0a28690701311127w4131c2cn546682e3cd487fc3@mail.gmail.com>
Reply-To: The elegant MVC web framework <catalyst@lists.rawmode.org>
Message-ID: <75AB7D73-107D-4CE2-A286-7BB8E3C55ACB@lamer0.com>
X-BeenThere: catalyst@lists.rawmode.org
Subject: [Catalyst] FormBuilder + C::C::Formbuilder memory leak fixes
List-Id: The elegant MVC web framework <catalyst.lists.rawmode.org>
Return-Path: <catalyst-bounces@lists.rawmode.org>
List-Subscribe: <http://lists.rawmode.org/mailman/listinfo/catalyst>,
<mailto:catalyst-request@lists.rawmode.org?subject=subscribe>
Sender: catalyst-bounces@lists.rawmode.org
Precedence: list
List-Unsubscribe: <http://lists.rawmode.org/mailman/listinfo/catalyst>
<mailto:catalyst-request@lists.rawmode.org?subject=unsubscribe>
From: Victor Igumnov <victori@lamer0.com>
--1180908984.D1c61bD.9667
Date: Sun, 3 Jun 2007 15:16:24 -0700
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
To see the impact of the memory leak.
Run broken.pl first which will run formbuilder against your installed
version.
It will create a new formbuilder instance over and over, watch top -o
size as it grows to 100-200 megs in just a few seconds.
Now run fixed.pl - works great don't it? No memory leaks what so ever.
I have also included a CatTest catalyst project which uses
C::C::FormBuilder. With everything patched up the process stays at
~14 megs while being hammered by ab -n 900 -c 100 http://localhost:
3000/.
So the question is am I the only one using formbuilder? This leak was
very obvious.
All tests pass for both projects.
http://temp.fabulously40.com/~victori/CGI-FormBuilder-3.05-memfix.tbz
-victor
--1180908984.D1c61bD.9667
Date: Sun, 3 Jun 2007 15:16:24 -0700
MIME-Version: 1.0
Content-Type: text/html; name="attachment-0001.htm"; charset="us-ascii"
Content-Disposition: attachment; filename="attachment-0001.htm"
<tt>
<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">
;<DIV>To see the impact of the memory leak.</DIV><DIV><BR class="khtml-block-placeholder">
;</DIV><DIV>Run broken.pl first which will run formbuilder against your installed version.</DIV>
;<DIV>It will create a new formbuilder instance over and over, watch top -o size as&nbs
p;it grows to 100-200 megs in just a few seconds.</DIV><DIV><BR class="khtml-block-placeholde
r"></DIV><DIV>Now run fixed.pl - works great don't it? No memory leaks what so&nbs
p;ever.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I have also included a CatTe
st catalyst project which uses C::C::FormBuilder. With everything patched up the process stays at&
nbsp;~14 megs while being hammered by ab -n 900 -c 100 <A href="http://localhost:3000">
http://localhost:3000</A>/. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>So the ques
tion is am I the only one using formbuilder? This leak was very obvious.</DIV><DIV>&l
t;BR class="khtml-block-placeholder"></DIV><DIV>All tests pass for both projects.</DIV><DIV><
BR class="khtml-block-placeholder"></DIV><DIV><A href="http://temp.fabulously40.com/~victori/">http://temp.fabul
ously40.com/~victori/</A><FONT class="Apple-style-span" face="Lucida Grande">CGI-FormBuilder-3.05-memfix.tbz</FON
T></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-victor</DIV><BR></BODY></HTML>
</tt>
--1180908984.D1c61bD.9667--