[postgis-devel] Geos_noop memory leak?

Markus Schaber schabios at logi-track.com
Thu Feb 17 07:23:53 PST 2005


Hi,

I think I might have found a memory leak in geos_noop.

This is my postmaster backend process after calling some non-geos GIS
functions:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND

 6870 postgres  25   0 23784 8700 7760 S  0.0  0.8   0:35.81 postmaster

All three of VIRT, RES and SHR increased a lot during running the query,
and dropped again when the query was finished. There is a small increase
in RES and SHR memory usage after the _first_ call of each function,
which seems to be caused by PostgreSQL loading the C function into
memory. The memory usage keeps constant for repeated calls of the same
function, or alternatinly calling already-initialized functions.

Now the same process after calling "select geosnoop(geom) from adminbndy1;":

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND

 6870 postgres  25   0  138m 123m 7800 S  0.0 12.3   1:40.91 postmaster


And after issuing the query a second time:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND

 6870 postgres  25   0  248m 233m 7800 S  0.0 23.1   2:07.31 postmaster


Can anyone reproduce this? Does this occur with other GEOS functions, too?

Markus

--
markus schaber | dipl. informatiker
logi-track ag | rennweg 14-16 | ch 8001 zürich
phone +41-43-888 62 52 | fax +41-43-888 62 53
mailto:schabios at logi-track.com | www.logi-track.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20050217/7ee750b2/attachment.sig>


More information about the postgis-devel mailing list