[Geoserver-users] Getting geoserver tiles to render faster

Hi I wandering if anyone can help me with a problem I'm having. I need to get
the tiles that geoserver renders to render faster than what it does at the
moment.

The data that is being used is from a postgresql database on all the layers.

There is the main base layer which has 14 tables in it, then I have have 5
other layers each with 1 table in. I need to add another layer but before I
do that I need to get these one to render quickly. I have made the base
layer render to a gif while the other go to png 24 or 8. I am using the WMS
because it all seemed to work well when I tested it the first time with a
smaller data section.

I am using open layers with my own test webpage to be able to show the
layers as the user can select them to show them if they want.

but I am having an issue with two of the layers and the base layer that
keeps showing pink tiles each time doesn't matter what the zoom level is. I
have even set zoom levels in the styles of the layers to be able to show
when it is important enough to show(when the detail is needed).

When I remove or hide the layer that causes the pink tiles then I can see
the base layer properly.
When there is a pink tile I can occasionally right click and say show image
and the layer that casued the pink tile somewhat shows but still has a pink
background instead of a transparent one to be able to see the base layer.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Getting-geoserver-tiles-to-render-faster-tp5082582.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

You might want to try using TMS/WMTS for tile layers. Ideally you could pre-seed them as well; even if not all levels then at least many of them which will improve things.
I’m noticing that my own tile rendering is rather slow, but I have a fairly complicated SLD which is probably impeding things.

Pink tiles are never good - is your data spatially indexed? I’m assuming they only appear after 30+ seconds and the error in Firefox is “timed out” or similar (I forget exactly what it is for a timeout) rather than it returning an XML error because there’s an issue with your layer/SLD.
Cheers,
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

···

On 9 October 2013 12:33, Ravyn <smrcoutts24@anonymised.com> wrote:

Hi I wandering if anyone can help me with a problem I’m having. I need to get
the tiles that geoserver renders to render faster than what it does at the
moment.

The data that is being used is from a postgresql database on all the layers.

There is the main base layer which has 14 tables in it, then I have have 5
other layers each with 1 table in. I need to add another layer but before I
do that I need to get these one to render quickly. I have made the base
layer render to a gif while the other go to png 24 or 8. I am using the WMS
because it all seemed to work well when I tested it the first time with a
smaller data section.

I am using open layers with my own test webpage to be able to show the
layers as the user can select them to show them if they want.

but I am having an issue with two of the layers and the base layer that
keeps showing pink tiles each time doesn’t matter what the zoom level is. I
have even set zoom levels in the styles of the layers to be able to show
when it is important enough to show(when the detail is needed).

When I remove or hide the layer that causes the pink tiles then I can see
the base layer properly.
When there is a pink tile I can occasionally right click and say show image
and the layer that casued the pink tile somewhat shows but still has a pink
background instead of a transparent one to be able to see the base layer.


View this message in context: http://osgeo-org.1560.x6.nabble.com/Getting-geoserver-tiles-to-render-faster-tp5082582.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thanks will give that a try.

I'll have to double checked if they are spatially indexed. I know the
postgres data tables do have indexes.
Strangely enough fire loads the tiles alot quicker then IE and does not get
any pink tiles. it does take it a little while to load but not to long
though.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Getting-geoserver-tiles-to-render-faster-tp5082582p5082607.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hello Ravyn,

Im fairly new to geoserver and openlayers, anyway:
Pink tiles are primarly a indication your script cant access the remote (WMS) resource and load its stuff. It can be some error on your code (client side); permission issues on geoserver side or (I guess), missconfigured layers. I personally had a bad experience with some layers that geoserver didnt recognized the source datum, what leaded to tomcat's crash e.g.

Ca you use layer groups? It avoids lots of overhead when rendering for the final result.
There are some considerations on installation instructions http://docs.geoserver.org/stable/en/user/production/java.html#production-java from there "JREs other than those released by Oracle may work correctly, but are generally not tested or supported. Users report GeoServer to be working with OpenJDK, but expect reductions in 2D rendering performance." I tested with both (just a quick test), and didnt noticed difference, but im running on a limited RAM VPS and maybe im getting other limitations obscuring such a test.
Network latency can be a issue and slow down things (well, this one is quite obvious)

The way you make your code for openlayers has big impact on speed, usually, code under developement is not same code for production. I got some nice tips about this subject in here http://ol-performance.appspot.com/

Theres a option in geoserver (at least on geoserver 2.4), under JAI setting about "enable fast renderer" or something, dont know the exact text but its there.. Well I didnt tested it yet.

I hope it helps

Regards,

--
Rodrigo Nascimento Hernandez
MinasAmbiente Eng. LTDA
http://www.minasambiente.com.br
+5531 2551-5452

Em 09/10/2013 08:33, Ravyn escreveu:

Hi I wandering if anyone can help me with a problem I'm having. I need to get
the tiles that geoserver renders to render faster than what it does at the
moment.

The data that is being used is from a postgresql database on all the layers.

There is the main base layer which has 14 tables in it, then I have have 5
other layers each with 1 table in. I need to add another layer but before I
do that I need to get these one to render quickly. I have made the base
layer render to a gif while the other go to png 24 or 8. I am using the WMS
because it all seemed to work well when I tested it the first time with a
smaller data section.

I am using open layers with my own test webpage to be able to show the
layers as the user can select them to show them if they want.

but I am having an issue with two of the layers and the base layer that
keeps showing pink tiles each time doesn't matter what the zoom level is. I
have even set zoom levels in the styles of the layers to be able to show
when it is important enough to show(when the detail is needed).

When I remove or hide the layer that causes the pink tiles then I can see
the base layer properly.
When there is a pink tile I can occasionally right click and say show image
and the layer that casued the pink tile somewhat shows but still has a pink
background instead of a transparent one to be able to see the base layer.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Getting-geoserver-tiles-to-render-faster-tp5082582.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users