[10-5-18 16:08:43:855 CST] 00000161 SystemErr R Exception in thread "WebContainer : 18" java.lang.OutOfMemoryError
[10-5-18 16:08:44:470 CST] 00000161 SystemErr R at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:303)
[10-5-18 16:08:44:470 CST] 00000161 SystemErr R at com.ibm.ws.buffermgmt.impl.WsByteBufferPoolManagerImpl.allocateCommon(WsByteBufferPoolManagerImpl.java:514)
[10-5-18 16:08:44:470 CST] 00000161 SystemErr R at com.ibm.ws.buffermgmt.impl.WsByteBufferPoolManagerImpl.allocateDirect(WsByteBufferPoolManagerImpl.java:450)
[10-5-18 16:08:44:470 CST] 00000161 SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:472)
解决方法:
Excessive native memory use in IBM WebSphere Application Server 6.0 and 6.1
Excessive native memory use in IBM WebSphere Application Server 6.0 and 6.1
Technote (troubleshooting)
Problem(Abstract)
The use of asynchronous data transfer may require an excessive number of buffers to send data over a TCP/IP connection.
This predominately occurs when files are being transferred (e.g., a PDF being returned in a response, the dmgr updating the nodeagents, etc.) but, can also occur with normal responses from IBM® WebSphere® Application Server.
Symptom
The process size for the application server or deployment manager can grow quite large.
You may also see OutOfMemoryError’s thrown and malloc errors in SystemOut.log.
JVMDBG001: malloc failed to allocate …
Cause
A new feature was added to allow the sending of data asynchronously as a performance enhancement. Unfortunately, this can require the allocation of enough buffers to contain the entire file being transferred (java.nio.DirectByteBuffer's).
Depending on the size of the file, this can be a bad decision, as it may require a large amount of memory. There are also occasions when these buffers will not be freed up, causing even more problems with native memory utilization.
Environment
WebSphere Application Server 6.0.2 and 6.1
Diagnosing the problem
Check the JVM’s™ process size using operating system specific tools (e.g., ps, top, perfmon). Check the Application Server logs for malloc errors.
Resolving the problem
A Java™ property can be set which will force the data transfer to be synchronous rather than asynchronous. Since the asynchronous transfer is generally faster, at least for small files, the use of synchronous transfer may result in a slight performance impact. This performance impact should be quite small, and would be far outweighed by the performance impact of the extra memory used by all of the buffers allocated by the asynchronous transfer algorithm.
This property was added in later Application Server FixPacks, so you may need to upgrade your Application Server installation before setting the property.
1. Check if your Application Server installation is at least at 6.0.2.21 or 6.1.0.11, depending on whether you are on Application Server 6.0.2 or 6.1. If not, please install one of the FixPacks to get your installation up to that level or more recent.
2. Set the channelwritetype property to use synchronous data transfer (sync):
For an application server
In the Admin Console:
Servers -> Application Servers -> serverName -> Web Container Settings -> Web Container -> Custom Properties:
Press New:
Add the following pair:
Name: com.ibm.ws.webcontainer.channelwritetype
Value: sync
Press OK, and then save the configuration.
The application server must be recycled to pick up the property.
For a deployment manager
Start an interactive wsadmin session:
<dmgr-profile-root>\bin>wsadmin -lang jacl
Copy the following block of lines, then paste them all at once at the wsadmin> prompt:
set dmgr [$AdminConfig getid /Server:dmgr/]
set webcontainer [$AdminConfig list WebContainer $dmgr]
$AdminConfig create Property $webcontainer {{name com.ibm.ws.webcontainer.channelwritetype} {value sync}} properties
$AdminConfig show $webcontainer
$AdminConfig save
The deployment manager must be recycled to pick up the property.
,照此设置即可。
分享到:
相关推荐
java IBM websphere 内存溢出 javacore deapdump CPU内存分析工具
websphere内存溢出的经验总结 使用 TPV监视JVM
涵盖websphere内存溢出处理方法、使用与诊断调优等,内容详实
IBM WebSphere MQ是IBM业界领先面向消息的中间件产品,也是MQ系列产品的基础和核心,它使不同的应用程序能够以企业级的性能,在广泛的平台上安全而可靠地通讯。
软件介绍: IBM websphere 服务器出现内存溢出或其他故障时,会生成heapdump文件,本工具用于分析heapdump,查找错误原因。运行IBN WEBSPHERE HEAPDUMP需要安装JDK1.8框架。
ibm websphere 服务器内存溢出或其他故障,生成javacore,分析工具
The dictionary defines a portal as a grand or imposing door or entrance; hence, that picture on the cover. In this book, you will learn why the word portal has become a major buzzword in the world of ...
IBM WebSphere MQ 技术白皮书.doc
IBM Information Server FastTrack, IBM WebSphere® Business Glossary, IBM Information Server Business Glossary Anywhere, IBM WebSphere DataStage®, IBM WebSphere Information Analyzer, IBM WebSphere ...
IBM WebSphere应用服务器简介
IBM WebSphere Portal 解决方案
Websphere Application Server WAS 内存溢出分析,帮助分析内存问题
IBM WebSphere 应用开发实验指导 PDF
IBM Websphere MQ 教程之备份与恢复
IBM WebSphere DataStage教程,供datastage学习者使用。
IBM webSphere认证的试题,这是我们老师给的
IBM websphereMQ 8.0.0.5 lib包; IBM\WebSphere MQ\java\lib下的文件 文件列表: com.ibm.mq.jms.Nojndi.jar com.ibm.mq.pcf.jar com.ibm.mq.allclient.jar com.ibm.mq.postcard.jar com.ibm.mq.axis2.jar ...
IBM WebSphere MQ 8.0 linux 安装包 part3,IBM WebSphere MQ 8.0 linux 安装包 part3
IBM WebSphere MQ入门教程.pdf
IBM WebSphere DataStage Basic Reference Guide