[mapserver-users] Runaway process and other wierdness
Tim Sutton
sutton_t at giug.net
Mon Oct 29 06:39:49 PST 2001
Hi
Thanks for th reply. I also suspected a caching problem for the image
wierdness so I put in some php to send custom http headers that force
a page to not be cached:
//send headers to prevent this page being cached!
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header ("Cache-Control: no-cache, must-revalidate");// HTTP/1.1
header ("Pragma:no-cache");// HTTP/1.0
This does not seem to solve the problem though. Does anyone have a
prebuild ms3.4 php_mapscript.so built on RedHat 7.1 they could send
me / point me to? I am supposed to be demoing the app I have made
today and need a quick fix solution! I can't get ms3.4 to build on
rh7.1 - I get a conftest unterminated command error.
Many thanks
Tim
On Mon, 29 Oct 2001, Bruno Gendron wrote:
> Hi Tim, hello everyone,
>
> I began having the same exact problems recently
> (except from the scalebar bug), with ms3.5 (not cvs)
> on Mandrake 8, Apache 1.3.X, php 4.0.5 and
> php-mapscript. I'm not using the CGI version of
> MapServer, only php-mapscript.
>
> >From my experiments, if php encounters any error while
> a mapscript session is in progress (in my case, my php
> script had a small warning, not fatal, error that was
> catched by an error management routine), the http
> thread does not terminate properly, leading in a
> thread "leak". After I solved this error, the leak
> ALMOST disappeared, although i cannot certify that
> this was only a coding issue on my behalf. Could it be
> a "keep-alive" problem with php or apache?
>
> Like you, I also get random map images from previous
> requests appearing in my browser: even worse, other
> users of the app sometimes get map images from each
> other's requests!
>
> 2 possible explanations:
>
> - Apache gets mixed-up with it's connections, sending
> data on wrong connections (could it be possible!!!),
>
> - or the map image filename created by Mapserver (in
> my case php-mapscript) is not really UNIQUE filenames,
> so one image gets could get cached by the browser and
> displayed back later if the map image filename is the
> same...
>
> I will, this morning, modify my php scripts to
> generate, from within php, a randomly generated
> kind-of-unique filename to see if it solves anything.
> I will also modify my app to send a bogus
> randomly-generated http-post parameter to trick the
> browser cache, and I will get back with my results...
>
> --
> Bruno Gendron
>
>
> --- Tim Sutton <sutton_t at giug.net> a écrit : > Hi
> >
> > I am having a problem with mapserver (redhat 7.1 +
> > apache module + php)
> > where the server http threads for mapserver requests
> > run away and hog
> > all the processor time. This has been happening
> > using the cvs version
> > and ms3.4. This has only suddenly started happeining
> > so I am not sure
> > why? Any Ideas?
> >
> > Also, I have another problem: If I browse around on
> > one mapserver app
> > on my server, then change the url in the same
> > browser session to
> > another mapserver app, I get images from the first
> > app seemingly
> > randomly dumped into the second. Has anyone
> > encountered this? Another
> > wierd thing it does is when I am zooming in to the
> > map, a very
> > enlarged version of the scalebar suddenly gets
> > rendered in the
> > mapwindow??
> >
> > Any thoughts on how to resolve these problems will
> > be greatly
> > appreciated.
> >
> > Regards
> >
> > Tim Sutton
> >
>
> ___________________________________________________________
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Courrier : http://courrier.yahoo.fr
>
More information about the MapServer-users
mailing list