Re: [OpenMap Users] SHIS memory usage

From: Christian Weaves <christian.weaves@robresint.co.uk>
Date: Thu Oct 02 2003 - 04:00:06 EDT

Thanks for your help Guys,

I've not solved the problem yet but youve given me plenty of food for
thought!

Chris.

Adam Russell wrote:

> 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"]

-- 
Robertson Research International             Telephone: +44+ (0)1492 581811
Tyn-y-coed Site                                    Fax: +44+ (0)1492 583416
Llanrhos                                         
Llandudno                                               
North Wales
UK   LL30 1SA                                             
General Email: info@robresint.co.uk          Encryption Type Acceptable: uuencoded 
World Wide Website: www.robresint.co.uk
 ********************************************************************
 * This email may contain  confidential and  privileged information *
 * intended solely for the individual or organisation to whom it is *
 * addressed. If the reader is not the  intended  addressee, or the *
 * employee  or agent responsible  to deliver  it to the addressee, *
 * you are hereby notified that any  dissemination, distribution or * 
 * copying is strictly prohibited.  If you have received this email *
 * in error, please notify the  sender and either destroy the email * 
 * or return it to info@robresint.co.uk                             *
 * Please note this email is not intended to create legal relations.*
 ********************************************************************
--
[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 Thu Oct 2 04:02:37 2003

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