首页 / 浏览问题 / WebGIS / 问题详情
用WMS方式请求iServer发布的地图服务一直超时
6EXP 2024年08月29日
用WMS方式请求iServer发布的地图服务一直超时
2024-8-29 17:16:58 - ERROR - 调用WMS接口的getMap方法发生异常 java.lang.IllegalStateException: Semaphore try acquire map fail in 15 second. at com.supermap.services.providers.ConcurrentCountLimiter.a(SourceFile:59) ~[iserver-all-11.1.0-22312.jar:11.1.0-SNAPSHOT] at com.supermap.services.providers.MapPool.getMap(SourceFile:53) ~[iserver-all-11.1.0-22312.jar:11.1.0-SNAPSHOT] at com.supermap.services.providers.InnerUGCMapProvider.a(SourceFile:1405) ~[iserver-all-11.1.0-22312.jar:11.1.0-SNAPSHOT] at com.supermap.services.providers.InnerUGCMapProvider.getMapImage(SourceFile:394) ~[iserver-all-11.1.0-22312.jar:11.1.0-SNAPSHOT] at com.supermap.services.providers.UGCMapProvider.getMapImage(SourceFile:190) ~[iserver-all-11.1.0-22312.jar:11.1.0-SNAPSHOT] at jdk.internal.reflect.GeneratedMethodAccessor209.invoke(Unknown Source) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?] at com.supermap.server.impl.PerformanceProxyFactory$PerformanceProxyHandler.invoke(SourceFile:216) ~[server-hosts-11.1.0-22312.jar:11.1.0-SNAPSHOT] at com.sun.proxy.$Proxy52.getMapImage(Unknown Source) ~[?:?] at com.supermap.services.components.impl.MapImpl.a(SourceFile:2092) ~[service-model-11.1.0-22312.jar:?] at com.supermap.services.components.impl.MapImpl.getMapImage(SourceFile:336) ~[service-model-11.1.0-22312.jar:?] at com.supermap.services.components.impl.MapImpl.viewByBounds(SourceFile:996) ~[service-model-11.1.0-22312.jar:?] at com.supermap.services.wms.DefaultWMS.a(SourceFile:1259) ~[iserver-all-11.1.0-22312.jar:?] at com.supermap.services.wms.DefaultWMS.getMap(SourceFile:949) ~[iserver-all-11.1.0-22312.jar:?] at com.supermap.services.wms.WMSServlet.outputMap(SourceFile:825) ~[iserver-all-11.1.0-22312.jar:?] at com.supermap.services.wms.WMSServlet.service(SourceFile:544) ~[iserver-all-11.1.0-22312.jar:?] at javax.servlet.http.HttpServlet.service(HttpServlet.java:623) ~[servlet-api.jar:4.0.FR] at com.supermap.server.impl.DefaultServiceInstance.service(SourceFile:249) ~[server-hosts-11.1.0-22312.jar:11.1.0-SNAPSHOT] at com.supermap.server.api.ServiceInstance.service(SourceFile:79) ~[server-host-model-11.1.0-22312.jar:11.1.0-SNAPSHOT] at com.supermap.server.host.webapp.handlers.WebAppRequestDispatcher.forward(SourceFile:81) ~[server-host-model-11.1.0-22312.jar:11.1.0-SNAPSHOT] at com.supermap.server.host.webapp.handlers.ServiceDispatcherHandler$ResponseCacheFailedHandler.handle(SourceFile:846) ~[server-hosts-11.1.0-22312.jar:11.1.0-SNAPSHOT] at com.supermap.server.host.webapp.handlers.ServiceDispatcherHandler.handle(SourceFile:422) ~[server-hosts-11.1.0-22312.jar:11.1.0-SNAPSHOT] at com.supermap.server.host.webapp.handlers.AbstractHandler.process(SourceFile:205) ~[server-host-model-11.1.0-22312.jar:11.1.0-SNAPSHOT] at com.supermap.server.host.webapp.handlers.AbstractHandler.a(SourceFile:234) ~[server-host-model-11.1.0-22312.jar:11.1.0-SNAPSHOT] at com.supermap.server.host.webapp.handlers.AbstractHandler.invokeLowerPriorityHandlers(SourceFile:221) ~[server-host-model-11.1.0-22312.jar:11.1.0-SNAPSHOT] at com.supermap.server.host.webapp.handlers.AbstractHandler.process(SourceFile:207) ~[server-host-model-11.1.0-22312.jar:11.1.0-SNAPSHOT] at com.supermap.server.host.webapp.handlers.BasicHandler.process(SourceFile:340) ~[server-hosts-11.1.0-22312.jar:11.1.0-SNAPSHOT] at com.supermap.server.host.webapp.ApplicationFilter.doFilter(SourceFile:254) ~[server-hosts-11.1.0-22312.jar:11.1.0-SNAPSHOT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178) ~[catalina.jar:9.0.76] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153) ~[catalina.jar:9.0.76] at com.supermap.services.filter.TunnelFilter.doFilter(SourceFile:42) ~[iserver-all-11.1.0-22312.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178) ~[catalina.jar:9.0.76] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153) ~[catalina.jar:9.0.76] at org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:328) ~[catalina.jar:9.0.76] at org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:158) ~[catalina.jar:9.0.76] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178) ~[catalina.jar:9.0.76] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153) ~[catalina.jar:9.0.76] at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:129) ~[catalina.jar:9.0.76] at org.apache.catalina.core.Applica

1个回答

您的iServer发布的WMS服务,在打开xml界面时,是否有图层的相关信息?比如这样:https://iserver.supermap.io/iserver/services/map-china400/wms111/China

还是您前端加载WMS服务时,请求没有报错,但是界面显示为空?

1,006EXP 2024年08月30日
前端请求没有报错,一直加载,双击加载的url就直接能访问
推测可能是tomcat内存占用过高,由于WMS服务是动态出图,对于内存的需求也较大,当资源不足时就导致了WMS的请求无法正常响应。

可以将适当调整iServer的JVM的值,JVM的修改请前往【iServer安装目录\bin\Catalina.bat】修改此处的Xms和Xmx即可。推荐设置为系统内存的1/4,可以根据需求适当增减。
...