 |
| Main Menu |  |
| Other Modules |  |
| Who's Online |  |
There are currently, guest(s) and member(s) that are online.
You are Anonymous user. You can register for free by clicking here | |
| User's Login |  |
|
Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name. | |
| GameHighScores |  |
|  |
 | Setting JAX-WS web services client timeout in WebSphere |
A few of my teammates find it difficult to
get this working properly. I hope this write-up and example code below
would help you. It's actually not too hard.
What can I adjust?
There are
three timeouts you can set:
1. CONNECTION_TIMEOUT: The amount of
time WebSphere JAX-WS client would wait to establish a http/https
connection (default is 180 seconds) 2. WRITE_TIMEOUT: The amount of
time the client would wait to finish sending the request (default is
300 seconds) 3. RESPONSE_TIMEOUT: The amount of time the client
would wait to finish receiving the response (default is 300 seconds)
How can I set them in my application code?
You
can adjust them by setting properties on the requestContext. See code
sample below.
HelloWorldSOAPProxy
proxy = new HelloWorldSOAPProxy(); // generated proxy class
Map requestContext =
((BindingProvider)proxy._getDescriptor().getProxy()).getRequestContext();
requestContext.put(com.ibm.wsspi.webservices.Constants.CONNECTION_TIMEOUT_PROPERTY
, "1"); requestContext.put(com.ibm.wsspi.webservices.Constants.WRITE_TIMEOUT_PROPERTY
, "2"); requestContext.put(com.ibm.wsspi.webservices.Constants.RESPONSE_TIMEOUT_PROPERTY
, "40");
proxy.sayHello("Billy");
Note: The property value in the Map must be a
String; and in seconds.
My code
does not work in my environment. How do I troubleshoot it?
Use
the WebSphere AdminConsole to enable this trace specification (on the
client side):
"com.ibm.ws.websvcs.*=all=enabled:org.apache.axis2.*=all=enabled"
You
should see something like this in the trace (if you set the response
timeout).
[04/08/2009
19:28:37:937 EDT] 00000000 >
ibm.ws.websvcs.transport.http.SOAPOverHTTPSender
prepareHttpRequestHeaders():
com.ibm.ws.websvcs.transport.http.SOAPOverHTTPSender@33233323 Entry [04/08/2009 19:28:37:953 EDT] 00000000 3
ibm.ws.websvcs.transport.common.ConfigFromJAX_WS
...ConfigFromJAX_WS.getReadTimeout() : 40 [04/08/2009 19:28:37:953 EDT] 00000000 3
ibm.ws.websvcs.transport.http.SOAPOverHTTPSender syncTimeoutValue 40000
ms for http
Additional
tip:
If you are using a standalone Java client
(outside of the J2EE container), you can set the WebSphere traceSpec
using system properties.
System.setProperty("java.util.logging.manager","com.ibm.ws.bootstrap.WsLogManager"); System.setProperty("traceSettingsFile","MyTraceSettings.properties"); System.setProperty("java.util.logging.configureByServer","true");
and
put your traceSpec in a file (e.g. MyTraceSettings.properties) on the
working directory.
traceFileName=c:/temp/trace.log com.ibm.ws.websvcs.*=all=enabled:org.apache.axis2.*=all=enabled
|
|
|
Posted by billylo on Sunday, March 28 @ 16:43:04 EDT (1101 reads)
(comments? | Score: 0)
|
|
 | websphere 7 performance in windows |
greensky writes "Check out this pdf on websphere 7 performance benchmark http://go.microsoft.com/?linkid=9664195 and the site http://www.websphereloveswindows.com/ "
|
|
|
Posted by billylo on Friday, June 26 @ 07:48:33 EDT (897 reads)
(Read More... | 1 comment | Score: 0)
|
|
 | My WebSphere application is running slow, but I can't figure out what's wrong |
|
|
Posted by billylo on Sunday, June 14 @ 17:43:52 EDT (745 reads)
(Read More... | 1 comment | Score: 0)
|
|
 | WAS Cache Monitor |
gr8shadow writes "The IBM Extended Cache Monitor for IBM WebSphere Application Server
provides you with functionality not available with the cache monitor
that is supplied with WebSphere Application Server."
|
|
|
Posted by billylo on Monday, April 07 @ 08:24:15 EDT (1052 reads)
(comments? | Score: 0)
|
|
 | New tool for analyzing verbose gc output |
|
|
Posted by billylo on Monday, October 15 @ 11:32:22 EDT (2165 reads)
(Read More... | 5 comments | Score: 0)
|
|
 | Web Services maxConnection switch |
In WAS 6.1, you can control the maximum number of outbound web services connections using a property. It was limited to 5 to 25. If you need a higher number, you can apply this fix from IBM support.
|
|
|
Posted by billylo on Tuesday, October 09 @ 09:32:13 EDT (1354 reads)
(Read More... | 1 comment | Score: 0)
|
|
 | New tool that measures SI-Bus performance |
|
|
Posted by billylo on Wednesday, January 31 @ 07:32:27 EST (1252 reads)
(comments? | Score: 0)
|
|
 | C/C++ and Java Performance Analysis Toolkit |
The Performance Inspector for
Windows package is a suite of performance analysis tools that can be used to identify
performance issues in C/C++ programs and Java applications. It
generates a detailed analysis with graphical and textual views to improve the
performance of developing products in a way that’s less intrusive than most analysis
tools.
|
|
|
Posted by billylo on Friday, October 06 @ 11:35:22 EDT (1148 reads)
(Read More... | 1 comment | Score: 0)
|
|
 | HeapAnalyzer v1.4.2 for Java on Linux Released |
HeapAnalyzer version 1.4.2, a
graphical tool for discovery of Java heap leaks, is an update that fixes
defects in the Java profiler parser. Through use of a heuristic search engine
and analysis of heap dumps, it can reduce the amount of time spent on digging
through code in search of leaks in Java applications on Unix and Windows.
|
|
|
Posted by billylo on Friday, October 06 @ 11:33:08 EDT (977 reads)
(comments? | Score: 0)
|
|
 | Eclipse Real-Time JVM Analysis Tool for Linux |
IBM TuningFork:
Visualization of Real-Time Systems is an Eclipse-based visualization and
performance analysis tool for real-time applications with support for Java,
C++, Real-time JVM, and Linux. TuningFork enhances
data exploration and performance analysis by coupling a powerful
data-processing mechanism with a high-performing user interface.
|
|
|
Posted by billylo on Friday, October 06 @ 11:28:46 EDT (914 reads)
(comments? | Score: 0)
|
|
 | Overhead for using various performance metrics in WebSphere |
If
you enable PMI, JVMPI, ARM or request metrics to monitor WebSphere
performance, there is an overhead you need to incur. This
technote covers an estimated overhead in terms of CPU consumption for different settings.
|
|
|
Posted by billylo on Friday, October 06 @ 11:27:26 EDT (1266 reads)
(Read More... | 1 comment | Score: 0)
|
|
 | IBM Thread and Monitor Dump Analyzer for Java Technology |
WebSurfinMurf writes "NEW tool released April 5th to assist with analyzing Java CORE files
"This technology analyzes each thread information and provides diagnostic information, such as current thread information, the signal that caused the javacore, Java heap information (maximum Java heap size, initial Java heap size, garbage collector counter, allocation failure counter, free Java heap size, and allocated Java heap size), number of runnable threads, total number of threads, number of monitors locked, and deadlock information.
In addition, IBM Thread and Monitor Dump Analyzer for Java Technology provides the recommended size of the Java heap cluster (applicable only to IBM SDK 1.4.2 and 1.3.1 SR7 or above) based on the heuristic analysis engine.
IBM Thread and Monitor Dump Analyzer for Java Technology compares each javacore and provides process ID information for threads, time stamp of the first javacore, time stamp of the last javacore, number of garbage collections per minute, number of allocation failures per minute, time between the first javacore and the last javacore, number of hang suspects, and list of hang suspects.
IBM Thread and Monitor Dump Analyzer for Java Technology also compares all monitor information in javacore and detects deadlock and resource contention or monitor bottlenecks, if there are any. "
Tool can be downloaded at:
http://www.alphaworks.ibm.com/tech/jca
"
|
|
|
Posted by billylo on Tuesday, May 02 @ 22:32:54 EDT (7588 reads)
(Read More... | 3 comments | Score: 5)
|
|
|  |
| Search Box |  |
| Related Sites |  |
| Links |  |
| 
|