内存溢出,Java使用Tom启动的时候直接崩溃。
Caused by: java.lang.OutOfMemoryError: Java heap space
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centerSrvAction': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dinstar.sim.service.NeRedirectService com.dinstar.sim.action.CenterSrvAction.neRedirectServiceDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'neRedirectServiceDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dinstar.sim.dao.TblNeRedirectMapper com.dinstar.sim.service.impl.NeRedirectServiceImpl.neRedirectMapperDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'neRedirectMapperDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public final void org.mybatis.spring.support.SqlSessionDaoSupport.setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\Users\Administrator\Workspaces\dingxtd\.metadata\.me_tcat\webapps\web\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dinstar.sim.service.NeRedirectService com.dinstar.sim.action.CenterSrvAction.neRedirectServiceDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'neRedirectServiceDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dinstar.sim.dao.TblNeRedirectMapper com.dinstar.sim.service.impl.NeRedirectServiceImpl.neRedirectMapperDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'neRedirectMapperDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public final void org.mybatis.spring.support.SqlSessionDaoSupport.setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\Users\Administrator\Workspaces\dingxtd\.metadata\.me_tcat\webapps\web\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'neRedirectServiceDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dinstar.sim.dao.TblNeRedirectMapper com.dinstar.sim.service.impl.NeRedirectServiceImpl.neRedirectMapperDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'neRedirectMapperDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public final void org.mybatis.spring.support.SqlSessionDaoSupport.setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\Users\Administrator\Workspaces\dingxtd\.metadata\.me_tcat\webapps\web\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space
Caused by: java.lang.OutOfMemoryError: Java heap space
严重: Exception sending context initialized event to listener instance of class com.dinstar.sim.action.InitListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centerSrvAction': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dinstar.sim.service.NeRedirectService com.dinstar.sim.action.CenterSrvAction.neRedirectServiceDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'neRedirectServiceDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dinstar.sim.dao.TblNeRedirectMapper com.dinstar.sim.service.impl.NeRedirectServiceImpl.neRedirectMapperDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'neRedirectMapperDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public final void org.mybatis.spring.support.SqlSessionDaoSupport.setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\Users\Administrator\Workspaces\dingxtd\.metadata\.me_tcat\webapps\web\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dinstar.sim.service.NeRedirectService com.dinstar.sim.action.CenterSrvAction.neRedirectServiceDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'neRedirectServiceDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dinstar.sim.dao.TblNeRedirectMapper com.dinstar.sim.service.impl.NeRedirectServiceImpl.neRedirectMapperDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'neRedirectMapperDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public final void org.mybatis.spring.support.SqlSessionDaoSupport.setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\Users\Administrator\Workspaces\dingxtd\.metadata\.me_tcat\webapps\web\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'neRedirectServiceDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dinstar.sim.dao.TblNeRedirectMapper com.dinstar.sim.service.impl.NeRedirectServiceImpl.neRedirectMapperDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'neRedirectMapperDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public final void org.mybatis.spring.support.SqlSessionDaoSupport.setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\Users\Administrator\Workspaces\dingxtd\.metadata\.me_tcat\webapps\web\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\Users\Administrator\Workspaces\dingxtd\.metadata\.me_tcat\webapps\web\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space
Caused by: java.lang.OutOfMemoryError: Java heap space
省略部分的debug
解决思路:
1. 修改eclipse文件myeclipse.ini 文件 添加
-Xmx512m
-XX:PermSize=512m
-XX:MaxPermSize=512m
-XX:ReservedCodeCacheSize=256m
已经很大了。在大的话 eclipse都打不开了。。。
2. 修改Tomcat的内存 在apache-tomcat-6.0.35\bin\catalina.bat 修改
修改Java条件
set JAVA_OPTS= -Xms1024M -Xmx1024M -XX:PermSize=256M -XX:MaxNewSize=256M -XX:MaxPermSize=256M
3.修改tomcat6w.exe
-Dcatalina.base=%tomcat_home%
-Dcatalina.home=%tomcat_home%
-Djava.endorsed.dirs=%tomcat_home%\endorsed
-Djava.io.tmpdir=%tomcat_home%\temp
-XX:PermSize=256M
-XX:MaxPermSize=256M
-XX:ReservedCodeCacheSize=48M
-Duser.timezone=GMT+08
修改的条件
4.修改了 Validation 只剩下一个类路径依赖验证器 只有构造打勾了,其他的都没打勾。。
以上4个方法都试过了,而且是一起试的。可是项目还是没办法启动。
相关推荐
thinking in java 4 edition english
《thinking in java》第四版英文原版 pdf版
Google Guava实战指南:从基础API到短链接服务完整示例
Java开发中常见的判空、拼接、集合转换等重复代码,不仅耗时而且易错,这时引入Google Guava这类Java工具库可以显著提升编码效率。作为Google开源的核心库,Guava在集合、字符串处理、本地缓存、事件总线、哈希等领域提供了高效API。从不可变集合到Multimap、BiMap等新集合类型,从Joiner与Splitter到Preconditions参数校验,再到Guava Cache解决手写缓存的线程安全和过期策略痛点,以及EventBus实现模块间解耦,配合Hashing生成哈希指纹,都是
grand-finale:基于职员的Android MIDI音序器个人Java项目
总决赛 基于职员的Android MIDI音序器/个人Java项目 开发:-MIDI文件生成-GUI-通过按钮将控制加倍(意味着工作人员= / =音轨或通道)-复制/粘贴措施 =频道/补丁= 1/74-长笛 2/72-单簧管 3/66-萨克斯 4/67-萨克斯 5/57-小号(可移至补丁60-静音小号) 6/61-号角 7/58-长号 8/59-图巴 9 /(117 taiko; 118 mel tom; 119 synth drum; 48定音鼓)-高音 10/1-(Perc。)通道12-16将根据需要填充。 最多复音:一次最多24个音符。 =打击乐贴图=音轨1:Cy-49崩溃; 46小时; 42 HH + Track 2:小军鼓-38 acou; 40 ec; 37侧棍; 39拍手; 51骑; 53个骑铃; 56 Cowbell Track 3:Basses-41 lfloor;
Experts Oracle Database Architecture 中文版
Oracle 全球副总裁,技术大牛Tom的作品,我是找了好久才找到的。
第四届全国itat教育工程就业技能大赛复赛B卷试题及答案
第四届全国itat教育工程就业技能大赛复赛试题及答案


