[Geoserver-users] GWC Seeder thread gets into bad state
Geoserver users, I'm running into an odd situation, where when I run a cache seeding job, one of the threads hangs at -1 tiles completed. It looks like one of the GWC seeder threads gets stuck in a bad state, but still ends up back in the thread pool. Then, when another cache seed job picks up, that bad thread picks up some work but just sits there without processing any tiles. A thread in a poor state looks like the below one. Has anyone seen this issue before, and did you have a resolution? The issue appears to be tied to upgrading to larger hardware, so it could have to do with more opportunities for concurrency issues. We are running Tomcat 6 and Oracle Java 1.6.0_35 Best, Erek "GWC Seeder Thread-4" prio=10 tid=0x7f0ab84bb800 nid=0xaf3 waiting on condition [0x7f0ae688e000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <0xc5dbc8d0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:156) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987) at java.util.concurrent.ArrayBlockingQueue.put(ArrayBlockingQueue.java:257) at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:825) at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:490) at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:254) at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:126) at org.geoserver.wms.GetMap.executeInternal(GetMap.java:471) at org.geoserver.wms.GetMap.run(GetMap.java:208) at org.geoserver.wms.GetMap.run(GetMap.java:112) at org.geoserver.wms.DefaultWebMapService.getMap(DefaultWebMapService.java:353) at sun.reflect.GeneratedMethodAccessor237.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.geoserver.gwc.wms.CacheSeedingWebMapService.invoke(CacheSeedingWebMapService.java:61) at org.geoserver.gwc.wms.CacheSeedingWebMapService.invoke(CacheSeedingWebMapService.java:35) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.geoserver.gwc.wms.CachingWebMapService.invoke(CachingWebMapService.java:69) at org.geoserver.gwc.wms.CachingWebMapService.invoke(CachingWebMapService.java:50) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:54) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy30.getMap(Unknown Source) at sun.reflect.GeneratedMethodAccessor189.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:772) at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:272) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at org.geoserver.gwc.GWC.dispatchOwsRequest(GWC.java:1037) at org.geoserver.gwc.layer.GeoServerTileLayer.dispatchGetMap(GeoServerTileLayer.java:523) at org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:498) - locked <0xc5dc3b90> (a org.geowebcache.layer.GridLocObj) at org.geoserver.gwc.layer.GeoServerTileLayer.seedTile(GeoServerTileLayer.java:662) at org.geowebcache.seed.SeedTask.doActionInternal(SeedTask.java:129) at org.geowebcache.seed.GWCTask.doAction(GWCTask.java:76) at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:36) at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:25) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
Re: [Geoserver-users] can't start geoserver when GEOSERVER_DATA_DIR is defined
Ryan, there are essentially three ways to define the GEOSERVER_DATA_DIR (windows or linux does not matter): - web.xml - as a variable be it system or environment var(with export) - when you start the process java -D.. please have a look whether you have set something (in the former verwsion probably) that contradicts what you're trying to do in the web.xml Cheers Christian P.S. Doooh, it's all here: http://docs.geoserver.org/latest/en/user/datadirectory/data-dir-setting.html - Dr Christian Maul Project Manager Information Services Branch Department of Sustainability and Environment Level13, Marland House, 570 Bourke Street Melbourne 3000 PO Box 500, East Melbourne Vic 3002 Telephone:+61-3-8636 2325 Telefax: +61-3-8636 2813 -- View this message in context: http://osgeo-org.1560.n6.nabble.com/can-t-start-geoserver-when-GEOSERVER-DATA-DIR-is-defined-tp5011596p5011845.html Sent from the GeoServer - User mailing list archive at Nabble.com. -- WINDOWS 8 is here. Millions of people. Your app in 30 days. Visit The Windows 8 Center at Sourceforge for all your go to resources. http://windows8center.sourceforge.net/ join-generation-app-and-make-money-coding-fast/ ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Spatial Index not being Used in SQL Server Layer
___ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. ___ Thanks Andrea! Unfortunately, we're light on developers at our level of the business. Commercial support isn't put of the question, but the pragmatic approach would be to setup some SQL Server packages to export data to Postgres when the data's updated. It'll run faster there anyway! ;-) Regards, - HUGH SAALMANS GIS DEVELOPMENT MANAGER - GEOSPATIAL INFORMATION NATIONAL TECHNICAL PRICING T +61 (0)2 9292 3351 F +61 (0)2 9292 1120 E hugh.saalm...@iag.com.au PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL. - -Original Message- From: andrea.a...@gmail.com [mailto:andrea.a...@gmail.com] On Behalf Of Andrea Aime Sent: Friday, 26 October 2012 9:50 PM To: Hugh Saalmans Cc: geoserver-users@lists.sourceforge.net Subject: Re: [Geoserver-users] Spatial Index not being Used in SQL Server Layer On Fri, Oct 26, 2012 at 2:46 AM, Hugh Saalmans wrote: > So, assuming Microsoft aren't going to improve the way spatial indexes are > activated by queries: what's the status of Geoserver supporting SQL Server > spatial index hints when requesting the data? And does anyone have a > workaround, noting the comment above... There is no support for hints, and we'd have to modify the general JDBC handling code (which is based on a shared core + dialects per spatial database) to add support for hints. It's doable, but requires some work. Do you have your own Java developers? If so I can point you at the classes that might have to be modified. Otherwise you can look into commercial support and have someone do the work for you: http://geoserver.org/display/GEOS/Commercial+Support Cheers Andrea -- == Our support, Your Success! Visit http://opensdi.geo-solutions.it 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 --- ___ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. ___ -- WINDOWS 8 is here. Millions of people. Your app in 30 days. Visit The Windows 8 Center at Sourceforge for all your go to resources. http://windows8center.sourceforge.net/ join-generation-app-and-make-money-coding-fast/ ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Polygon label with graphic
Hiya, Check out the interiorPoint function as discussed in this thread http://permalink.gmane.org/gmane.comp.gis.geoserver.user/33677. Thus, you explicitly define a point geometry to be used to position the graphic and the label. Also, you can reference a graphic inside a TextSymbolizer, an approach typically used for creating highway shields: NAME 0.5 1 0 -10 #00 image/jpeg Regards, Edward Date: Sun, 28 Oct 2012 20:30:38 +0530 From: maney1...@gmail.com To: geoserver-users@lists.sourceforge.net Subject: [Geoserver-users] Polygon label with graphic Hi, I have a polygon layer, which I want to label it WITH a jpg file. I am NOT able to display jpg file and label along with it. Label and jpg is appearing at different place on the map.Is it possible to label polygon with jpg file ?á Following is the contents of sld file, á á á áá á á á á áá#c9dfaf á á á áá á á á áá á á á á áá#99 á á á á áá0 á á á áá á á áá á á áá á á á áá á á á áá á áá á áá á á áá á á ááimage/jpeg á áá á áá á á á á á ááá áá á á á á á á á á á áá á á á á á ááNAME á á á áá ááá á á á á á á á á á á á á á á á á á á á á á á á á0.5 á á á á á á á á1 á á á á á á á á á á á á á á á á á á á á á á0 á á á á á á á á-10 á á á á á á á á á á á á á á á á á á ááá á á á áá -- WINDOWS 8 is here. Millions of people. Your app in 30 days. Visit The Windows 8 Center at Sourceforge for all your go to resources. http://windows8center.sourceforge.net/ join-generation-app-and-make-money-coding-fast/ ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users -- WINDOWS 8 is here. Millions of people. Your app in 30 days. Visit The Windows 8 Center at Sourceforge for all your go to resources. http://windows8center.sourceforge.net/ join-generation-app-and-make-money-coding-fast/___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
[Geoserver-users] Polygon label with graphic
Hi, I have a polygon layer, which I want to label it WITH a jpg file. I am NOT able to display jpg file and label along with it. Label and jpg is appearing at different place on the map. Is it possible to label polygon with jpg file ? Following is the contents of sld file, #c9dfaf #99 0 image/jpeg NAME 0.5 1 0 -10 -- WINDOWS 8 is here. Millions of people. Your app in 30 days. Visit The Windows 8 Center at Sourceforge for all your go to resources. http://windows8center.sourceforge.net/ join-generation-app-and-make-money-coding-fast/___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users