求助 阿里云上 nginx tomcat 不能同时工作 冲突

Zeus 2015-02-02 03:51:25
阿里云上 nginx tomcat 不能同时工作,否则tomcat会停止
tomcat7 :8080
当启动nginx的时候 tomcat就停止了,,
如果先启动nginx ,后启动tomcat ,那么在tomcat启动过程当中就会会停止.
...全文
484 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
Zeus 2015-02-09
  • 打赏
  • 举报
回复
引用 5 楼 yotoobe 的回复:
会不会是资源问题呢!!比如内存不够
在catalina.sh文件里设置了
JAVA_OPTS="-Xms256m-Xmx512m-Xss1024K-XX:PermSize=128m-XX:MaxPermSize=256m" 
没有作用啊,还是一样.没区别.
anyonsss 2015-02-06
  • 打赏
  • 举报
回复
会不会是资源问题呢!!比如内存不够
Zeus 2015-02-05
  • 打赏
  • 举报
回复
引用 3 楼 erhou134 的回复:
先起tomcat,strace -p pid 跟踪 然后另一界面起ngnix 看下tomcat 会不会接受信号之类的
大哥,具体要怎么做啊. 运维我不行啊, 你这么说我不懂啊.
Zeus 2015-02-04
  • 打赏
  • 举报
回复
引用 1 楼 erhou134 的回复:
那tomcat启动失败的原因log啥的呢。。看看呗
日志没有报错, 只是加载spring的日志, 但是只打印一部分就停止了
2015-02-04 09:32:55,579 INFO [org.springframework.web.context.ContextLoader] - <Root WebApplicationContext: initialization started>
2015-02-04 09:32:55,844 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Refreshing Root WebApplicationContext: startup date [Wed Feb 04 09:32:55 CST 2015]; root of context hierarchy>
2015-02-04 09:32:56,052 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from file [/application/apache-tomcat-7.0.57/webapps/ssmy_m/WEB-INF/classes/spring/spring-one.xml]>
2015-02-04 09:32:56,483 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] - <JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning>
2015-02-04 09:32:56,683 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from file [/application/apache-tomcat-7.0.57/webapps/ssmy_m/WEB-INF/classes/spring/spring-framework-resources-roleResources.xml]>
2015-02-04 09:32:56,797 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] - <JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning>
2015-02-04 09:32:56,824 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from file [/application/apache-tomcat-7.0.57/webapps/ssmy_m/WEB-INF/classes/spring/spring-framework-resources-resources.xml]>
2015-02-04 09:32:56,937 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] - <JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning>
2015-02-04 09:32:56,975 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from file [/application/apache-tomcat-7.0.57/webapps/ssmy_m/WEB-INF/classes/spring/spring-framework-resources-user.xml]>
2015-02-04 09:32:57,092 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] - <JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning>
2015-02-04 09:32:57,125 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from file [/application/apache-tomcat-7.0.57/webapps/ssmy_m/WEB-INF/classes/spring/spring-framework-attachment.xml]>
2015-02-04 09:32:57,250 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] - <JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning>
2015-02-04 09:32:57,305 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from file [/application/apache-tomcat-7.0.57/webapps/ssmy_m/WEB-INF/classes/spring/spring-database.xml]>
2015-02-04 09:32:57,574 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from file [/application/apache-tomcat-7.0.57/webapps/ssmy_m/WEB-INF/classes/spring/spring-framework-resources-org.xml]>
2015-02-04 09:32:57,716 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] - <JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning>
2015-02-04 09:32:57,745 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from file [/application/apache-tomcat-7.0.57/webapps/ssmy_m/WEB-INF/classes/spring/spring-framework-pageView.xml]>
2015-02-04 09:32:57,889 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] - <JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning>
2015-02-04 09:32:57,925 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from file [/application/apache-tomcat-7.0.57/webapps/ssmy_m/WEB-INF/classes/spring/spring-framework-resources-role.xml]>
2015-02-04 09:32:58,080 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] - <JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning>
2015-02-04 09:32:58,112 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from file [/application/apache-tomcat-7.0.57/webapps/ssmy_m/WEB-INF/classes/spring/spring-framework-loginout.xml]>
2015-02-04 09:32:58,269 INFO [org.springframework.context.annotation.ClassPathBeanDefinitionScanner] - <JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning>
2015-02-04 09:32:58,300 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from file [/application/apache-tomcat-7.0.57/webapps/ssmy_m/WEB-INF/classes/spring/spring-mybatis.xml]>
2015-02-04 09:32:59,095 INFO [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] - <Loading properties file from class path resource [config/database.properties]>
2015-02-04 09:32:59,272 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@182212f9: defining beans [treeService,treeAction,treeDao,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,roleResourcesService,roleResourcesAction,roleResourcesDao,resourcesService,resourcesAction,resourcesDao,userService,userAction,userDao,attachmentService,uploadifyAction,attachmentAction,attachmentDao,com.liupengyuan.framework.util.ApplicationContextHandle#0,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,transactionManager,txAdvice,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,orgService,orgAction,orgDao,pageViewService,pageViewAction,pageViewDao,roleService,roleAction,roleDao,loginoutAction,sqlSessionFactory,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy>
空的 2015-02-04
  • 打赏
  • 举报
回复
先起tomcat,strace -p pid 跟踪 然后另一界面起ngnix 看下tomcat 会不会接受信号之类的
空的 2015-02-03
  • 打赏
  • 举报
回复
那tomcat启动失败的原因log啥的呢。。看看呗

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧