Hi,

I have a production instance with some heavy traffic on it and am
struggling to track down and fix a problematic SLD that (presumably)
was the cause of a large (~125 lines deep) stack trace the top of
which looks like:

2013-03-13 20:05:43,789 ERROR [renderer.label] - Error adding label to
the label cache
java.lang.IllegalArgumentException: alpha value out of range
at java.awt.AlphaComposite.<init>(AlphaComposite.java:618)
at java.awt.AlphaComposite.getInstance(AlphaComposite.java:688)
at 
org.geotools.renderer.style.SLDStyleFactory.getComposite(SLDStyleFactory.java:1024)

Obviously, there could be other ways to handle this specific exception
so that's not the point. Due to the number of requests coming in,
looking at the WMS KVP info was not helpful. Adding to the issue, when
I turned on 'default' logging, my log file rotated 3 times within
minutes (yes - 4M/min of logging output).

So two thoughts/ideas:
1) to prevent stack-trace induced DOS, allow truncating the stack
trace as an option - either a fixed length or upon a matching prefix
(javax.servlet.http.HttpServlet.service for example)
2) to help me find the problematic request/SLD/whatever, an option for
request-based logging - this might look like log messages being
collected and logged together (at the end of the response) with the
request info

To keep 2 from invading the code of geotools, perhaps it works by
pushing a specialized handler into the root logger that tracks
messages by thread local. At the end of the request, if
enabled/present, the handler spits out the collected message and the
request context.

Thanks,

--
Ian Schneider
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to