在java项目中的内存问题
谢谢各位
不过好像有文章讲过java中主要的内容问题是在String上。
如果String对象会有 “+=”之类的操作,还是用StringBuffer类吧。
其他我也不是很清楚,原来听别人说用了struts效率比较低,也不知道问题在哪?
Increase Xmax will only alleviate your problem in dev time, but can cause fatal disaster in prodution. So don't do it. On the contrary, in debugging, you would reduce the Xmax to accelarate the syndrome for small apps.
Cheers,
-Jevang
使用 struts绝对比单纯用servlevt/jsp消耗资源
原因:从对象的继承链来说
一个formbean和action的继承链好几层
每一次的new对象。比较消耗资源