开发者

Web Service client on java, multiple calls to Service.create() case memory leak

I found that the javax.xml.ws.Service开发者_Python百科.create() multiple calls case memory leak.

I solve that issue by reuse the result of this command.

I don't understand what was the reason of this memory leak, cause all the members that we declared is local (inside the one method).

public String callService()
{

  ...................

  QName serviceName = new QName( Url, "SERVICE_NAME"  );

  Service service = Service.create( serviceName );

  .......................

}

Any idea?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜