开发者

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

开发者 https://www.devze.com 2023-01-05 09:33 出处:网络
I found that the javax.xml.ws.Service开发者_Python百科.create() multiple calls 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

精彩评论

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

关注公众号