- 浏览: 187179 次
- 性别:
- 来自: 深圳
文章分类
最新评论
-
hayoouch:
很好,赞!!!
SSL双向认证Java实现 Tomcat篇 -
springdata:
springmvc相关demo源代码下载地址:http://w ...
在spring MVC中配置多个视图 -
冷静:
javax.net.ssl.SSLException: hos ...
SSL双向认证Java实现 Tomcat篇 -
浅绘墨漠:
你好。按照你的方法进行了试验,出现的错误就是hostname ...
SSL双向认证Java实现 Tomcat篇 -
fpplzw:
...
通过Filter实现二级域名和URLRewrite
Generic Hang
Problem Description A server hang is suspected when:
|
Problem Troubleshooting Please note that not all of the following items would need to be done. Some issues can be solved by only following a few of the items.Quick Links:
Why does the problem occur? |
Topic
|
Pattern Name
|
Link
|
RMI, RJVM responses – all threads tied up waiting for RJVM, RMI responses. | EJB_RMI Server Hang | |
Application Deadlock – thread locks resource1 then waits for lock for resource2. Another thread locks resource2 and then waits for lock for resource1. | Application Deadlock Causes Server Hang | |
Threads are all used up, none available for new work. | Thread Usage Server Hang | TBD |
Garbage Collection taking too much time. | Garbage Collection Server Hang | TBD |
JSP improper settings for servlet times, e.g. PageCheckSeconds. | JSP cause Server Hang | TBD |
Long Running JDBC calls or JDBC deadlocks lead to a hang. | JDBC Causes Server Hang | JDBC Causes Server Hang |
JVM hang during (code optimization), looks like server hang. | Server Hang in Code Optimization | TBD |
JSP compilation causes server hang under heavy load. | JSP Compilation Server Hang | TBD |
SUN JVM bugs, e.g. Light weight thread library. | Sun JVM Bugs that Cause Server Hangs | TBD |
Top of Page
Ensure that the server is actually hanging and not doing garbage collection. To verify, restart the server with -verbosegc turned on, and redirect stdout and stderr to one file. When the server stops responding, it can be determined if it’s doing garbage collection or it is really hanging. If the garbage collection is taking too long (>10 seconds), the server may miss the heartbeats that servers use to keep each other informed of the topoplogy of the cluster. WebLogic Server uses the ‘default’ thread queue or a configured application specific thread queue to service client requests. Client requests will only be handled in the default queue if no application specific thread queue is defined. Please see Tuning WebLogic Server Applications, Tuning the Default Execute Queue Threads, and Tuning WebLogic Server Performance Parameters for more information on defining application specific thread queues. In release 8.1, a change was made to the thread architecture in WebLogic Server. A specific kernel thread group for internal WebLogic tasks was created. This was found to be necessary to avoid deadlocks that occurred in earlier releases when all threads in the ‘default’ thread queue were used and none were thus available for WebLogic internal tasks. The threads in the ‘default’ queue or the application specific thread queue (if one has been configured) are the threads that should be examined in the event of a server hang. Here’s an example of what one of these threads looks like in a thread dump. Execute Thread ‘14′ from the ‘default’ queue looks like in a thread dump when the thread is waiting for work. The latest method called by this thread is Object.wait(). This thread is in a state “waiting on monitor”. |
“ExecuteThread: ‘14′ for queue: ‘default’” daemon prio=5 tid=0×8b0ab30 nid=0×1f4 waiting on monitor [0x96af000..0x96afdc4] at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:420) at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:94) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:118) |
Threads can be in one of several states. Please see the table below for a description of the thread states. The format of the thread dump varies with the vendor. Check on the vendor’s website for information regarding the format.
Below is an example of threads that may be hanging. ExecuteThread ‘9′ is waiting to lock some object <dde51520>. Notice the “waiting to lock <dde51520>” line in the stack trace for this thread. ExecuteThread ‘6′ is also “waiting to lock the same object <dde51520>”. The third thread, ExecuteThread ‘5′ has locked this object <dde51520>and is doing work. This example demonstrates why one thread dump is not enough. If the server is hanging, and it is suspected that the cause is the locked object <dde51520>, then subsequent thread dumps will show whether or not that object was released and a new thread has locked object <dde51520>. If after several thread dumps, you do not see that the threads have progressed, that object <dde51520> has not been released, you may suspect that there is a problem with the routine(s) in the ExecuteThread ‘5′ call stack because the lock is not being released. |
“ExecuteThread: ‘9′ for queue: ‘weblogic.kernel.Default’” daemon prio=5 tid=0xf684c8 nid=0×13 waiting for monitor entry [cc2ff000..cc2ffc24] at weblogic.cluster.MemberManager.done(MemberManager.java:306) - waiting to lock <dde51520> (a weblogic.cluster.MemberManager) at weblogic.cluster.MulticastManager.execute(MulticastManager.java:399) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
“ExecuteThread: ‘6′ for queue: ‘weblogic.kernel.Default’” daemon prio=5 tid=0×9df020 nid=0×10 waiting for monitor entry [cc5ff000..cc5ffc24] “ExecuteThread: ‘5′ for queue: ‘weblogic.kernel.Default’” daemon prio=5 tid=0×9df020 nid=0×12 waiting for monitor entry [cc5ff000..cc5ffc24] at weblogic.cluster.MemberManager.checkTimeouts(MemberManager.java:346)
|
Determine if the”default” ExecuteThread queue is overloaded. Use the console to determine if any of the ExecuteThreads in the ‘default’ queue are idle. If none are idle, then the application probably needs to be configured with a larger number of ExecuteThreads. This value can be changed through the console and is in the config.xml file.
If the Execute Queue has idle threads, it is possible that not enough socket reader threads are allocated. By default, a WebLogic Server instance creates three socket reader threads upon booting. If a cluster system utilizes more than three sockets during peak periods, increase the number of socket reader threads. The number of socket reader threads should usually be small. However, configure one thread for each Weblogic Server that acts as a client of the server instance that is hanging. If using a JDBC connection pool, ensure that the JDBC connections have been configured to be equivalent to the number of simultaneous requests, i.e., execute threads, for the pool.
Unix Systems (Solaris, HP, AIX) Windows, XP, NT If you have installed WebLogic as a Windows service, you will not be able to see the messages from the JVM or WebLogic Server that are printed to standard out or standard error. To view these messages, you must direct standard out and standard error to a file. To do this, take the following steps:
Linux
Use a grep argument that is a string that will be found in the process stack that matches the server startup command. The first PID reported will be the root process, assuming that the ps command has not been piped to another routine.
Another method of getting a thread dump is to use the THREAD_DUMP admin command. This method is independent of the OS on which the server instance is running.
NOTE: This command cannot be used if unable to ping the server instance. If the JVM in use is Sun’s, the thread dump goes to stdout. Sun has enhanced the thread dump format between JVM 1.3.1 and 1.4. To obtain Sun’s 1.4 style of thread dump add the following option to the java command line for starting the 1.3.1 JVM:
Threads can be in one of the following states:
More information on thread states can be found at http://java.sun.com/developer/onlineTraining/Programming/JDCBook/stack.html#states. There is also a thread analysis tool at http://dev2dev.bea.com/resourcelibrary/utilitiestools/adminmgmt.jsp. |
“ListenThread.Default” prio=10 tid=0×00037888 nid=93 lwp_id=6888343 runnable [0x 1a81b000..0x1a81b530] at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353) - locked <0×26d9d490> (a java.net.PlainSocketImpl) at java.net.ServerSocket.implAccept(ServerSocket.java:439) at java.net.ServerSocket.accept(ServerSocket.java:410) at weblogic.socket.WeblogicServerSocket.accept(WeblogicServerSocket.java:24) at weblogic.t3.srvr.ListenThread.accept(ListenThread.java:713) at weblogic.t3.srvr.ListenThread.run(ListenThread.java:290) |
Socket Reader Threads accept the incoming request from the Listen Thread Queue and put it on the Execute Thread Queue. If there are no socket reader threads in the thread dump, then there is a bug somewhere that is causing the socket reader thread to vanish. There should always be at least 3 socket reader threads. One socket reader thread is usually in the poll function, while the other two are available to process requests. Below are Socket Reader threads from a sample thread dump. |
“ExecuteThread: ‘2′ for queue: ‘weblogic.socket.Muxer’” daemon prio=10 tid=0×000 36128 nid=75 lwp_id=6888070 waiting for monitor entry [0x1b12f000..0x1b12f530] at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:92) - waiting to lock <0×25c01198> (a java.lang.String) at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:32) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
“ExecuteThread: ‘1′ for queue: ‘weblogic.socket.Muxer’” daemon prio=10 tid=0×000 35fc8 nid=74 lwp_id=6888067 runnable [0x1b1b0000..0x1b1b0530] at weblogic.socket.PosixSocketMuxer.poll(Native Method) “ExecuteThread: ‘0′ for queue: ‘weblogic.socket.Muxer’” daemon prio=10 tid=0×000 35e68 nid=73 lwp_id=6888066 waiting for monitor entry [0x1b231000..0x1b231530] |
The ThreadPoolPercentSocketReaders attribute sets the maximum percentage of execute threads that are set to read messages from a java socket. The optimal value for this attribute is application-specific. The default value is 33, and the valid range is 1 to 99.
Allocating execute threads to act as socket reader threads increases the speed and the ability of the server to accept client requests. It is essential to balance the number of execute threads that are devoted to reading messages from a socket and those threads that perform the actual execution of tasks in the server. In release 8.1, the socket reader threads no longer use “ExecuteThreads” in the default queue. Instead they have their own thread group named. Next Steps |
发表评论
-
HotSpot中OutOfMemoryError解析
2015-01-31 10:30 1010在JVM中内存一共有3种:Heap(堆内存),Non-H ... -
银行系统中EBCDIC同GBK互转,Java的实现
2010-12-29 10:18 9424银行系统中有的核心Core banking采用AS/40 ... -
通过Filter实现二级域名和URLRewrite
2010-11-24 20:05 7043需求1.1: 一级域名: http://www.iteye. ... -
什么是JPA
2010-03-14 16:04 0Java Persistence API JPA通 ... -
maven2完全使用手册
2009-07-25 20:57 0maven2完全使用手册 maven2 起步 ... -
JNI 对象的操作
2007-04-03 11:28 4673最近在项目中要监控DLL动态库的操作,在网上搜了半天,很少有关 ... -
PushbackInputStream 读取GBK字符时,会将双引号变成单引号
2006-11-16 13:23 2949如: xml version="1.0" ... -
用OutputStream下载大文件时,下载过程中取消下载后,websphere6.0会死掉,而tomcat不会
2006-11-11 12:43 4696用OutputStream下载大文件时,下载过程中,点取消下载 ... -
用ant task 生成xfire 客户端代码
2006-11-04 15:50 2702用xfire不管是配置web service,还是生成客户代码 ...
相关推荐
WebLogic SIP Server是一款由Oracle公司提供的高性能、可扩展的SIP(Session Initiation Protocol)应用服务器,主要用于构建和部署VoIP、多媒体通信和实时交互应用。以下是对WebLogic SIP Server安装流程的详细说明...
第四章 使用 WebLogic Server JSP 第五章 WebLogic Server JDBC 和 JTA 第六章 远程方法调用和分布式命名 第七章 使用 Java 消息服务进行企业消息传递 第八章 使用会话企业 JavaBean 第九章 实体 EJB 第十章 使用...
WebLogic Server 监控是确保企业级应用稳定运行的关键环节,它涉及到对WebLogic Server的多个层面进行管理和观察。WebLogic Server是由BEA Systems(现为Oracle公司的一部分)开发的一款强大的Java EE应用服务器,...
WebLogic Server是由BEA Systems(后被Oracle公司收购)开发的一款企业级Java应用服务器,它提供了用于构建、部署和管理企业应用程序的全面平台。本文主要介绍WebLogic Server的安装和配置流程,包括不同安装模式、...
**BEA WebLogic Server 开发WebLogic Server应用** BEA WebLogic Server 是一款强大的Java EE (J2EE) 应用服务器,它为企业提供了一个可靠的平台来开发、部署和管理分布式应用程序。这篇文档主要针对使用WebLogic ...
Oracle WebLogic Server 12c是甲骨文公司推出的一款应用服务器,它是为云基础设施建设而设计的现代数据中心首选平台。作为一款基于标准技术的产品,Oracle WebLogic Server 12c为云应用提供了完整的平台支持,旨在...
1. **解压安装包**:使用命令行解压 WebLogic Server 的安装文件 `wls1035_generic.jar`。 2. **执行安装程序**:运行安装程序,并按照提示完成 WebLogic Server 的安装。 #### 五、创建 WebLogic Domain 1. **...
### WebLogic Server 10 知识点详解 #### WebLogic Server 10 概述 WebLogic Server 是一款由 Oracle 提供的企业级应用服务器,主要用于构建和部署可伸缩、高性能的应用程序和服务。WebLogic Server 10 版本是在 ...
Oracle WebLogic Server 11gR1 PS2(Patch Set 2)是Oracle公司推出的中间件平台,主要用于构建、部署和管理企业级Java应用程序。它是一个功能强大的应用服务器,提供了全面的企业服务 Bus (ESB)、Java消息服务 (JMS...
WebLogic Server Tools for Eclipse 3.5 是一个强大的开发工具集,专为在Eclipse集成开发环境中(IDE)高效管理、部署和调试Oracle WebLogic Server应用程序而设计。这个版本为开发人员提供了无缝的工作流程,使得在...
WebLogic_Server_10gR3版本安装、配置、发布 根据提供的文件信息,我们可以总结出以下知识点: 1. 安装WebLogic Server 10gR3:用户可以按照安装手册中的步骤安装WebLogic Server 10gR3,包括选择安装目录、安装...
Oracle WebLogic Server 11g: Administration Essentials 是一套全面的学习资源,旨在帮助用户掌握WebLogic Server的基础知识,尤其适合初学者。WebLogic Server是Oracle公司的一款企业级Java应用服务器,它提供了一...
Oracle WebLogic Server是一款由甲骨文公司开发的企业级Java应用服务器,它在企业信息系统中扮演着重要的角色,特别是在分布式、高可用性和可扩展性要求较高的环境中。本篇将深入探讨Oracle WebLogic Server的关键...
BEA_WebLogic_Server_v8.1.3破解.
Oracle+Weblogic+Server+Java反序列化漏洞 解决方案 Oracle+Weblogic+Server+Java反序列化漏洞 解决方案
《WebLogic宝典》是一本全面深入探讨Oracle WebLogic Server的权威指南,旨在帮助读者掌握这一强大企业级Java EE应用服务器的使用和管理。WebLogic Server是Oracle公司提供的一个核心产品,广泛应用于大型企业的...
WebLogic Web Server Plug-In 12c is backward compatible with WebLogic Web Server Plugins 11gR1 but supports only 64-bit Web Servers.Please refer Oracle WebLogic Web Server Plug-In 12.1.3 documentation ...
【标题】"BEA WebLogic Server_WebLogic Server_app.zip_weblogic" 提示我们讨论的主题是 BEA WebLogic Server,这是一款由BEA Systems(后被Oracle公司收购)开发的企业级Java应用程序服务器,主要用于部署和管理...