开发者

tomcat memory issue

I am having more than 150 web applications in my tomcat web-apps directory can these be the one of the reas开发者_StackOverflowon for increase in memory usage. i have installed tomcat as a service .


Yes, certainly. It has got to store the data somewhere. The memory is the best and fastest place to do that. Every created object instance/primitive value in Java code will be stored in memory.

If you have problems with it, then either increase the available memory for Tomcat or profile the webapp's code and fix memory leaks/inefficiencies accordingly. You can also consider storing large and more permanent data in a relational database instead and load only the relevant data on a HTTP request basis.


Update: If you're using Netbeans, you can use the builtin profiler to profile the webapp during development: http://profiler.netbeans.org. Further you can use VisualM to independently profile Tomcat. Here's a nice blog which outlines how to do that. You can stresstest webapplications using JMeter.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜