找回密码
 注册成为天翎用户
查看: 936|回复: 5

[已解决] linux系统突然断电后启动报错!!

  [复制链接]
湖南山奕科技 发表于 2014-6-27 08:18:33 | 显示全部楼层 |阅读模式
本帖最后由 Jarod 于 2014-7-7 18:29 编辑

linux下面原本已经能正常运行的tomact,数据库也是正常的。然后断电了一次。重启数据库,监听,服务。 然后配置了一下JVM内存溢出的catalina.sh文件,把declare-x JAVA_OPTS="-server -Xms1280M-Xmx1280M -Xmn512M -Xss1024k 这段加了进去。然后启动tomcat.报错信息如下:



[root@rlzy bin]# ./catalina.sh run
Using CATALINA_BASE:   /usr/java/tl/tianlingpingtai/bin/apache-tomcat-6.0.37
Using CATALINA_HOME:   /usr/java/tl/tianlingpingtai/bin/apache-tomcat-6.0.37
Using CATALINA_TMPDIR: /usr/java/tl/tianlingpingtai/bin/apache-tomcat-6.0.37/temp
Using JRE_HOME:        /usr/java/jdk1.6.0_07
Using CLASSPATH:       /usr/java/tl/tianlingpingtai/bin/apache-tomcat-6.0.37/bin/bootstrap.jar
2014-6-26 16:40:38 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.6.0_07/jre/lib/i386/server:/usr/java/jdk1.6.0_07/jre/lib/i386:/usr/java/jdk1.6.0_07/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
2014-6-26 16:40:38 org.apache.coyote.http11.Http11Protocol init
严重: Error initializing endpoint
java.net.BindException: Address already in use <null>:8080

at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:549)


at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:180)


at org.apache.catalina.connector.Connector.initialize(Connector.java:1123)


at org.apache.catalina.core.StandardService.initialize(StandardService.java:703)


at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:838)


at org.apache.catalina.startup.Catalina.load(Catalina.java:538)


at org.apache.catalina.startup.Catalina.load(Catalina.java:562)


at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)


at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


at java.lang.reflect.Method.invoke(Method.java:597)


at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)


at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Caused by: java.net.BindException: Address already in use

at java.net.PlainSocketImpl.socketBind(Native Method)


at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)


at java.net.ServerSocket.bind(ServerSocket.java:319)


at java.net.ServerSocket.<init>(ServerSocket.java:185)


at java.net.ServerSocket.<init>(ServerSocket.java:141)


at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)


at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)


... 12 more

2014-6-26 16:40:38 org.apache.catalina.core.StandardService initialize
严重: Failed to initialize connector [Connector[HTTP/1.1-8080]]
LifecycleException:  Protocol handler initialization failed: java.net.BindException: Address already in use <null>:8080

at org.apache.catalina.connector.Connector.initialize(Connector.java:1125)


at org.apache.catalina.core.StandardService.initialize(StandardService.java:703)


at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:838)


at org.apache.catalina.startup.Catalina.load(Catalina.java:538)


at org.apache.catalina.startup.Catalina.load(Catalina.java:562)


at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)


at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


at java.lang.reflect.Method.invoke(Method.java:597)


at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)


at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

2014-6-26 16:40:38 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 632 ms
2014-6-26 16:40:38 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2014-6-26 16:40:38 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.37
2014-6-26 16:40:38 org.apache.catalina.startup.HostConfig deployDirectory

 楼主| 湖南山奕科技 发表于 2014-6-27 08:23:48 | 显示全部楼层
信息: Deploying web application directory obpm
16:40:47,963 DEBUG PropertyUtil:49 -  Load properties file successed
16:40:47,967 DEBUG PropertyUtil:49 -  Load properties file successed
16:40:47,967 DEBUG PropertyUtil:49 -  Load properties file successed
16:40:47,968 DEBUG PropertyUtil:49 -  Load properties file successed
16:40:47,969 DEBUG PropertyUtil:49 -  Load properties file successed
#Liscense key
#Tue Jun 10 17:14:45 CST 2014
version=myApps3.0[M3]
organization=\u6E56\u5357\u5C71\u5955\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8
svnno=20056
powerby=\u5929\u7FCE\u516C\u53F8
type=A.\u9AD8\u7EA7\u7248
copyrighttext=\r\n<table style\='width\:100%;border-top\:1px solid \#15428b; color\:blue; text-align\:right;font-size\:14px;margin-bottom\:10px;'>\r\n<tr><td title\='SVNNO\:20056'>\r\nDESIGNED BY \u6E56\u5357\u5C71\u5955\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8 POWERED BY myApps3.0[M3] \u00A9Teemlink.\r\n</td></tr>\r\n</table>
smsSender=teemlink

16:40:52,203  INFO WarpProcessFactory:292 - ##CLEAN-CACHE-->>cn.myapps.core.workcalendar.calendar.ejb.CalendarProcessBean.doCreate(cn.myapps.base.dao.ValueObject)
16:40:52,653 DEBUG PropertyUtil:136 -  Load properties file successed
16:40:52,888 DEBUG PropertyUtil:136 -  Load properties file successed
16:40:52,954 DEBUG PropertyUtil:136 -  Load properties file successed
16:40:53,963 DEBUG PropertyUtil:136 -  Load properties file successed
Report System initing......
[2014-06-26 16:40:56] runqianReportLogger : [INFO ]  - Set The Max Cells Num to 100000 , old value is -1
16:40:56,298  INFO runqianReportLogger:26 - Set The Max Cells Num to 100000 , old value is -1
[2014-06-26 16:40:56] runqianReportLogger : [WARN ]  - 快逸报表中设定的最大并发数超出了授权允许范围,自动设为授权允许的最大线程数!
16:40:56,302  WARN runqianReportLogger:34 - 快逸报表中设定的最大并发数超出了授权允许范围,自动设为授权允许的最大线程数!
Report System initialized......
2014-6-26 16:40:56 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
2014-6-26 16:40:56 org.apache.coyote.http11.Http11Protocol start
严重: Error starting endpoint
java.net.BindException: Address already in use <null>:8080
回复

使用道具 举报

 楼主| 湖南山奕科技 发表于 2014-6-27 08:28:50 | 显示全部楼层
信息: Deploying web application directory ROOT
2014-6-26 16:40:56 org.apache.coyote.http11.Http11Protocol start
严重: Error starting endpoint
java.net.BindException: Address already in use <null>:8080
严重: StandardServer.await: create[8005]:
java.net.BindException: Address already in use
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
        at java.net.ServerSocket.bind(ServerSocket.java:319)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        at org.apache.catalina.core.StandardServer.await(StandardServer.java:406)
        at org.apache.catalina.startup.Catalina.await(Catalina.java:676)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:628)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2014-6-26 16:40:56 org.apache.coyote.http11.Http11Protocol pause
信息: Pausing Coyote HTTP/1.1 on http-8080
2014-6-26 16:40:57 org.apache.catalina.core.StandardService stop
信息: Stopping service Catalina
2014-6-26 16:40:57 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/obpm] registered the JDBC driver [org.hsqldb.jdbc.JDBCDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2014-6-26 16:40:57 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/obpm] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2014-6-26 16:40:57 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/obpm] registered the JDBC driver [org.logicalcobwebs.proxool.ProxoolDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2014-6-26 16:40:57 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/obpm] registered the JDBC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2014-6-26 16:40:57 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/obpm] appears to have started a thread named [Thread-2] but has failed to stop it. This is very likely to create a memory leak.
2014-6-26 16:40:57 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/obpm] appears to have started a thread named [Thread-3] but has failed to stop it. This is very likely to create a memory leak.
2014-6-26 16:40:57 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/obpm] appears to have started a thread named [Thread-4] but has failed to stop it. This is very likely to create a memory leak.
2014-6-26 16:40:57 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/obpm] appears to have started a thread named [HouseKeeper] but has failed to stop it. This is very likely to create a memory leak.
2014-6-26 16:40:57 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/obpm] appears to have started a thread named [Store sampleCache1 Spool Thread] but has failed to stop it. This is very likely to create a memory leak.
2014-6-26 16:40:57 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/obpm] appears to have started a thread named [Store sampleCache1 Expiry Thread] but has failed to stop it. This is very likely to create a memory leak.
2014-6-26 16:40:57 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/obpm] appears to have started a thread named [Store query.Document Spool Thread] but has failed to stop it. This is very likely to create a memory leak.
2014-6-26 16:40:57 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/obpm] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
2014-6-26 16:40:57 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/obpm] appears to have started a thread named [Timer-1] but has failed to stop it. This is very likely to create a memory leak.
2014-6-26 16:40:57 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/obpm] appears to have started a thread named [Timer-2] but has failed to stop it. This is very likely to create a memory leak.
2014-6-26 16:40:57 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/obpm] appears to have started a thread named [cn.myapps.core.scheduler.ejb.RegularScheduler] but has failed to stop it. This is very likely to create a memory leak.
2014-6-26 16:40:57 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/obpm] appears to have started a thread named [Thread-12] but has failed to stop it. This is very likely to create a memory leak.
2014-6-26 16:40:57 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/obpm] appears to have started a thread named [Prototyper] but has failed to stop it. This is very likely to create a memory leak.
2014-6-26 16:40:57 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/obpm] created a ThreadLocal with key of type [org.apache.axis.utils.XMLUtils.ThreadLocalDocumentBuilder] (value [org.apache.axis.utils.XMLUtils$ThreadLocalDocumentBuilder@2fdbb1]) and a value of type [org.apache.crimson.jaxp.DocumentBuilderImpl] (value [org.apache.crimson.jaxp.DocumentBuilderImpl@78f4]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2014-6-26 16:40:57 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/obpm] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@104f8eb]) and a value of type [cn.myapps.base.dao.SessionSignal] (value [cn.myapps.base.dao.SessionSignal@1724852]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2014-6-26 16:40:58 org.apache.coyote.http11.Http11Protocol destroy
信息: Stopping Coyote HTTP/1.1 on http-8080
Exception in thread "HouseKeeper" java.lang.NullPointerException
        at org.logicalcobwebs.proxool.HouseKeeperController.getHouseKeeperToRun(HouseKeeperController.java:53)
        at org.logicalcobwebs.proxool.HouseKeeperThread.run(HouseKeeperThread.java:33)

关键是我把那一段JVM配置去掉再重启也是一样的。
回复

使用道具 举报

david 发表于 2014-7-1 09:37:54 | 显示全部楼层
本帖最后由 david 于 2014-7-1 09:40 编辑

111.png

日志显示8080端口已经被占用,楼主可能启动了多个tomcat或者有tomcat进程没有完全退出。请楼主先自行解决,如果需要请与我联系,联系我时记得提供帖子链接。
回复

使用道具 举报

 楼主| 湖南山奕科技 发表于 2014-7-1 16:43:48 | 显示全部楼层
确实是tomact没有正常关闭的原因。已经找到进程,进行命令关闭。再重启后问题解决。请关闭此贴。谢谢
回复

使用道具 举报

david 发表于 2014-7-1 16:56:55 | 显示全部楼层
感谢楼主反馈,该贴结贴。
回复

使用道具 举报

本版积分规则

手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-8-13 19:53

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表