Hi everyone, After some more experimentation and looking at the server logs (we use IIS), I tracked this down to the MS_MAX_CGI_PARAMS value in cgiutil:
cgiutil.c: ... while( post_data[0] ) { if(m >= MS_MAX_CGI_PARAMS) { msIO_printf("Too many name/value pairs, aborting.\n"); exit(0); } ... Cgiutil.h: ... #define MS_MAX_CGI_PARAMS 100 ... So it looks like I'll have to recompile if I want to pass mapserv more than 100 variables at a time. Is this wise? I imagine the limit is there for a reason. My setup is already getting slow dealing with the amount of data I have in it. I was hoping to have each of my layers individually controllable, but maybe I'll have to stick with groups for the sake of performance. Instead of giving each layer its own variable, would it be a feasible workaround to combine all the active layer names into the single variable "layers"? Again, I'm wondering what performance would be like once I start passing hundreds of layer names in each cgi request. The template scripting to put everything into "layers" could also slow things down. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Morissette Sent: Thursday, August 21, 2008 1:18 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Maximum number of layers? There is no static limit on the number of layers in a map with MapServer 5.2. It must be something in one of your layers that causes MapServer to fail. Have a look at your Apache's error_log file, it may contain hints about the problem... you could also try enabling debug/logging and see if that triggers any useful info (see http://mapserver.gis.umn.edu/development/rfc/ms-rfc-28/) Daniel Emerson, Gabe wrote: > Hello all, > > > > I'm running into an error when I try to use more than 64 layers in my > map. I know the older versions of Mapserver could handle at least 100 > layers, and I've read posts from people who currently use up to several > hundred (I'm using v5.2.0) so I'm not sure what's going on. > > > > The error I get is: > > > > GCI Error > > The specified CGI application misbehaved by not returning a complete set > of HTTP headers. > > > > I have a couple hundred layers that I'd like to show. I can live with a > limit of 200-300 if necessary, but 64 seems rather on the low side. The > majority are points with pixmap symbols, but I also have some aerials, > road vectors, and polygon vectors. I've tried this with different > subsets of layers, so it doesn't seem to be any one layer or set of > layers in particular causing the problem. 64 seems to be the maximum I > can have enabled no matter what type they are. > > > > I initially thought this could be a problem with the rendering of the > pixmaps, but I've tried changing a few symbols to vectors with the same > result. I also considered that the legend was becoming too large, but > when I have 64 layers on, adding one more causes the same error even if > it's a layer with no legend entry. > > > > I am using POST to pass the layers from plain old HTML, GET acts the > same way. As far as I can tell there's no hard limit for the size/length > of text passed this way, and I'm not getting any size-exceeded errors. > > > > Does anyone have any suggestions on this? > > > > Thanks, > > > > -Gabe Emerson > > > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users