On Fri, Feb 17, 2017 at 4:50 AM, Christopher DeMars <[email protected]>
wrote:
> Is there a way to get the actual query that geoserver is sending to the
> SQL server?
>
> I have a moderately complex parameterized SQL view. When I run it via
> geoserver, it pegs all my cores at 100%
>
Which process is pegging the cores? GeoServer or the database?
> then fails after minute or so with the following error posted to the log:
>
> org.geoserver.platform.ServiceException: This request used more time than
> allowed and has been forcefully stopped. Max rendering time is 60.0s
> at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(
> RenderedImageMapOutputFormat.java:571)
> ...
>
This is a default safety setting for the WMS, it assumes no one will be
there still waiting for the response after a minute.
You can go to the WMS panel in the admin console and change the value as
you see fit.
> When I fill in the parameters with what is being sent by the client and
> run the SQL directly on the DB, I get a full result in a second or so.
>
> I'm at a loss on how to further debug this. I can't find anyplace where
> the actual SQL sent to the DB is logged and can't find any documentation
> about the problem. Following the guidelines in the manual, I tried wrapping
> the query using "select * from (<the sql view>) [as] vtable" and running it
> on the DB and it finished as quickly as if it were not wrapped.
>
At a minimum a WMS request will be adding a bounding box filter to the
outer query where clause
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 di Montramito 3/A
55054 Massarosa (LU)
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.
-------------------------------------------------------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users