Dear Carlo,
 Thank you for the quick response...The following is the code what I am
using with openlayers+geoserver.

----------------------------------------------------------------------------------------------------------------------------------------------------
var map;
var mapUrl="http://localhost:8080/geoserver/wms";;
var SRID="EPSG:4326";
var controls={
'pzb': new OpenLayers.Control.PanZoomBar(),
'zoomOut':new OpenLayers.Control.ZoomBox({out:true}),
'zoomIn':new OpenLayers.Control.ZoomBox({out:false}),
'zoomToMaxExtent':new
OpenLayers.Control.ZoomToMaxExtent({type:OpenLayers.Control.TYPE_BUTTON}),
'dragPan':new OpenLayers.Control.Navigation(),
'nav': new OpenLayers.Control.NavigationHistory(),
'ls' : new OpenLayers.Control.LayerSwitcher(),
'overview':new OpenLayers.Control.OverviewMap(),
'mp': new OpenLayers.Control.MousePosition(),
'scale':new OpenLayers.Control.ScaleLine(),
'resolution': new OpenLayers.Control.Scale()
};

function init(){
var bounds = new OpenLayers.Bounds(81.511334, 24.823617, 82.354004,
25.751459);
var mapOptions = {
controls:[],
maxExtent: bounds,
numZoomLevels: 18,
maxResolution:'auto',
units: 'degrees'
};
map = new OpenLayers.Map('map_area', mapOptions );
 var wms=new OpenLayers.Layer.WMS(
"India", mapUrl, {
srs: SRID,
LAYERS: 'Sample_layer',
STYLES: '',
transparent:true,
format: 'image/png',
tiled: true,
tilesOrigin : map.maxExtent.left + ',' + map.maxExtent.bottom
},
{
buffer: 0,
displayOutsideMaxExtent: true,
visibility: true,
isBaseLayer: true
}
);
map.addLayer(wms);
addOverlays();
 for(var key in controls) {
map.addControl(controls[key]);
}
map.zoomToMaxExtent();
}

function addOverlays(){
var overlays = [
new OpenLayers.Layer.WMS(
           "Overlay 1", mapUrl,
           {
srs: SRID,
LAYERS: 'Overlay1',
transparent: true
           },{
singleTile: true,
ratio: 1,
displayOutsideMaxExtent: true,
visibility: true,
isBaseLayer: false
}
),new OpenLayers.Layer.WMS(
           "Overlay 2", mapUrl,
           {
srs: SRID,
LAYERS: 'Overlay2',
transparent: true
           },{
singleTile: true,
ratio: 1,
displayOutsideMaxExtent: true,
visibility: true,
isBaseLayer: false
}
),new OpenLayers.Layer.WMS(
           "Overlay 3", mapUrl,
           {
srs: SRID,
LAYERS: 'Overlay3',
transparent: true
           },{
singleTile: true,
ratio: 1,
displayOutsideMaxExtent: true,
visibility: true,
isBaseLayer: false
}
),
.................
.............
.........
new OpenLayers.Layer.WMS(
           "Overlay 100", mapUrl,
           {
srs: SRID,
LAYERS: 'Overlay100',
transparent: true
           },{
singleTile: true,
ratio: 1,
displayOutsideMaxExtent: true,
visibility: true,
isBaseLayer: false
}
)
];
map.addLayers(overlays);
}
----------------------------------------------------------------------------------------------------------------------------------------------------
I am using "sample map" as the base layer and 100 overlays(single tile).
Total no. of request is around 125 to geoserver on zoom/pan for one time.
This map will be used by n number of users.

*These are my problems....*
1. Geoserver is not responding properly
2. Responses is time consuming

*My queries.....*
1. How to control the above mentioned requests...?
2. Right now I am accessing GeoWebCache from this URL
*"../geoserver/gwc/service/wms".
*How to access cached tiles directly...?
3. How to configure Geoserver for production environment. I had a glance in
documentation of geoserver about configuring. Is that enough or some more
modification is needed ?
 -


*Regards,*

*S. Thiruvikraman M.Sc.,*

*Ph: +919746149212 , +919003419957*

* <https://www.facebook.com/vikramgeek>
<http://www.linkedin.com/in/vikramangis>*



On Mon, Jan 27, 2014 at 7:26 PM, carlo cancellieri <
[email protected]> wrote:

> Hi,
>  probably you may:
> 0. be sure that you are caching tiles on the client side (this should be
> transparent using get requests)
> 1. start caching data on the server side:
> http://docs.geoserver.org/latest/en/user/geowebcache/using.html
> 2. optimize datasources (optimizing rasters, simplifying geometries, etc)
> 3. optimize queries (using tiling, using png8, etc)
> 4. clusterize geoservers
>
> If you need more details, please post some of the query you are using.
> Cheers,
> Carlo
>
>
> 2014-01-27 Vikram Santhanam <[email protected]>
>
>> Dear Sir/Madam,
>>              How to handle requests for Geoserver and make the geoserver
>> to work faster. I am using layer switcher. For each layer it is taking more
>> requests. how to control that. ?
>>
>> *Regards,*
>>
>>  *S. Thiruvikraman M.Sc.,*
>>
>> *Ph: +919746149212 <%2B919746149212> , +919003419957 <%2B919003419957> *
>>
>> * <https://www.facebook.com/vikramgeek>
>> <http://www.linkedin.com/in/vikramangis> *
>>
>>
>>
>> ------------------------------------------------------------------------------
>> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
>> Learn Why More Businesses Are Choosing CenturyLink Cloud For
>> Critical Workloads, Development Environments & Everything In Between.
>> Get a Quote or Start a Free Trial Today.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Geoserver-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>>
>
>
> --
> ==
> Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
> information.
> ==
>
> Dott. Carlo Cancellieri
> @cancellieric
> Software Engineer
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax:   +39 0584 1660272
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to