[ka-Map-users] ka-map with PHP as a CGI vs. DSO?

Stephen Woodbridge woodbri at swoodbridge.com
Tue May 31 10:36:07 EDT 2005


It would need to be set up and tested, but if you have a good size cache 
and are getting a 70% hit rate then you are generating 70% less CGI 
processes that do nothing but spool a file back to the client which 
apache does very well.

Is this "substantially better"? Don't know.

-Steve

Paul Spencer wrote:
> Stephen is probably correct, using the web server to generate 404 errors 
> and using a web server configuration that redirects the error handler 
> could be an excellent way to handle this.
> 
> I am not convinced that it would be substantially better than the dso 
> method ... but that's where I am also hoping to get feedback :)
> 
> Paul
> 
> Stephen Woodbridge wrote:
> 
>> I thinking that be possible to convert ka-map requests to actual tile 
>> images instead of via the CGI, and have it be smart enough to handle a 
>> 404 response for a tile by re issuing the request via the CGI.
>>
>> This would unload the server significantly at the cost of a slightly 
>> longer delay in generating a new tile. It might be that the new tile 
>> will load faster anyway because there is more processor time available 
>> to generate the new tiles.
>>
>> -Steve
>>
>> Matthew Perry wrote:
>>
>>> Hey folks,
>>>
>>>   It occured to me, as I watched my processor run near 100% due to a
>>> few ka-map tile requests, that running ka-map with PHP as a CGI might
>>> be a serious liability. In other words, having to start a new process
>>> for each tile is extremely expensive compared to running a persistent
>>> process or daemon.
>>>
>>>   Has anyone used Ka-Map with PHP/Mapscript as a DSO? It seems as if
>>> this would speed things up a bit. Is this even possible? There has
>>> been some discussion on the Mapserver list and the consensus is still,
>>> unfortunately, that Apache 2 with PHP DSO is not stable with Mapscipt.
>>> Does anyone's experience prove otherwise??
>>>
>>> What are other folks doing to improve ka-map perfomance given the
>>> limitations of CGI?
>>>
>>
>> _______________________________________________
>> ka-Map-users mailing list
>> ka-Map-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/ka-map-users
>>
> 



More information about the ka-Map-users mailing list