[mapguide-internals] Tile Cache Problems

Trevor Wekel trevor.wekel at autodesk.com
Tue Apr 1 19:47:12 EDT 2008


Hi Zac,

The MapGuide Server will only clear out the session folders for the tile cache if the session times out while the server is active.  Stopping and restarting the server will cause it to lose track of the sessions that were still active.  I think the default session timeout is 20 minutes.  If you stop using the map for 20 minutes, the server should remove the session and the session specific directories.

When the Fusion or Ajax clients request tiles for the map, you may end up seeing the file IO error message when the removed tiles are accessed.  Are there any other errors about invalid sessions in the log file?

Thanks,
Trevor

________________________________

I have been having a lot of trouble with the tile service recently,

lots of file io errors

against sessions from studio.



As sessions don't persist when the server is restarted, shouldn't all

the sessions folders under

the tile cache be cleared when the server restarts?



I am also seeing lots of errors along the lines of



<2008-03-27T14:50:03>                 Administrator

 Error: A file IO exception occurred: C:/Program

Files/MapGuideOpenSource2.0/Server/Repositories/TileCache/4a4f143a-0000-1000-8000-00188b8b4aed_en_7F0000010B060B050B04_MapDefinition0/S29/BASE

- 0-35000000/R0/C0/0_1.png

 StackTrace:

  - MgTileServiceHandler.ProcessOperation line 83 file

d:\buildforgeprojects\mapguide_open_source_v2.0\build_23.8\mgdev\server\src\services\tile\TileServiceHandler.cpp

  - MgOpGetTile.Execute line 150 file

d:\buildforgeprojects\mapguide_open_source_v2.0\build_23.8\mgdev\server\src\services\tile\OpGetTile.cpp

  - MgServerTileService.GetTile line 263 file

d:\buildforgeprojects\mapguide_open_source_v2.0\build_23.8\mgdev\server\src\services\tile\ServerTileService.cpp

  - MgByteSink::ToFile line 245 file

d:\buildforgeprojects\mapguide_open_source_v2.0\build_23.8\mgdev\common\foundation\Data/ByteSink.cpp

  - MgByteSink.ToFile line 220 file

d:\buildforgeprojects\mapguide_open_source_v2.0\build_23.8\mgdev\common\foundation\Data/ByteSink.cpp        A

file IO exception occurred: C:/Program

Files/MapGuideOpenSource2.0/Server/Repositories/TileCache/4a4f143a-0000-1000-8000-00188b8b4aed_en_7F0000010B060B050B04_MapDefinition0/S29/BASE

- 0-35000000/R0/C0/0_1.png



where the 4a4f143a-0000-1000-8000-00188b8b4aed_en_7F0000010B060B050B04_MapDefinition0

directory doesn't exist



--

Zac Spitzer -

http://zacster.blogspot.com (My Blog)

+61 405 847 168



More information about the mapguide-internals mailing list