-
-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak -- doesn't close raster files #4389
Comments
|
Happens on 6.0.1 as well. |
|
Hoping Frank is available to comment... Steve CC'ing: @warmerdam |
|
Try to use that config if you want gdal to always close its raster files: LAYER On 12-07-13 10:53 AM, leftys wrote:
|
|
I believe rasters have CLOSE_CONNECTION=DEFER by default. Perhaps try CLOSE_CONNECTION=ALWAYS if you are working with large numbers of raster images and cannot afford the overhead of keeping them open (performance vs memory usage tradeoff) |
|
Ah, I see aboudreault already commented the same thing :) |
|
Can this be closed as invalid, anyone? Steve |
|
Yes, I believe this is working as expected. A future enhancement might be to use a global connection pool with a fixed capacity and a LRU strategy for closing unused connections. |
When used in FCGI configuration, I observe raising memory usage of mapserv processess. lsof shows that mapserver still has opened all the tiff files served since it's start. Memory usage goes as high as 100MB and depends on the total number of layers served.
Mapserv 5.6.5, Gdal 1.6.3
The text was updated successfully, but these errors were encountered: