fade_dos 运行环境centos 7 ,已配置nginx ,采用Http方式 页面提示 502 Bad Gateway 后台日志 : at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68) [undertow-servlet-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132) [undertow-servlet-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57) [undertow-servlet-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) [undertow-core-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64) [undertow-servlet-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60) [undertow-core-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77) [undertow-servlet-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43) [undertow-core-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:269) [undertow-servlet-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78) [undertow-servlet-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133) [undertow-servlet-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130) [undertow-servlet-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48) [undertow-servlet-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) [undertow-servlet-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249) [undertow-servlet-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:78) [undertow-servlet-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:99) [undertow-servlet-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.server.Connectors.executeRootHandler(Connectors.java:376) [undertow-core-2.0.27.Final.jar!/:2.0.27.Final] at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830) [undertow-core-2.0.27.Final.jar!/:2.0.27.Final] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_211] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_211] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_211] 2019-12-16 12:52:14.471 WARN 4556 --- [Timer-0] run.halo.app.cache.AbstractCacheStore : Cache key: [halo.admin.access.token.f7438a61783f4ddcaa4758715ffdb6db] has been expired 2019-12-16 12:54:20.477 ERROR 4556 --- [XNIO-1 task-2] r.h.a.controller.core.CommonController : Error path: [/error], status: [404 NOT_FOUND] 2019-12-16 13:50:29.892 ERROR 4556 --- [XNIO-1 task-13] r.h.a.controller.core.CommonController : Error path: [/error], status: [404 NOT_FOUND] 2019-12-16 14:02:34.201 ERROR 4556 --- [XNIO-1 task-9] r.h.a.controller.core.CommonController : Error path: [/error], status: [404 NOT_FOUND] 2019-12-16 14:02:34.202 ERROR 4556 --- [XNIO-1 task-14] r.h.a.controller.core.CommonController : Error path: [/error], status: [404 NOT_FOUND]
fade_dos johnniang 😂直接被系统杀掉了--->kernel: Out of memory: Kill process 22105 (java) score 314 or sacrifice child root 22105 21551 51 14:15 pts/1 00:00:40 java -Xms256m -Xms256m -jar halo-1.1.3-beta.2.jar 现在 服务器内存1G的!
fade_dos johnniang 我命令后面修改为 nohup java -Xms256m -Xmx256m -jar halo-1.1.3-beta.2.jar >/opt/halo/halo.out>&1 &
fade_dos Out of memory: Kill process 32174 (java) score 321 or sacrifice child [396674.275735] Killed process 32174 (java) total-vm:2386084kB, anon-rss:336124kB, file-rss:0kB, shmem-rss:0kB 除了加内存,还有什么好办法吗?
fade_dos johnniang 😂 我1G的内存,查了下 内存占用 halo 占了36%左右! 另外装了个mysql mq 占了40%(往上) ,腾讯的监控YDservice占了10% 左右. 然后加上其余的 然后很容易OOM,把halo给直接kill掉! 解决方法是把:Mysql给删掉了 ,腾出些内存