2 applications running on tomcat and cause out of memory. Is it because of low memory on VPS?

耗尽温柔 提交于 2019-12-24 17:25:58

问题


We are trying to run 2 applications on tomcat which is on VPS. The memory allocated is 512MB and burstable ram is 1256MB. Now both both these applications have unique class names as folder names are different. These are Java, JSF , Spring , hibernate applications.

Both of them are under respective folders packaged as two different wars.

Whenever we try to run them together, we get OutOfMemoryExceptions.

Are we doing something wrong or we need more RAM here ?


回答1:


There are two potential problems here 1. Multiple web apps using the same connection pool jar. So there were two instances of class in same VM

I have described the problem and solution here Multiple webapps using same c3P0 connection pool

  1. We are using xml/xsl which is consuming too much memory. Need to look deeper into this.


来源:https://stackoverflow.com/questions/3581239/2-applications-running-on-tomcat-and-cause-out-of-memory-is-it-because-of-low-m

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!