有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

JAVAlang.OutOfMemoryError:内存不足

我们在公司使用TIBCO integration manager已经有一段时间了,但几个月后,在这个过程中遇到了内存不足的问题,只有在重新启动时才会得到修复。下面是我们在日志中收到的错误

2017 Oct 04 02:33:40:090 GMT -4 TIBIM.5.0.2V34-HOTFIX11.SV_IM_RVCMQengine1 Error [IM_TASK] AEIM-200191
java.lang.Exception: Out of memory at com.tibco.share.bus.BusTibrvCmTransport.send(BusTibrvCmTransport.java:264)
    at com.tibco.share.bus.Bus.send(Bus.java:420)
    at  com.tibco.im.fw.task.AEAdapterObjSendTask.eval(AEAdapterObjSendTask.java:226)
    at com.tibco.im.wf.Job.step(Job.java:986)
    at com.tibco.im.wf.Job.checkStep(Job.java:822)
    at com.tibco.im.wf.NewJobDispatcher$JobCourier.runx(NewJobDispatcher.java:240)
    at com.tibco.im.wf.NewJobDispatcher$JobCourier.run(NewJobDispatcher.java:207)


 A fatal error has been detected by the Java Runtime Environment:
 java.lang.OutOfMemoryError: requested 12 bytes for CHeapObj-new. Out of swap space?

Internal Error (allocation.inline.hpp:39), pid=23296, tid=1797974928 #  Error: CHeapObj-new # # JRE version: 6.0_18-b07 # Java VM: Java HotSpot(TM) Server VM (16.0-b13 mixed mode linux-x86 ) # An error report file with more information is saved as:
 /usr/tibco/prod/apps/SV/imcentral/hs_err_pid23296.log

 If you would like to submit a bug report, please visit:
   http://java.sun.com/webapps/bugreport/crash.jsp

当前JVM设置为小于大小

JVM

java.extended.properties -Xms1024m -Xmx2048m

虚拟内存

$ulimit-d-v

data seg size (kbytes, -d) unlimited

virtual memory (kbytes, -v) 37748736

服务器上的内存

$free-g

             total      used       free     shared    buffers     cached
 Mem           62         55          7          0          1         16
-/+ buffers/cache:        36         25
 Swap:         15          1         14

服务器操作系统:

Linux simtcuap0014 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

已经尝试增加虚拟内存,也在配置中调整了JVM大小,但到目前为止没有任何帮助。 你能推荐其他的方法吗


共 (0) 个答案