Hi all,

I'm having a little big problem related to memory being cached when rendering tiles with mapnik.

I've followed the FOSS4G tutorial [1] to deploy a Mapnik in a local server, I've imported the whole OSM planet into PostGIS.

I'm using a virtual machine with these specs:

Ubuntu Maverick (10.10 x64)
Postgres 8.4
postgis 1.5
Tomcat 6

6GB RAM
1 Intel Xeon 4Cores 2.4GHz


This is the console log when I make several tile requests:

root@Onda:/home/desa/tilelite# free -m
                total       used       free     shared    buffers     cached
Mem:            5983        605       5378          0         25290
-/+ buffers/cache:        288       5695
Swap:           5883          0       5883

root@Onda:/home/desa/tilelite# [TileLite Debug] -->  Zoom,X,Y: 2,3,1
[TileLite Debug] -->  scale_denom: 139770566.007
130.0.2.160 - - [24/Mar/2011 09:38:43] "GET /2/3/1.png HTTP/1.1" 200 -
[TileLite Debug] -->  Zoom,X,Y: 2,2,1
[TileLite Debug] -->  scale_denom: 139770566.007
130.0.2.160 - - [24/Mar/2011 09:38:51] "GET /2/2/1.png HTTP/1.1" 200 -
[TileLite Debug] -->  Zoom,X,Y: 2,1,1
[TileLite Debug] -->  scale_denom: 139770566.007
130.0.2.160 - - [24/Mar/2011 09:38:54] "GET /2/1/1.png HTTP/1.1" 200 -
[TileLite Debug] -->  Zoom,X,Y: 2,0,1
[TileLite Debug] -->  scale_denom: 139770566.007
130.0.2.160 - - [24/Mar/2011 09:38:57] "GET /2/0/1.png HTTP/1.1" 200 -
[TileLite Debug] -->  Zoom,X,Y: 2,3,2
[TileLite Debug] -->  scale_denom: 139770566.007
130.0.2.160 - - [24/Mar/2011 09:38:58] "GET /2/3/2.png HTTP/1.1" 200 -

root@Onda:/home/desa/tilelite# free -m
              total       used       free     shared    buffers     cached
Mem:          5983       2191       3792          0         261871
-/+ buffers/cache:        293       5689
Swap:         5883          0       5883


As I make tile requests the cached memory grows and it's never freed, until no more memory lefts in the SO.

I've tried several configurations of the postgresql.conf, for example the one at [2]. I've also tried increasing the max shared memory of the kernel by editing the /etc/sysctl.conf and setting kernel.shmmax = 268435456.

Does anybody has faced this problem before?

Any help would be appreciated.

Best regards,

[1] http://dbsgeo.com/foss4g2010/html/index.html
[2] http://www.geofabrik.de/media/2010-07-10-rendering-toolchain-performance.pdf

--

Alberto Romeu
---

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to