java - Concurrency when calling webservice clients -
i have webapp use webservice clients data displays.
when load not high app work fine.
unfortunately when load bigger servers become overloaded because of following stucked threads...
any idea might cause ?
]", more configured time (stuckthreadmaxtime) of "600" seconds. stack trace: com.sun.org.apache.xml.internal.resolver.catalog.parsecatalog(catalog.java:660) com.sun.xml.ws.util.xml.xmlutil.createdefaultcatalogresolver(xmlutil.java:251) com.sun.xml.ws.client.wsservicedelegate.parsewsdl(wsservicedelegate.java:265) com.sun.xml.ws.client.wsservicedelegate.<init>(wsservicedelegate.java:228) weblogic.wsee.jaxws.spi.wlsservicedelegate.<init>(wlsservicedelegate.java:52) weblogic.wsee.jaxws.spi.wlsprovider$servicedelegate.<init>(wlsprovider.java:371) weblogic.wsee.jaxws.spi.wlsprovider.createservicedelegate(wlsprovider.java:79) weblogic.wsee.jaxws.spi.wlsprovider.createservicedelegate(wlsprovider.java:62) javax.xml.ws.service.<init>(service.java:56)
it looks service client timing out parsing wsdl.
ensure wsdl , dependencies imports being loaded locally , not being fetched on network service host. can provide path local wsdl via constructor takes url; still have inspect wsdl ensure schemas imports referred relative uris.
also ensure reuse service
instances making them application scope. since parsing wsdl expensive, want seldom possible. check jax-ws implementation's service
threadsafe (i'm not aware of implementation aren't pays check). ports services create vary - in implementations, these threadsafe; in aren't.
Comments
Post a Comment