帆软服务和tomcat最近总是宕机,killserver,如何解决。

最近帆软总是宕机,有时候启动后隔半小时就会宕,请教下如何定位和恢复,谢谢。

2025/06/27 17:04:52 [SystemSupervisor-3-worker-1] INFO FineOperation - GC check Time is 2025-06-27 17:04:52 and GC check info is GcCheckBean{containLongGc=false, totalFullGcDuration=0ms, fullGcCount=0}

2025/06/27 17:05:07 [SystemSupervisor-3-worker-1] INFO FineOperation - GcLogAnalyzer begin

2025/06/27 17:05:07 [SystemSupervisor-3-worker-1] INFO FineOperation - GC check Time is 2025-06-27 17:05:07 and GC check info is GcCheckBean{containLongGc=false, totalFullGcDuration=0ms, fullGcCount=0}

2025/06/27 17:05:22 [SystemSupervisor-3-worker-1] INFO FineOperation - GcLogAnalyzer begin

2025/06/27 17:05:22 [SystemSupervisor-3-worker-1] INFO FineOperation - GC check Time is 2025-06-27 17:05:22 and GC check info is GcCheckBean{containLongGc=false, totalFullGcDuration=0ms, fullGcCount=0}

2025/06/27 17:05:23 [SystemSupervisor-3-worker-1] INFO FineOperation - ThreadPoolAnalyzer begin

2025/06/27 17:05:23 [SystemSupervisor-3-worker-1] ERROR FineOperation - java.lang.NoSuchMethodException: No similar method getAgentProperties with params [] could be found on type class java.lang.Object. com.fr.invoke.ReflectException: java.lang.NoSuchMethodException: No similar method getAgentProperties with params [] could be found on type class java.lang.Object.

at com.fr.invoke.Reflect.call(Reflect.java:422)

at com.fr.invoke.Reflect.call(Reflect.java:365)

at com.fanruan.ops.subprocess.crash.server.core.help.AttachUtils.getJMXServiceURL(AttachUtils.java:59)

at com.fanruan.ops.subprocess.crash.server.core.help.AttachUtils.getConnector(AttachUtils.java:44)

at com.fanruan.ops.subprocess.crash.server.core.process.ThreadNumSupervisor.attachServer4Analysis(ThreadNumSupervisor.java:75)

at com.fanruan.ops.subprocess.crash.server.core.process.ThreadNumSupervisor.analysisThreadPool(ThreadNumSupervisor.java:60)

at com.fanruan.ops.subprocess.crash.server.core.process.ThreadNumSupervisor.analysis(ThreadNumSupervisor.java:50)

at com.fanruan.ops.subprocess.crash.server.core.process.SystemSupervisor.run(SystemSupervisor.java:63)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.NoSuchMethodException: No similar method getAgentProperties with params [] could be found on type class java.lang.Object.

at com.fr.invoke.Reflect.similarMethod(Reflect.java:505)

at com.fr.invoke.Reflect.call(Reflect.java:419)

... 14 more

2025/06/27 17:05:23 [SystemSupervisor-3-worker-1] ERROR FineOperation - get jmxConnector failed

2025/06/27 17:05:37 [SystemSupervisor-3-worker-1] INFO FineOperation - GcLogAnalyzer begin

2025/06/27 17:05:37 [SystemSupervisor-3-worker-1] INFO FineOperation - GC check Time is 2025-06-27 17:05:37 and GC check info is GcCheckBean{containLongGc=false, totalFullGcDuration=0ms, fullGcCount=0}

2025/06/27 17:05:41 [check-process-1-worker-1] INFO FineOperation - try to connect ops.

2025/06/27 17:05:41 [check-process-1-worker-1] INFO FineOperation - ops url not set...

2025/06/27 17:05:52 [SystemSupervisor-3-worker-1] INFO FineOperation - GcLogAnalyzer begin

2025/06/27 17:05:52 [SystemSupervisor-3-worker-1] INFO FineOperation - GC check Time is 2025-06-27 17:05:52 and GC check info is GcCheckBean{containLongGc=false, totalFullGcDuration=0ms, fullGcCount=0}

2025/06/27 17:06:07 [SystemSupervisor-3-worker-1] INFO FineOperation - GcLogAnalyzer begin

2025/06/27 17:06:07 [SystemSupervisor-3-worker-1] INFO FineOperation - GC check Time is 2025-06-27 17:06:07 and GC check info is GcCheckBean{containLongGc=false, totalFullGcDuration=0ms, fullGcCount=0}

2025/06/27 17:06:22 [SystemSupervisor-3-worker-1] INFO FineOperation - GcLogAnalyzer begin

2025/06/27 17:06:22 [SystemSupervisor-3-worker-1] INFO FineOperation - GC check Time is 2025-06-27 17:06:22 and GC check info is GcCheckBean{containLongGc=false, totalFullGcDuration=0ms, fullGcCount=0}

2025/06/27 17:06:35 [HeartBeatService-4-worker-1] ERROR FineOperation - Lost connect with FR

2025/06/27 17:06:37 [SystemSupervisor-3-worker-1] INFO FineOperation - GcLogAnalyzer begin

2025/06/27 17:06:37 [SystemSupervisor-3-worker-1] INFO FineOperation - GC check Time is 2025-06-27 17:06:37 and GC check info is GcCheckBean{containLongGc=false, totalFullGcDuration=0ms, fullGcCount=0}

2025/06/27 17:06:52 [SystemSupervisor-3-worker-1] INFO FineOperation - GcLogAnalyzer begin

2025/06/27 17:06:52 [SystemSupervisor-3-worker-1] INFO FineOperation - GC check Time is 2025-06-27 17:06:52 and GC check info is GcCheckBean{containLongGc=false, totalFullGcDuration=0ms, fullGcCount=0}

2025/06/27 17:07:07 [SystemSupervisor-3-worker-1] INFO FineOperation - GcLogAnalyzer begin

2025/06/27 17:07:07 [SystemSupervisor-3-worker-1] INFO FineOperation - GC check Time is 2025-06-27 17:07:07 and GC check info is GcCheckBean{containLongGc=false, totalFullGcDuration=0ms, fullGcCount=0}

2025/06/27 17:07:22 [SystemSupervisor-3-worker-1] INFO FineOperation - GcLogAnalyzer begin

2025/06/27 17:07:22 [SystemSupervisor-3-worker-1] INFO FineOperation - GC check Time is 2025-06-27 17:07:22 and GC check info is GcCheckBean{containLongGc=false, totalFullGcDuration=0ms, fullGcCount=0}

2025/06/27 17:07:37 [SystemSupervisor-3-worker-1] INFO FineOperation - GcLogAnalyzer begin

2025/06/27 17:07:37 [SystemSupervisor-3-worker-1] INFO FineOperation - GC check Time is 2025-06-27 17:07:37 and GC check info is GcCheckBean{containLongGc=false, totalFullGcDuration=0ms, fullGcCount=0}

2025/06/27 17:07:41 [check-process-1-worker-1] INFO FineOperation - try to connect ops.

2025/06/27 17:07:41 [check-process-1-worker-1] INFO FineOperation - ops url not set...

2025/06/27 17:07:52 [SystemSupervisor-3-worker-1] INFO FineOperation - GcLogAnalyzer begin

2025/06/27 17:07:52 [SystemSupervisor-3-worker-1] INFO FineOperation - GC check Time is 2025-06-27 17:07:52 and GC check info is GcCheckBean{containLongGc=false, totalFullGcDuration=0ms, fullGcCount=0}

2025/06/27 17:07:53 [SystemSupervisor-3-worker-1] INFO FineOperation - exit FineOperation

2025/06/27 17:07:53 [SystemSupervisor-3-worker-1] ERROR FineOperation - client kill server

FineReport fengjidly 发布于 2025-7-1 09:49
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共3回答
最佳回答
0
Z4u3z1Lv6专家互助
发布于2025-7-1 09:50

内存不够么?

  • fengjidly fengjidly(提问者) JAVA_OPTS="$JAVA_OPTS -Xms4096m -Xmx4096m -XX:MetaspaceSize=512m -XX:MaxMetaspaceSize=1024m" 改成过9G,也是会宕机
    2025-07-01 09:58 
  • Z4u3z1 Z4u3z1 回复 fengjidly(提问者) 是不是有什么定时调度之类的把内存占了
    2025-07-01 10:02 
  • fengjidly fengjidly(提问者) 回复 Z4u3z1 服务器内存挺大的,254G只用了84G
    2025-07-01 11:47 
  • Z4u3z1 Z4u3z1 回复 fengjidly(提问者) 不是看主机的内存 而是Tomact 的
    2025-07-01 12:23 
  • fengjidly fengjidly(提问者) 回复 Z4u3z1 tomcat里配置的是 -Xms4096m -Xmx4096m
    2025-07-01 14:12 
最佳回答
0
用户k6280494Lv6专家互助
发布于2025-7-1 09:50(编辑于 2025-7-1 09:50)
  1. 导出Dump文件:

    • 确保系统环境中有JDK工具。

    • 进入到对应的JDK的bin目录。

    • 使用命令 ps -ef | grep tomcat 查找Tomcat进程的PID。

    • 使用命令 jmap -dump:format=b,file=文件名 [pid] 来生成Dump文件,以便后续分析。

  2. 监控应用存活:

    • 自行开发监控帆软应用的存活状态,发现不可用时及时通知运维人员,并通过自动化脚本重启应用,或人工监控及重启。

  3. 分析宕机原因:

    • 通过Dump文件分析宕机原因,或联系技术支持协助定位,并尽快排除宕机风险。

  4. 使用宕机处理功能:

    • 帆软提供应用存活监控功能,管理员可以登录数据决策系统,点击「管理系统>智能运维>宕机处理」,实现宕机消息通知、宕机日志自动导出及宕机后自动重启恢复功能

  5. 检查基本维护:

最佳回答
0
sysdbaLv5初级互助
发布于2025-7-1 09:54

找技术支持呗,有运维合同就赶紧用起来,3块钱在这里干不了这么大的活

  • 3关注人数
  • 36浏览人数
  • 最后回答于:2025-7-1 09:54
    请选择关闭问题的原因
    确定 取消
    返回顶部