On Sat, Feb 14, 2015 at 8:05 PM, Jody Garnett <jody.garn...@gmail.com>
wrote:

> If there is activity in this space I would be interest in setting up a
> multi threaded renderer and retiring the multithreaded renderer in uDig
> (but in the context of GeoServer):
>

I'm copying and pasting an answer I gave to someone that recently asked
about a multithreaded renderer uDig style,
that is, layer parallel:

No, there is no way to render in parallel multiple layers in the same
> request. The renderer actually has two threads, one that reads the data,
> simplifies it, locates the right style,
> and a second one that only does the painting of simplified geometries plus
> styles.
> That said, the problem has been analyzed in the past, and the bottleneck
> is not in reading the data, but in rendering it, the Oracle JDK basically
> does not allow two shapes to be painted concurrently at the whole JVM
> level.
> So the first thing I suggest is to either use OpenJDK (available on Linux
> only) or to install the Marlin renderer in your JDK:
>
> http://www.geo-solutions.it/blog/developerss-corner-achieving-extreme-geoserver-scalability-with-the-new-marlin-vector-rasterizer/
>

As a historical notice, a full rendering parallelization has been attempted
> in uDig project some years ago (uDig uses the same underlying library as
> GeoServer, in particular, GeoTools, to read and render) with bad results,
> the tool was making the whole operating system unusable by trying to read
> too many files in parallel, and/or putting the database on its knees due
> too many concurrent queries running (think of it, what if each request uses
> 10 connections, and you have 50 concurrent connections). We solved that by
> limiting the amount of parallel execution so that each resource would not
> have too many threads hitting it.
> Moreover, to support that, one would have to allocate N drawing surfaces,
> one per layer, which means the memory requirements for a single WMS request
> would be multiplied by the number of layers in the request, which is again
> not scalable (a WMS client can put a list of layers as long as it desires
> in a WMS request, there are no formal limits besides the length of the URL
> itself).


(the "tool" was uDig btw)

Long story short, a layer parallel renderer seems suitable for desktop
usage (where you have one request at a time, and 8-16GB of memory to play
with),
but if you want to go server side, you either have relatively low load, or
a truckload of memory (and once you go there, you need to change JVM, and
probably use some non free one like Azul).
And I have to contrast this with people that keep on asking me if a 2/4GB
VMWare machine/Amazon cloud instance is enough to run GeoServer ;-)

And you first need to make parallel painting go fast, by adding Marlin into
the mix, but this is more a problem of being willing/authorized.

Do you have any more experience/observation on the subject?

Cheers
Andrea

-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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.

-------------------------------------------------------
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to