系统集成WebSphere

~~websphere通过wsadmin获取heapdump出现read timout现象,已解!

aix5.3 for 64bit  websphere nd 6.1

通过wsadmin.sh获取heapdump的时候,生成heapdum(AdminControl invoke $jvm generateHeapDump)p近200M的时候出现read timout现象,哪位大侠有遇到过这种现象?
参与2

1同行回答

mfkqwyc86mfkqwyc86技术经理风哥
找了很久,终于找到一个文档,明天可以去试试了。Another quick post relating to developing script packages for IBM Workload Deployer, but also applicable to anyone using wsadmin. If one of your commands in a wsadmin script takes a long time to complete, you...显示全部
找了很久,终于找到一个文档,明天可以去试试了。


Another quick post relating to developing script packages for IBM Workload Deployer, but also applicable to anyone using wsadmin. If one of your commands in a wsadmin script takes a long time to complete, you might receive a timeout from wsadmin which looks something like this:

com.ibm.websphere.management.exception.ConnectorException
org.apache.soap.SOAPException: [SOAPException: faultCode=SOAP-ENV:Client; msg=Read timed out; targetException=java.net.SocketTimeoutException: Read timed out]
What is happening here is you're running into com.ibm.SOAP.requestTimeout, a property which is defined in /properties/soap.client.props and defaults to 180 seconds. The "easy" fix for this is to just directly edit the soap.client.props file directly, but if you're trying to create a self-contained script package or working with a clustered environment - this is a messy solution. Unfortunately, the answer is not as simple as passing -javaoption "-Dcom.ibm.SOAP.requestTimeout=1800" into wsadmin, but there is a lovely neat solution:
Copy the soap.client.props file from /properties and give it a new name such as mysoap.client.props.
Edit mysoap.client.props and update the value of com.ibm.SOAP.requestTimeout as required
Create a new Java properties file soap_override.props and enter the following line:
com.ibm.SOAP.ConfigURL=file:/mysoap.client.props

Pass soap_override.props into wsadmin using the -p option: wsadmin -p soap_override.props...
This will cause your mysoap.client.props to be loaded in preference to the version shipped with the product, whilst enabling you to keep your scripts self-contained and not reliant on any nasty bits of sed.收起
系统集成 · 2012-06-28
浏览1366

提问者

mfkqwyc86
技术经理风哥
擅长领域: 中间件服务器存储

相关问题

相关文章

问题状态

  • 发布时间:2012-06-07
  • 关注会员:1 人
  • 问题浏览:5082
  • 最近回答:2012-06-28
  • X社区推广