Are you linking to the openmap jar or making requests to the openmap simplehttpserver service? If you run openmap as a seperate service (daemon), and make requests like http://yourserver.com/openmap?request=map&lat=32.0&lon=-95.0&proj=merc&width=500&height=500&scale=6000000&layers=graticule,politicalCombo and then call that service from your servlet it will scream. Run the servlet and the daemon on the same machine and it will be even faster. Then, if you want to render geometry on the map other than your default layers, you can add the image returned from the openmap service to a omgraphiclist along with other omgraphics you create in your servlet and then render that list and return the image to your web page. An example of this would be to add a user defined rectangle on the map at run time, like an AOI or area of interest. I posted an example of this code at http://openmap.bbn.com/mailArchives/openmap-users/2003-05/1553.html . It is really fast and blows away the performance of IMS.
Martin
-----Original Message-----
From: Keith Alphonso [mailto:kalphonso@diamonddata.com]
Sent: Fri 5/28/2004 3:37 PM
To: openmap-users@bbn.com
Cc:
Subject: [OpenMap Users] Openmap Servlet Performance
I have a servlet I've written using OpenMap and I'm wondering about
enhancing its performance.
Currently it works by re-generating everything for every request. I was
thinking about caching the map to enhance performance, but I'm wondering if
this would help much (especially at the high memory costs involved).
Has anyone done this? I only have to regenerate if something has changed
because I use the browser's caching if nothing changes (I use a version # in
the url). If things have changed anyway (projection, adding layers, etc.)
how much would it help to keep the map around on the server?
Thanks for any advice/info.
--
[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 Sat May 29 00:07:56 2004
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:38 EDT