[Zope-dev] Opera seems to cause memory leak on Zope Server (Linux)

Christian Theune ct@gocept.com
Tue, 26 Jun 2001 14:47:53 +0200


--WYTEVAkct0FjGQmd
Content-Type: multipart/mixed; boundary="BXVAT5kNtrzKuDFl"
Content-Disposition: inline


--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi everybody.

I'm (trying) to work with Opera, because I love it's speed,
the problem is, from time to time, a request from opera,
(seems to raise on POST only) causes Zope to eat all ram
it can get and all cpu available.

I tried to check out and found following data:

it only rises on POST requests
then it rises on this requests EVERYTIME

I have two files for you, tracing the conversation of an example
post. The first one traces a post trying to create a DTML Method
with opera 5.02 Linux, the second tries the same thing,=20
same urls, with Netscape 4.77.
=20
--=20
Christian Theune - ct@gocept.com
gocept gmbh & co.kg - schalaunische strasse 6 - 06366 koethen/anhalt
tel.+49 3496 3099112 - fax.+49 3496 3099118 mob. - 0178 48 33 981

reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b'=
)))

--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=operapost
Content-Transfer-Encoding: quoted-printable

=3D=3D> POST http://www.whq.gocept.com:10080/rat/file/hilfeplan/0_basis/man=
age_addProduct/OFSP/addDTMLMethod HTTP/1.0

=3D=3D> User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Linux) Opera 5.0  [e=
n]

=3D=3D> Host: www.whq.gocept.com:10080

=3D=3D> Accept: text/html, image/png, image/jpeg, image/gif, image/x-xbitma=
p, */*

=3D=3D> Accept-Language: de,en

=3D=3D> Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=3D0

=3D=3D> Referer: http://www.whq.gocept.com:10080/rat/file/hilfeplan/0_basis=
/manage_addProduct/OFSP/methodAdd

=3D=3D> Cookie: tree-s=3D"eJyLjlZ3hAL3SgNbdR2FaCSRKld0EYNkNBEfS19b9VigEJKII=
5oa30CQGjgAALiSHio"; zmi_use_css=3D"1"; zmi_top_frame=3D"1"; sql_pref__rows=
=3D"20"; sql_pref__cols=3D"95"; dtpref_rows=3D"45"; dtpref_cols=3D"115"; _Z=
opeId=3D"94176612Az11pmPfmwg"; __ac=3D"Y3RoZXVuZTplbnVlaHRj%0a"

=3D=3D> Cookie2: $Version=3D"1"

=3D=3D> Proxy-Connection: Keep-Alive

=3D=3D> Content-length: 403

=3D=3D> Content-Type: multipart/form-data;

=3D=3D>  boundary=3D_OPERAB__-DeUkBe0Y+3V7cF3y+Pn4nN

=3D=3D>=20

=3D=3D> --_OPERAB__-DeUkBe0Y+3V7cF3y+Pn4nN

=3D=3D> Content-Disposition: form-data; name=3D"id"

=3D=3D>=20

=3D=3D> test1

=3D=3D> --_OPERAB__-DeUkBe0Y+3V7cF3y+Pn4nN

=3D=3D> Content-Disposition: form-data; name=3D"title"

=3D=3D>=20

=3D=3D>=20

=3D=3D> --_OPERAB__-DeUkBe0Y+3V7cF3y+Pn4nN

=3D=3D> Content-Disposition: form-data; name=3D"file:string"

=3D=3D>=20

=3D=3D>=20

=3D=3D> --_OPERAB__-DeUkBe0Y+3V7cF3y+Pn4nN

=3D=3D> Content-Disposition: form-data; name=3D"submit"

=3D=3D>=20

=3D=3D>  Add and Edit=20

=3D=3D> --_OPERAB__-DeUkBe0Y+3V7cF3y+Pn4nN--

[0.024 - Server connected]
<=3D=3D HTTP/1.0 503 Service Unavailable

<=3D=3D Server: Squid/2.2.STABLE5

<=3D=3D Mime-Version: 1.0

<=3D=3D Date: Sat, 23 Jun 2001 15:14:31 GMT

<=3D=3D Content-Type: text/html

<=3D=3D Content-Length: 834

<=3D=3D Expires: Sat, 23 Jun 2001 15:14:31 GMT

<=3D=3D X-Squid-Error: ERR_CONNECT_FAIL 111

<=3D=3D X-Cache: MISS from pegasus.ct.gocept.com

<=3D=3D Proxy-Connection: close

<=3D=3D=20

<=3D=3D <HTML><HEAD>
<=3D=3D <TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<=3D=3D </HEAD><BODY>
<=3D=3D <H1>ERROR</H1>
<=3D=3D <H2>The requested URL could not be retrieved</H2>
<=3D=3D <HR>
<=3D=3D <P>
<=3D=3D While trying to retrieve the URL:
<=3D=3D <A HREF=3D"http://www.whq.gocept.com:10080/rat/file/hilfeplan/0_bas=
is/manage_addProduct/OFSP/addDTMLMethod">http://www.whq.gocept.com:10080/ra=
t/file/hilfeplan/0_basis/manage_addProduct/OFSP/addDTMLMethod</A>
<=3D=3D <P>
<=3D=3D The following error was encountered:
<=3D=3D <UL>
<=3D=3D <LI>
<=3D=3D <STRONG>
<=3D=3D Connection Failed
<=3D=3D </STRONG>
<=3D=3D </UL>
<=3D=3D=20
<=3D=3D <P>
<=3D=3D The system returned:
<=3D=3D <PRE><I>    (111) Connection refused</I></PRE>
<=3D=3D=20
<=3D=3D <P>
<=3D=3D The remote host or network may be down.  Please try the request aga=
in.
<=3D=3D </P>
<=3D=3D=20
<=3D=3D <br clear=3D"all">
<=3D=3D <hr noshade size=3D1>
<=3D=3D Generated Sat, 23 Jun 2001 15:14:31 GMT by pegasus.ct.gocept.com (<=
a href=3D"http://squid.nlanr.net/Squid/">Squid/2.2.STABLE5</a>)
<=3D=3D </BODY></HTML>
[41.139000 - Closed by Server]



--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=netscapepost
Content-Transfer-Encoding: quoted-printable

=3D=3D> POST http://www.whq.gocept.com:10080/rat/file/hilfeplan/0_basis/man=
age_addProduct/OFSP/addDTMLMethod HTTP/1.0

=3D=3D> Referer: http://www.whq.gocept.com:10080/rat/file/hilfeplan/0_basis=
/manage_addProduct/OFSP/methodAdd

=3D=3D> Proxy-Connection: Keep-Alive

=3D=3D> User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.5 i686)

=3D=3D> Host: www.whq.gocept.com:10080

=3D=3D> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/=
png, */*

=3D=3D> Accept-Encoding: gzip

=3D=3D> Accept-Language: en

=3D=3D> Accept-Charset: iso-8859-1,*,utf-8

=3D=3D> Cookie: tree-s=3D"eJzTiFZ3hAIfS19b9VgdTQAujgSb"; dtpref_rows=3D"20"=
; dtpref_cols=3D"75"; sql_pref__rows=3D"20"; sql_pref__cols=3D"80"; __ac=3D=
"Y3RoZXVuZTplbnVlaHRj%0a"

=3D=3D> Content-type: multipart/form-data; boundary=3D---------------------=
------10181086171331170261630052973

=3D=3D> Content-Length: 538

=3D=3D>=20

=3D=3D> -----------------------------10181086171331170261630052973

=3D=3D> Content-Disposition: form-data; name=3D"id"

=3D=3D>=20

=3D=3D> test1

=3D=3D> -----------------------------10181086171331170261630052973

=3D=3D> Content-Disposition: form-data; name=3D"title"

=3D=3D>=20

=3D=3D>=20

=3D=3D> -----------------------------10181086171331170261630052973

=3D=3D> Content-Disposition: form-data; name=3D"file:string"; filename=3D""

=3D=3D>=20

=3D=3D>=20

=3D=3D> -----------------------------10181086171331170261630052973

=3D=3D> Content-Disposition: form-data; name=3D"submit"

=3D=3D>=20

=3D=3D>  Add and Edit=20

=3D=3D> -----------------------------10181086171331170261630052973--

<=3D=3D HTTP/1.0 302 Moved Temporarily

<=3D=3D Server: Zope/Zope 2.3.2 (source release, python 1.5.2, linux2) ZSer=
ver/1.1b1

<=3D=3D Date: Sat, 23 Jun 2001 15:18:03 GMT

<=3D=3D Location: http://www.whq.gocept.com:10080/rat/file/hilfeplan/0_basi=
s/test1/manage_main

<=3D=3D Content-Length: 0

<=3D=3D Age: 0

<=3D=3D X-Cache: MISS from pegasus.ct.gocept.com

<=3D=3D Proxy-Connection: keep-alive

<=3D=3D=20

[24.800000 - Closed by Client]

--BXVAT5kNtrzKuDFl--

--WYTEVAkct0FjGQmd
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Weitere Infos: siehe http://www.gnupg.org

iD8DBQE7OIR4dUt9X/gknwIRAhbRAJ0artX99G5VEtTSvkgpgpcjvbh4ngCgrJLm
sGQDBb9Zj0x0fQNrJBRkzTk=
=EV1c
-----END PGP SIGNATURE-----

--WYTEVAkct0FjGQmd--