双核 4G 内存的服务器,第一个tomcat中有6个项目,运行正常.第二个里有1个项目运行正常,但是在第二个里面再加1项目时 就会报错.溢出之类的.
INFO: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "C3P0PooledConnectionPoolManager[identityToken->31qnaw9gp49qqfdcdkna|2330bc13]-AdminTaskTimer"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "C3P0PooledConnectionPoolManager[identityToken->31qnaw9gp49qqfdcdkna|2330bc13]-AdminTaskTimer"
Exception in thread "C3P0PooledConnectionPoolManager[identityToken->31qnaw9gp49xuq1dndkk6|52198ec6]-AdminTaskTimer"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "C3P0PooledConnectionPoolManager[identityToken->31qnaw9gp49xuq1dndkk6|52198ec6]-AdminTaskTimer"
Exception in thread "C3P0PooledConnectionPoolManager[identityToken->31qnaw9gp4a49j5x8d9a|1d64ea14]-AdminTaskTimer"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "C3P0PooledConnectionPoolManager[identityToken->31qnaw9gp4a49j5x8d9a|1d64ea14]-AdminTaskTimer"
Exception in thread "C3P0PooledConnectionPoolManager[identityToken->31qnaw9gp4abhuk3zd3u|5649904f]-AdminTaskTimer"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "C3P0PooledConnectionPoolManager[identityToken->31qnaw9gp4abhuk3zd3u|5649904f]-AdminTaskTimer"
Apr 28, 2016 9:44:37 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Valve} Setting property 'path' to '/photo' did not find a matching property.
加内存 难道不是最好的办法么。
如果不是程序问题 那就没啥好办法