From: Mehdi E. <es...@cm...> - 2004-02-25 18:34:01
|
when I done the above modifications (I replace SPEED by FILE in web.xml) I obtain this Service Exception : UNCAUGHT EXCEPTION : java.lang.OutOfMemoryError. ----- Original Message ----- From: "Jody Garnett" <jga...@re...> To: "Chris Holmes" <ch...@op...> Cc: "Mehdi ESSID" <es...@cm...>; <geo...@li...> Sent: Wednesday, February 25, 2004 7:20 PM Subject: Re: [Geoserver-devel] Re: Out of memory bug > I could not help but notice that this problem was to do with > AbstractService and may be addressed with the ServiceStratagy used by > GeoServer. > > Quickly: > BUFFER > - stores the entire response in memory first, before sending it off to > the user (may run out of memory) > > SPEED > - outputs directly to the response (and cannot recover in the case of an > error) > > FILE > - outputs to the local filesystem first, before sending it off to the user > > I imagine you are using SPEED right now as it appears to be the default. > > The AbstractService.init is used to set this sort of thing up, currently > it checks: > String stgyKey = context.getInitParameter("serviceStratagy"); > > For one of BUFFER, SPEED, FILE. > > So you can change this in your web.xml file(near the top): > > > <web-app> > > <display-name>GeoServer</display-name> > > <description>Web Mapping and Feature Services</description> > > <context-param> > > <param-name>serviceStratagy</param-name> > > <param-value>FILE</param-value> > > </context-param> > > The current value if SPEED. > > Hope this helps...or I could be completely wrong. > > Jody > > Chris Holmes wrote: > > >>org.vfny.geoserver.servlets.AbstractService.send(AbstractService.java:446) > >> at > >>org.vfny.geoserver.servlets.AbstractService.sendError(AbstractService.java :4 > >>87) > >> at > >>org.vfny.geoserver.servlets.AbstractService.doService(AbstractService.java :3 > >>63) > >> at > >> > >> > > > |