On Tue, Oct 27, 2015 at 3:14 AM, eting123 <eting@anonymised.com> wrote:
Hi,
I have a similar question. My layers are loading much faster, about 46 per
second. But with ~30000 of them (and growing), it still takes like 10
minutes to start up Geoserver.
My questions are:
1. Is there a way to speed this up, such as not loading a layer until it's
needed?
The time is spent locating and parsing the XML files (not much, but if you
have tens of thousands, it's visible) and checking the layers are ok
(visible).
The JDBCConfig community module dodges both issues by backing stuff
in a database, loading it on demand, and not checking if a layer is actually
usable.
For the core version we could just do the second thing, not test the layers,
that would have to go with caps document generation set to be tolerant
to misconfigured layers (the option is there).
We just need someone to resource this work:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
2. We have been storing our Raster (GeoTIFF) images on the file system.
Would it have been faster if we store them in a database somehow? Would
this
be the more recommended approach?
Unsure, I have no experience on loading rasters in the database (something
that even Paul Ramsey discourages in his PostGIS presentations though, that
is,
loading them to do display, as opposed to load them to do analysis, which is
the sweet spot of the postgis raster support).
3. During the Layer loading process, we are not able to do anything with
Geoserver (such as sending a GET request for a layer already loaded). Is
this the expected behavior?
Yes, it is expected behavior, loading the catalog is part of the Spring
context
startup, and no request can be served until the catalog is fully loaded
(with
the deafult in memory version).
4. I noticed that after Geoserver successfully loaded all the layers, it
then goes through a 'Depersisting' process for some of the layers:
2015-10-26 18:30:30,927 DEBUG [org.geoserver.gwc.layer] - Depersisting
GeoServerTileLayerInfo from
C:\dev\apps\geoserver-2.2.5\data_dir\gwc-layers\LayerGroupInfoImpl--10d71042_1509744aecd_-7ff7.xml
2015-10-26 18:30:30,939 DEBUG [org.geoserver.gwc.layer] - Loaded tile layer
'WV_27893'
which took another few minutes to complete. I'm wondering what does
'Depersisting' do and is there a way to turn it off?
It's GWC, don't know why it's happening without checking the code and doing
some tests,
a GWC developer might have to chime in to comment on that
Cheers
Andrea
--
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.
-------------------------------------------------------