简体   繁体   English

由于图像上传导致 JBoss 堆空间问题

[英]JBoss Heap Space issue Due to Image Uploads

We have a web application in which users are uploading hundreds of images via the web.我们有一个网络应用程序,用户通过网络上传数百张图片。 The application then takes these images and moves them off to storage (in FileNet ).然后应用程序获取这些图像并将它们移到存储中(在FileNet )。

The issue we are seeing is that the heap space is eventually filling up and the application is crashing.我们看到的问题是堆空间最终被填满,应用程序崩溃。

It seems for some reason these images are not being cleaned up via Garbage Collection even though they aren't being referenced anymore.似乎出于某种原因,即使不再引用这些图像,也没有通过垃圾收集清除它们。

We have used AppDynamics on our Jboss servers to monitor and check for memory leaks.我们在 Jboss 服务器上使用AppDynamics来监控和检查内存泄漏。 So far, we haven't found any.到目前为止,我们还没有找到。

Any suggestions on what we should be looking for in addition?关于我们还应该寻找什么的任何建议?

I am assuming that you are using FileNet Content Engine.我假设您正在使用 FileNet 内容引擎。 The first thing to look for would be memory leaks.首先要寻找的是内存泄漏。 Since you said you have not found any, here are some practical tips to try out:既然你说你还没有找到,这里有一些实用的技巧可以尝试:

  • Allocate more heap space and observe the time it takes to crash.分配更多的堆空间并观察崩溃所需的时间。 See if allocation of more space results in any significant difference.查看分配更多空间是否会导致任何显着差异。
  • Scale horizontally by adding more server instances to lessen the load per server and observe the time taken for heap space to fill.通过添加更多服务器实例来减少每台服务器的负载并观察堆空间填充所需的时间来水平扩展。 If it decreases proportionately, that means your server is overloaded.如果它按比例减少,则意味着您的服务器过载。
  • If you are using any third party software, look for memory leaks there.如果您正在使用任何第三方软件,请在那里查找内存泄漏。
  • Search the IBM Fix Central portal for any existing fixes for your problem.IBM Fix Central门户中搜索针对您的问题的任何现有修复程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM