Welcome to WebSphere-World!

     Main Menu
· Home
· Topics
· Downloads
· Forums
· Submit News
· Top 10

     Other Modules
· Sign In / Your Account
· Members List
· Statistics
· Feedback
· Need a break? [Games]
· About this site / FAQs

     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
Nickname

Password

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

WebSphere-World: Performance

Search on This Topic:   
[ Go to Home | Select a New Topic ]

 Setting JAX-WS web services client timeout in WebSphere

PerformanceA 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 admin scripts for tuning

PerformanceWAS7 has a set of Performance Tuning related wsadmin scripts (as a template) to make it easier to set commonly changed settings (e.g. heap size, http keepalive, etc.)  for different stages (dev, perf test, prod).   See the PDF here for details.

Posted by billylo on Sunday, November 22 @ 13:22:43 EST (648 reads)
(Read More... | 434 bytes more | comments? | Score: 0)

 websphere 7 performance in windows

Performancegreensky 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

PerformanceThere is a new free tool which can monitor method response time and locks in real time.  It is called IBM Monitoring and Diagnostic Tools for Java - Health Center.  IBM has created a few youtube videos (overview, installation and usage) introducing this new tool. 

(works on Windows, Linux, AIX and zOS)

Posted by billylo on Sunday, June 14 @ 17:43:52 EDT (745 reads)
(Read More... | 1 comment | Score: 0)

 WAS Cache Monitor

Performancegr8shadow 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

PerformanceNew tool from IBM Hursley Lab on analyzing verbose gc output... see linked dW article for details.

Posted by billylo on Monday, October 15 @ 11:32:22 EDT (2165 reads)
(Read More... | 5 comments | Score: 0)

 Web Services maxConnection switch

PerformanceIn 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

PerformanceA new standalone tool that provides statistics on WAS 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

PerformanceThe 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

PerformanceHeapAnalyzer 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

PerformanceIBM 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

PerformanceIf 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)

 Performance enhancements in WAS 6.1

PerformanceWebCast on Performance Enhancements in WAS 6.1 (e.g. JDK changes, Web Services parser changes, etc.) on July 27

Posted by billylo on Friday, July 14 @ 08:47:14 EDT (1589 reads)
(Read More... | 5 comments | Score: 0)

 WebCast on Advanced Performance Tuning on WAS6

PerformanceIBM is hosting a WebCast on Advanced WAS6 tuning at 11am EST today (June 8)... link to the web conference

Call in /WebConference Password information is on this link.


Posted by billylo on Monday, June 05 @ 10:18:59 EDT (1149 reads)
(Read More... | 3 comments | Score: 0)

 IBM Thread and Monitor Dump Analyzer for Java Technology

PerformanceWebSurfinMurf 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
News for WebSpherians

RSS Data Feed

WeDoWebSphere.de

WebSphere.org

WebSphere Help, Tips and Tricks Blog

WebSphere Community Blog



     Links
IBM WAS Support FAQs

WebSphere e-Fixes FTP






WebSphere is a registered trademark of International Business Machines Corporation in the United States or other countries or both.
Please note that this site is a user-driven community site. It is not operated by IBM. Information is provided on an as-is basis and it may or may not be supported by IBM.

PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.21 Seconds