Re: [OpenMap Users] SHIS memory usage

From: Adam Russell <adam.russell@channing.harvard.edu>
Date: Tue Sep 30 2003 - 12:05:49 EDT

I am doing somehting very similar. However, rather than have multiple
SHISs with seperate properties files what I have done is use a fairly
basic properties file and anything extra is passed as a url parameter
which I pull out in the SHISHs httpRequest() method. This looks like

public void httpRequest(HttpRequestEvent e)
    throws java.io.IOException {
       
        /*
        Here we can switch the maps used by modifying the startup
properties based on URL parameters
         */
        Properties props_temp=(Properties)props.clone();
        String params=java.net.URLDecoder.decode(e.getRequest());
        Properties requestProperties = PropUtils.parsePropertyList(params);

Then I set the SHISHs properties accordingly:
        props.setProperty("propertyname",propVal);
 where props is already defined in the constructor.

This works very well for my purposes but then again I am only varying a
few properties.
Best Regards,
Adam Russell

Christian Weaves wrote:

> <problem>
>
> Hi,
>
> I'm using the SimpleHttpImageServer (SHIS) to generate an image, this
> image is constructed from the client's url request.
>
> On a single machine I have multiple SHIS's running, each has their own
> port, each uses its own openmap.properties file (different layers etc
> etc).
>
> My problem is SHIS memory usage. Each SHIS instance requires a large
> amount of memory (100Mb physical memory when processing). A simple
> calculation; running 10 SHIS's on 1 machine would require 1Gb of RAM.
>
> A solution would be to have only one SHIS running and direct all the
> requests through this one SHIS. Has this been done before OR can
> anyone think of another solution to this problem?
>
> Thank's for reading, thank's even more for replying!
>
> Chris..
>
> </problem>
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Sep 30 12:13:53 2003

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:36 EDT