Hi guys,
resurrecting an old thread.
These slowdowns have two causes which can kick in at the same time to
make things very bad:
1> the current version of most plugins uses deferred loading via JAI
ImageRead, which at the time seemed a very good option to me. However,
this means opening up a file and leaving it open for a while, closing
it eventually when garbage collecting the stream references. With a
mosaic of thousand of small image this can clobber the GC and make it
freeze your machine (well, depending on wich type of GC in use
)
2> due to the same cause as outlined in point 1, we open up many files
at the same time and this can slowdonw machines or make them run out
of file descriptors
I am currently doing some work on the mosaic plugin to outcome these
problems. The first part of this work will end up on gt 2.5.x / gs
1.7.x the remaining will be performed on gt-trunk.
Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy
phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928
http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini
-------------------------------------------------------
On Fri, Mar 13, 2009 at 12:28 PM, GeoUser <blazrepnik@anonymised.com> wrote:
Yes, it's weird, we get no exceptions. All other layers work normally. Even
other mosaics (which are not as big as the problematic one).
Everything goes back to normal when i restart GS.
Ugo Taddei-2 wrote:
Andrea Aime wrote:
Ugo Taddei ha scritto:
Hello,
we have recently come across a problem with open files in gs (version
1.6.x) probably caused by the mosaic plugin. (Mosaic layers were the
only ones we had.)
We worked around by calling
http://localhost:8080/geoserver/admin/freeMemory.do
which garbage collected and closed the files. (Not sure it's a
geoserver problem.) OS was Linux.
The mosaic plugin keeps a cache of open files to get a very
noticeable perf. improvement as opposed of having to open the
files over and over.
That can hit with the max limit of open files that the OS
allows for, but it can be worked around by using, for example,
ulimit under linux.
Freeing the memory also has the side effect of forcing the
cache to be wiped out, and that closes the file descriptors
as well.
Thought, usually that issue results in hard exceptions about
not being able to open more files, not slowdowns?
Exactly that was the problem in our case (socket exception, I think),
not a slowdown. However, a slowdown can be caused by the garbage
collector being called.
With a mosaic with 80k tiles, you're bound to hit ulimit pretty soon,
when people use the wms a lot. Not?
Cheers
Andrea
Cheers,
Ugo
--
Ugo Taddei
Fraunhofer Institut Intelligente Analyse- und Informationssysteme (FhG
IAIS)
http://www.iais.fraunhofer.de
Department Knowledge Discovery - IAIS.KD -
Working Group Spatial Decision Support
http://www.iais.fraunhofer.de/kd.html
phone (+49)2241-14-2184 fax (+49)2241-14-2072
Schloss Birlinghoven, D-53754 Sankt Augustin, Germany
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
View this message in context: http://www.nabble.com/Geoserver-slowdowns-tp22471444p22493760.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users