struts2+hibernate+spring第3次访问action浏览器卡死
来源:互联网 发布:淘宝网怎么上传图片 编辑:程序博客网 时间:2024/05/17 06:07
2012-02-13 06:14jonlik | 分类:浏览器| 浏览208次
struts2+hibernate+spring第3次访问action浏览器卡死,重启tomcat后还是第三次访问action就卡死。用到hibernate的分页, 数据库是mysql。有没有人遇到并解决过,没用到连接池。有一对多和多对一的关系。
string strungbuffer
2012-02-13 09:16提问者采纳
数据库操作不规范,建议做下优化
- 追问
具体点啊~
- 回答
你说的都这么笼统,叫我怎么具体啊。给你几点提示吧,卡死一般有2种可能,1. 死循环。你看看有什么代码会重复调用的?尤其是递归,要慎用。 2. tomcat装载的东西太多,内存溢出了。 当数据库查询出的数据量太大的时候,程序也容易崩溃。这个就要你优化下查询语句,跟分页功能。 差不多就这些,你对照程序仔细研究下把
- 提问者评价
经检查session没关闭,都忘记了这个问题了,还是谢谢你
0 0
- struts2+hibernate+spring第3次访问action浏览器卡死
- Struts2的Action访问spring的ApplicationContext
- Struts2+Spring+Hibernate In Action(一)
- Struts2+Spring+Hibernate In Action(二)
- 【3】Struts2的Action访问
- Action 3 Spring Integrating Hibernate
- struts2 action执行2次
- spring整合struts2模型驱动访问action失败
- Struts2+Spring + hibernate 中对action的单元测试环境搭建
- struts2+Spring + hibernate 中对action的单元测试环境搭建
- Spring+struts2.3无法找到action
- Spring 管理Struts2 Action
- struts2,spring管理action
- struts2 action调用2次问题
- Struts2 Action的访问路径
- Struts2中Action访问ServletAPI
- Struts2 Action的访问路径
- struts2 Action访问Servlet Api
- Cocos2d-x3.0 LoadingBar
- SQL Server创建存储过程 [转]
- JUnit3和Junit4简介
- android 发送短信
- jquery---ajax异步提交+validate表单验证
- struts2+hibernate+spring第3次访问action浏览器卡死
- mysql中实现insert or update
- stringstream的用法
- 适配器模式
- TOEFL作文新手入门之战略篇
- FusionChart的开发和FusionChart的常用XML接口属性
- 探索电调
- 设计模式六大原则——单一职责原则(SRP)
- NYOJ 608 畅通工程