[Koha-devel] Possible memory leak when using ZOOM libraries with Zebra
Fridolin SOMERS
fridolin.somers at biblibre.com
Wed Dec 19 09:19:30 CET 2018
Thanks for this alert.
Zebra is a wild animal ;)
Le 19/12/2018 à 02:08, David Cook a écrit :
> Hi all,
>
>
>
> I've been playing with the ZOOM libraries and Zebra, and it seems like
> there's a memory leak when using C4::Context->Zconn with the environmental
> variable GATEWAY_INTERFACE.
>
>
>
> I had a script that was creating a new connection for each request, and
> C4::Context->Zconn did look like it was calling the destroy method on the
> connection before creating a new one, and it was clear that each request was
> using a new connection, but I noticed the memory usage on the script slowly
> started going up. For a long-running script, the memory usage got over a
> gigabyte.
>
>
>
> If I re-use the connection (ie don't have GATEWAY_INTERFACE turned on),
> there's no memory leak.
>
>
>
> It shouldn't matter for CGI Koha, but I'm curious how this might affect
> Plack Koha. I haven't looked yet, but I figured it was worth sharing my
> observation. I suppose Plack recycles workers, so it's not dangerous, but I
> wonder if this is affecting the memory usage of Plack workers. Food for
> thought at least.
>
>
>
> David Cook
>
> Systems Librarian
>
> Prosentient Systems
>
> 72/330 Wattle St
>
> Ultimo, NSW 2007
>
> Australia
>
>
>
> Office: 02 9212 0899
>
> Direct: 02 8005 0595
>
>
>
>
>
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/
>
--
Fridolin SOMERS <fridolin.somers at biblibre.com>
BibLibre, France - software and system maintainer
More information about the Koha-devel
mailing list