Re: Issue with transactions...

[email protected] Wed, 17 Jun 2020 05:38:34 -0700 (PDT)
Newsgroups gmane.comp.web.zope.zodb
Message-ID <[email protected]>
------=_Part_2309_277088654.1592397514112
Content-Type: multipart/alternative; 
	boundary="----=_Part_2310_945994519.1592397514112"

------=_Part_2310_945994519.1592397514112
Content-Type: text/plain; charset="UTF-8"

 Thanks for the reply. I guess I will need to use the cache methods to 
control memory usage then.

On Wednesday, June 17, 2020 at 6:16:42 AM UTC-4, Patrick Hampton wrote:
>
> I have noticed that during a process that the memory usage is up to 13 to 
> 14 GB.
>
> I tried using gc.collect() which did nothing. So I tried a 
> "transaction.abort()" and most of the memory was returned after about 2 to 
> 3 minutes.
>
> This process does not change anything within the persistent objects so why 
> is it adding those persistent objects to a transaction? I have added a 
> "transaction.abort()" to the process and the memory stays around 370 MB.
>
>

-- 
You received this message because you are subscribed to the Google Groups "zodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/zodb/2041dadd-3b6d-484e-aaef-395f5888886fo%40googlegroups.com.

------=_Part_2310_945994519.1592397514112
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">=C2=A0Thanks for the reply. I guess I will need to use the=
 cache methods to control memory usage then.<br><br>On Wednesday, June 17, =
2020 at 6:16:42 AM UTC-4, Patrick Hampton wrote:<blockquote class=3D"gmail_=
quote" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;pa=
dding-left: 1ex;"><div dir=3D"ltr"><div>I have noticed that during a proces=
s that the memory usage is up to 13 to 14 GB.</div><div><br></div><div>I tr=
ied using gc.collect() which did nothing. So I tried a &quot;transaction.ab=
ort()&quot; and most of the memory was returned after about 2 to 3 minutes.=
</div><div><br></div><div>This process does not change anything within the =
persistent objects so why is it adding those persistent objects to a transa=
ction? I have added a &quot;transaction.abort()&quot; to the process and th=
e memory stays around 370 MB.</div><div><br></div></div></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;zodb&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">zodb+unsubscri=
[email protected]</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/zodb/2041dadd-3b6d-484e-aaef-395f5888886fo%40googlegroups.com?ut=
m_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/zod=
b/2041dadd-3b6d-484e-aaef-395f5888886fo%40googlegroups.com</a>.<br />

------=_Part_2310_945994519.1592397514112--

------=_Part_2309_277088654.1592397514112--