Hi all

I have a python mapscript using fastapi as the api.

The data I'm using is netcdf. So everything works fine.

However I see my app is eating more and more memory the more different datasets are requested.

Using lsof ( to see open files), I see the process don't cleanup the files used (they are open) as DATA in my mapscript setup.

In mapserver doc I see the mapscript funtion msCleanup()(mapscript section 5.1 MapScript Functions) I'm hoping could help me clean up this.

But when I add this I get error and crash of the process:
CPLGetTLSList(): pthread_setspecific() failed!

google gives me nothing.

The setup is mapserver from conda-forge 8.2.2 on python 3.11 with gdal 3.9.2

Any idea why this is happening, or how to keep better control over memory usage in an setup like this?

Trygve Aspenes
_______________________________________________
MapServer-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to