[gdal-dev] gdal_cachemax configuration
Stephane Poissant
spoissantca at gmail.com
Mon Jan 11 07:59:35 PST 2021
Good day to all,
I am fairly new to goal / mapserver and I have to upgrade the servers to latest Linux available on Amazon. (CentOS 2 kinda)
I managed to get mapserver compiled and going properly. I’d like to configure the goal_cachemax to 512 but I cannot find
Where and how to apply this systemwide instead of per connection.
[root at mapserver-0290 bin]# ./gdalinfo --version
GDAL 3.2.0, released 2020/10/26
[root at mapserver-0290 bin]# ./gdalinfo --config GDAL_CACHEMAX 512
Usage: gdalinfo [--help-general] [-json] [-mm] [-stats] [-hist] [-nogcp] [-nomd]
[-norat] [-noct] [-nofl] [-checksum] [-proj4]
[-listmdd] [-mdd domain|`all`] [-wkt_format WKT1|WKT2|...]*
[-sd subdataset] [-oo NAME=VALUE]* [-if format]* datasetname
Any suggestions? Unless you have a better idea of what could cause this error type?
For the records, it works fine on Amazon Linux 1...
I get errors in the apache log like the following:
(IP and URL were replaced for security reasons)
…
[Mon Jan 11 14:39:49.128142 2021] [cgi:error] [pid 2498] [client x.x.x.x:65072] AH01215: GDAL: GDALOpen(PG:host=floodsource2.tk.com port=5432 dbname='floodsource' user='monkeysk' password=XXXXXXXXXXXXXXXXXXXXXX schema='public' table='flood_jba_cn_river_1500_2017_v2' mode='2', this=0x1d2bf80) succeeds as PostGISRaster.: /var/www/html/map/mapserv.cgi, referer: http://utility.something.com/
[Mon Jan 11 14:39:49.143728 2021] [cgi:error] [pid 2794] [client x.x.x.x:65076] AH01215: GDAL: GDALOpen(PG:host=floodsource2.tk.com port=5432 dbname='floodsource' user='monkeysk' password=XXXXXXXXXXXXXXXXXXXXXX schema='public' table='flood_jba_cn_river_1500_2017_v2' mode='2', this=0x1273f80) succeeds as PostGISRaster.: /var/www/html/map/mapserv.cgi, referer: http://utility.something.com/
[Mon Jan 11 14:39:49.144051 2021] [cgi:error] [pid 2792] [client x.x.x.x:65074] AH01215: GDAL: GDALOpen(PG:host=floodsource2.tk.com port=5432 dbname='floodsource' user='monkeysk' password=XXXXXXXXXXXXXXXXXXXXXX schema='public' table='flood_jba_cn_river_1500_2017_v2' mode='2', this=0x12baf80) succeeds as PostGISRaster.: /var/www/html/map/mapserv.cgi, referer: http://utility.something.com/
[Mon Jan 11 14:39:49.146908 2021] [cgi:error] [pid 2495] [client x.x.x.x:65077] AH01215: GDAL: GDALOpen(PG:host=floodsource2.tk.com port=5432 dbname='floodsource' user='monkeysk' password=XXXXXXXXXXXXXXXXXXXXXX schema='public' table='flood_jba_cn_river_1500_2017_v2' mode='2', this=0x21abf80) succeeds as PostGISRaster.: /var/www/html/map/mapserv.cgi, referer: http://utility.something.com/
[Mon Jan 11 14:39:49.156075 2021] [cgi:error] [pid 2800] [client x.x.x.x:65073] AH01215: GDAL: GDALOpen(PG:host=floodsource2.tk.com port=5432 dbname='floodsource' user='monkeysk' password=XXXXXXXXXXXXXXXXXXXXXX schema='public' table='flood_jba_cn_river_1500_2017_v2' mode='2', this=0x1debf80) succeeds as PostGISRaster.: /var/www/html/map/mapserv.cgi, referer: http://utility.something.com/
[Mon Jan 11 14:39:49.156355 2021] [cgi:error] [pid 2793] [client x.x.x.x:65075] AH01215: GDAL: GDALOpen(PG:host=floodsource2.tk.com port=5432 dbname='floodsource' user='monkeysk' password=XXXXXXXXXXXXXXXXXXXXXX schema='public' table='flood_jba_cn_river_1500_2017_v2' mode='2', this=0x102af80) succeeds as PostGISRaster.: /var/www/html/map/mapserv.cgi, referer: http://utility.something.com/
[Mon Jan 11 14:39:49.382585 2021] [cgi:error] [pid 2498] [client x.x.x.x:65072] AH01215: GDAL: GDAL_CACHEMAX = 388 MB: /var/www/html/map/mapserv.cgi, referer: http://utility.something.com/
[Mon Jan 11 14:39:49.443576 2021] [cgi:error] [pid 2800] [client x.x.x.x:65073] AH01215: GDAL: GDAL_CACHEMAX = 388 MB: /var/www/html/map/mapserv.cgi, referer: http://utility.something.com/
[Mon Jan 11 14:39:49.477139 2021] [cgi:error] [pid 2495] [client x.x.x.x:65077] AH01215: GDAL: GDAL_CACHEMAX = 388 MB: /var/www/html/map/mapserv.cgi, referer: http://utility.something.com/
[Mon Jan 11 14:39:49.479542 2021] [cgi:error] [pid 2794] [client x.x.x.x:65076] AH01215: GDAL: GDAL_CACHEMAX = 388 MB: /var/www/html/map/mapserv.cgi, referer: http://utility.something.com/
[Mon Jan 11 14:39:49.505870 2021] [cgi:error] [pid 2793] [client x.x.x.x:65075] AH01215: GDAL: GDAL_CACHEMAX = 388 MB: /var/www/html/map/mapserv.cgi, referer: http://utility.something.com/
[Mon Jan 11 14:39:49.527354 2021] [cgi:error] [pid 2792] [client x.x.x.x:65074] AH01215: GDAL: GDAL_CACHEMAX = 388 MB: /var/www/html/map/mapserv.cgi, referer: http://utility.something.com/
Stéphane Poissant
Portable: 514-793-3506
spoissantca at gmail.com
More information about the gdal-dev
mailing list