我使用docker-compose启动的SonarQube,最近服务经常意外退出,这发生在更新了最新版本之后。
这是日志:
2023-05-11 14:41:53 2023.05.11 06:41:53 INFO ce[AYgJigbVS3dftf8T_HXf][o.s.c.t.s.ComputationStepExecutor] Compute language distribution | status=SUCCESS | time=5ms
2023-05-11 14:41:53 2023.05.11 06:41:53 INFO ce[AYgJigbVS3dftf8T_HXf][o.s.c.t.s.ComputationStepExecutor] Compute test measures | status=SUCCESS | time=3ms
2023-05-11 14:41:53 2023.05.11 06:41:53 INFO ce[AYgJigbVS3dftf8T_HXf][o.s.c.t.s.ComputationStepExecutor] Compute complexity measures | status=SUCCESS | time=4ms
2023-05-11 14:41:53 2023.05.11 06:41:53 INFO ce[AYgJigbVS3dftf8T_HXf][o.s.c.t.s.ComputationStepExecutor] Load measure computers | status=SUCCESS | time=1ms
2023-05-11 14:41:53 2023.05.11 06:41:53 INFO ce[][o.s.p.ProcessEntryPoint] Hard stopping process
2023-05-11 14:41:53 2023.05.11 06:41:53 INFO ce[AYgJigbVS3dftf8T_HXf][o.s.c.t.s.ComputationStepExecutor] Compute Quality Profile status | status=SUCCESS | time=32ms
2023-05-11 14:41:53 2023.05.11 06:41:53 INFO ce[][o.s.ce.app.CeServer] Compute Engine is stopping...
2023-05-11 14:41:53 2023.05.11 06:41:53 INFO ce[][o.s.c.t.CeProcessingSchedulerImpl] Hard stopping workers...
2023-05-11 14:41:53 2023.05.11 06:41:53 INFO ce[][o.s.c.t.CeProcessingSchedulerImpl] Some in-progress tasks are getting killed.
2023-05-11 14:41:53 2023.05.11 06:41:53 INFO ce[AYgJigbVS3dftf8T_HXf][o.s.c.t.s.ComputationStepExecutor] Execute component visitors | status=FAILED | time=696ms
2023-05-11 14:41:53 2023.05.11 06:41:53 INFO ce[AYgJigbVS3dftf8T_HXf][o.s.c.t.p.a.p.PostProjectAnalysisTasksExecutor] Webhooks | globalWebhooks=0 | projectWebhooks=0 | status=SUCCESS | time=7ms
2023-05-11 14:41:54 2023.05.11 06:41:54 ERROR ce[AYgJigbVS3dftf8T_HXf][o.s.c.t.CeWorkerImpl] Failed to execute task AYgJigbVS3dftf8T_HXf
2023-05-11 14:41:54 org.sonar.ce.task.projectanalysis.component.VisitException: Visit of Component {key=****:****/****/****/****,type=FILE} failed
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.component.VisitException.rethrowOrWrap(VisitException.java:44)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.component.VisitorsCrawler.visit(VisitorsCrawler.java:71)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.component.VisitorsCrawler.visitChildren(VisitorsCrawler.java:107)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.component.VisitorsCrawler.visitImpl(VisitorsCrawler.java:94)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.component.VisitorsCrawler.visit(VisitorsCrawler.java:69)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.component.VisitorsCrawler.visitChildren(VisitorsCrawler.java:107)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.component.VisitorsCrawler.visitImpl(VisitorsCrawler.java:94)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.component.VisitorsCrawler.visit(VisitorsCrawler.java:69)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.component.VisitorsCrawler.visitChildren(VisitorsCrawler.java:107)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.component.VisitorsCrawler.visitImpl(VisitorsCrawler.java:94)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.component.VisitorsCrawler.visit(VisitorsCrawler.java:69)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.component.VisitorsCrawler.visitChildren(VisitorsCrawler.java:107)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.component.VisitorsCrawler.visitImpl(VisitorsCrawler.java:94)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.component.VisitorsCrawler.visit(VisitorsCrawler.java:69)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.step.ExecuteVisitorsStep.execute(ExecuteVisitorsStep.java:51)
2023-05-11 14:41:54 at org.sonar.ce.task.step.ComputationStepExecutor.executeStep(ComputationStepExecutor.java:79)
2023-05-11 14:41:54 at org.sonar.ce.task.step.ComputationStepExecutor.executeSteps(ComputationStepExecutor.java:70)
2023-05-11 14:41:54 at org.sonar.ce.task.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:57)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(ReportTaskProcessor.java:75)
2023-05-11 14:41:54 at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.executeTask(CeWorkerImpl.java:212)
2023-05-11 14:41:54 at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.run(CeWorkerImpl.java:194)
2023-05-11 14:41:54 at org.sonar.ce.taskprocessor.CeWorkerImpl.findAndProcessTask(CeWorkerImpl.java:160)
2023-05-11 14:41:54 at org.sonar.ce.taskprocessor.CeWorkerImpl$TrackRunningState.get(CeWorkerImpl.java:135)
2023-05-11 14:41:54 at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:87)
2023-05-11 14:41:54 at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:53)
2023-05-11 14:41:54 at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
2023-05-11 14:41:54 at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:74)
2023-05-11 14:41:54 at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)
2023-05-11 14:41:54 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
2023-05-11 14:41:54 at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
2023-05-11 14:41:54 at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
2023-05-11 14:41:54 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
2023-05-11 14:41:54 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
2023-05-11 14:41:54 at java.base/java.lang.Thread.run(Unknown Source)
2023-05-11 14:41:54 Caused by: java.lang.IllegalStateException: Fail to process issues of component '****:****/****/****/****'
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.issue.IntegrateIssuesVisitor.visitAny(IntegrateIssuesVisitor.java:105)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.component.TypeAwareVisitorWrapper.visitAny(TypeAwareVisitorWrapper.java:77)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.component.VisitorsCrawler.visitNode(VisitorsCrawler.java:114)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.component.VisitorsCrawler.visitImpl(VisitorsCrawler.java:97)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.component.VisitorsCrawler.visit(VisitorsCrawler.java:69)
2023-05-11 14:41:54 ... 32 common frames omitted
2023-05-11 14:41:54 Caused by: java.lang.IllegalStateException: File 'ComponentImpl{type=FILE, status=SAME, name='****/****/****/****', key='****:****/****/****/****', uuid='****-gME', description='null', children=[], projectAttributes=null, reportAttributes=ReportAttributes{ref=424, scmPath='****/****/****/****/****'}, fileAttributes=FileAttributes{languageKey='go', unitTest=false, lines=398, markedAsUnchanged=false, oldRelativePath='null'}}' has no source code
2023-05-11 14:41:54 at com.google.common.base.Preconditions.checkState(Preconditions.java:590)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.source.SourceLinesRepositoryImpl.readLines(SourceLinesRepositoryImpl.java:47)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.source.SourceLinesHashRepositoryImpl.createLineHashes(SourceLinesHashRepositoryImpl.java:89)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.source.SourceLinesHashRepositoryImpl.createLineHashesMatchingDBVersion(SourceLinesHashRepositoryImpl.java:79)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.source.SourceLinesHashCache.computeIfAbsent(SourceLinesHashCache.java:48)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.source.SourceLinesHashRepositoryImpl.getLineHashesMatchingDBVersion(SourceLinesHashRepositoryImpl.java:47)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.issue.TrackerRawInputFactory$RawLazyInput.loadLineHashSequence(TrackerRawInputFactory.java:89)
2023-05-11 14:41:54 at org.sonar.core.issue.tracking.LazyInput.getLineHashSequence(LazyInput.java:34)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.issue.TrackerRawInputFactory$RawLazyInput.loadIssues(TrackerRawInputFactory.java:115)
2023-05-11 14:41:54 at org.sonar.core.issue.tracking.LazyInput.getIssues(LazyInput.java:50)
2023-05-11 14:41:54 at org.sonar.core.issue.tracking.NonClosedTracking.(NonClosedTracking.java:29)
2023-05-11 14:41:54 at org.sonar.core.issue.tracking.NonClosedTracking.of(NonClosedTracking.java:36)
2023-05-11 14:41:54 at org.sonar.core.issue.tracking.Tracker.trackNonClosed(Tracker.java:34)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.issue.TrackerExecution.track(TrackerExecution.java:53)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.issue.IssueTrackingDelegator.track(IssueTrackingDelegator.java:55)
2023-05-11 14:41:54 at org.sonar.ce.task.projectanalysis.issue.IntegrateIssuesVisitor.visitAny(IntegrateIssuesVisitor.java:90)
2023-05-11 14:41:54 ... 36 common frames omitted
2023-05-11 14:41:54 2023.05.11 06:41:54 INFO ce[AYgJigbVS3dftf8T_HXf][o.s.c.t.CeWorkerImpl] Executed task | project=SPMS | type=REPORT | id=AYgJigbVS3dftf8T_HXf | submitter=admin | status=FAILED | time=91773ms
2023-05-11 14:41:54 2023.05.11 06:41:54 INFO ce[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown initiated...
2023-05-11 14:41:54 2023.05.11 06:41:54 INFO ce[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown completed.
2023-05-11 14:41:54 2023.05.11 06:41:54 INFO ce[][o.s.ce.app.CeServer] Compute Engine is stopped
2023-05-11 14:41:54 2023.05.11 06:41:54 WARN ce[][o.s.p.ProcessEntryPoint$HardStopperThread] Can not stop in 1000ms
2023-05-11 14:41:54 2023.05.11 06:41:54 INFO app[][o.s.a.SchedulerImpl] Process[Compute Engine] is stopped
2023-05-11 14:41:54 2023.05.11 06:41:54 INFO web[][o.s.p.ProcessEntryPoint] Hard stopping process
2023-05-11 14:41:55 2023.05.11 06:41:55 WARN web[][o.s.p.ProcessEntryPoint$HardStopperThread] Can not stop in 1000ms
2023-05-11 14:41:55 2023.05.11 06:41:55 INFO web[][o.s.s.n.NotificationDaemon] Notification service stopped
2023-05-11 14:41:55 2023.05.11 06:41:55 INFO web[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown initiated...
2023-05-11 14:41:55 2023.05.11 06:41:55 INFO web[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown completed.
2023-05-11 14:41:55 2023.05.11 06:41:55 WARN web[][o.a.c.l.WebappClassLoaderBase] The web application [ROOT] appears to have started a thread named [pool-13-thread-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:\n [email protected]/jdk.internal.misc.Unsafe.park(Native Method)\n [email protected]/java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)\n [email protected]/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source)\n [email protected]/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)\n [email protected]/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)\n [email protected]/java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)\n [email protected]/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\n [email protected]/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\n [email protected]/java.lang.Thread.run(Unknown Source)
2023-05-11 14:42:54 2023.05.11 06:42:54 INFO app[][o.s.a.p.ManagedProcessHandler] Web Server failed to stop in a quick fashion. Killing it.
2023-05-11 14:42:54 2023.05.11 06:42:54 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [Web Server]: 137
2023-05-11 14:42:54 2023.05.11 06:42:54 INFO app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2023-05-11 14:42:54 2023.05.11 06:42:54 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
另一次的日志:
2023-05-11 15:26:55 2023.05.11 07:26:55 ERROR ce[****][o.s.c.t.CeWorkerImpl] Failed to execute task ****
2023-05-11 15:26:55 org.sonar.ce.task.projectanalysis.component.VisitException: Visit failed for Component {key=****:****/****/****/****,type=FILE} located ****:****/****/****(type=DIRECTORY)->SPMS:app/business(type=DIRECTORY)->****:app(type=DIRECTORY)->****(type=PROJECT)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.component.VisitException.rethrowOrWrap(VisitException.java:44)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visit(PathAwareCrawler.java:52)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visitChildren(PathAwareCrawler.java:87)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visitImpl(PathAwareCrawler.java:70)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visit(PathAwareCrawler.java:50)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visitChildren(PathAwareCrawler.java:87)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visitImpl(PathAwareCrawler.java:70)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visit(PathAwareCrawler.java:50)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visitChildren(PathAwareCrawler.java:87)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visitImpl(PathAwareCrawler.java:70)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visit(PathAwareCrawler.java:50)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visitChildren(PathAwareCrawler.java:87)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visitImpl(PathAwareCrawler.java:70)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visit(PathAwareCrawler.java:50)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.step.NewCoverageMeasuresStep.execute(NewCoverageMeasuresStep.java:90)
2023-05-11 15:26:55 at org.sonar.ce.task.step.ComputationStepExecutor.executeStep(ComputationStepExecutor.java:79)
2023-05-11 15:26:55 at org.sonar.ce.task.step.ComputationStepExecutor.executeSteps(ComputationStepExecutor.java:70)
2023-05-11 15:26:55 at org.sonar.ce.task.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:57)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(ReportTaskProcessor.java:75)
2023-05-11 15:26:55 at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.executeTask(CeWorkerImpl.java:212)
2023-05-11 15:26:55 at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.run(CeWorkerImpl.java:194)
2023-05-11 15:26:55 at org.sonar.ce.taskprocessor.CeWorkerImpl.findAndProcessTask(CeWorkerImpl.java:160)
2023-05-11 15:26:55 at org.sonar.ce.taskprocessor.CeWorkerImpl$TrackRunningState.get(CeWorkerImpl.java:135)
2023-05-11 15:26:55 at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:87)
2023-05-11 15:26:55 at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:53)
2023-05-11 15:26:55 at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
2023-05-11 15:26:55 at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:74)
2023-05-11 15:26:55 at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)
2023-05-11 15:26:55 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
2023-05-11 15:26:55 at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
2023-05-11 15:26:55 at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
2023-05-11 15:26:55 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
2023-05-11 15:26:55 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
2023-05-11 15:26:55 at java.base/java.lang.Thread.run(Unknown Source)
2023-05-11 15:26:55 Caused by: java.lang.IllegalStateException: File 'ComponentImpl{type=FILE, status=CHANGED, name='****/****/****/****', key='****:****/****/****/****', uuid='AYgE-****-IUjFR6M', description='null', children=[], projectAttributes=null, reportAttributes=ReportAttributes{ref=448, scmPath='****/****/****/****/****'}, fileAttributes=FileAttributes{languageKey='go', unitTest=false, lines=139, markedAsUnchanged=false, oldRelativePath='null'}}' has no source code
2023-05-11 15:26:55 at com.google.common.base.Preconditions.checkState(Preconditions.java:590)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.source.SourceLinesRepositoryImpl.readLines(SourceLinesRepositoryImpl.java:47)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.source.SourceLinesHashRepositoryImpl.createLineHashes(SourceLinesHashRepositoryImpl.java:89)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.source.SourceLinesHashRepositoryImpl.createLineHashesMatchingDBVersion(SourceLinesHashRepositoryImpl.java:79)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.source.SourceLinesHashCache.computeIfAbsent(SourceLinesHashCache.java:48)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.source.SourceLinesHashRepositoryImpl.getLineHashesMatchingDBVersion(SourceLinesHashRepositoryImpl.java:47)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.source.SourceLinesDiffImpl.getReportLines(SourceLinesDiffImpl.java:93)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.source.SourceLinesDiffImpl.computeMatchingLines(SourceLinesDiffImpl.java:63)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.scm.ScmInfoRepositoryImpl.generateAndMergeDb(ScmInfoRepositoryImpl.java:132)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.scm.ScmInfoRepositoryImpl.getScmInfoForComponent(ScmInfoRepositoryImpl.java:76)
2023-05-11 15:26:55 at java.base/java.util.HashMap.computeIfAbsent(Unknown Source)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.scm.ScmInfoRepositoryImpl.getScmInfo(ScmInfoRepositoryImpl.java:67)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.source.NewLinesRepository.computeNewLinesFromScm(NewLinesRepository.java:72)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.source.NewLinesRepository.getNewLines(NewLinesRepository.java:64)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.step.NewCoverageMeasuresStep$NewCoverageCounter.initialize(NewCoverageMeasuresStep.java:205)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.formula.FormulaExecutorComponentVisitor.processLeaf(FormulaExecutorComponentVisitor.java:148)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.formula.FormulaExecutorComponentVisitor.process(FormulaExecutorComponentVisitor.java:125)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.formula.FormulaExecutorComponentVisitor.visitFile(FormulaExecutorComponentVisitor.java:105)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visitNode(PathAwareCrawler.java:102)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visitImpl(PathAwareCrawler.java:73)
2023-05-11 15:26:55 at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visit(PathAwareCrawler.java:50)
2023-05-11 15:26:55 ... 32 common frames omitted
2023-05-11 15:26:55 2023.05.11 07:26:55 INFO ce[AYgJtGLdy6SGKntGKKKR][o.s.c.t.CeWorkerImpl] Executed task | project=SPMS | type=REPORT | id=AYgJtGLdy6SGKntGKKKR | submitter=admin | status=FAILED | time=16989ms
2023-05-11 15:26:55 2023.05.11 07:26:55 INFO ce[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown initiated...
2023-05-11 15:26:55 2023.05.11 07:26:55 INFO ce[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown completed.
2023-05-11 15:26:55 2023.05.11 07:26:55 INFO ce[][o.s.ce.app.CeServer] Compute Engine is stopped
2023-05-11 15:26:55 2023.05.11 07:26:55 INFO app[][o.s.a.SchedulerImpl] Process[Compute Engine] is stopped
2023-05-11 15:26:56 2023.05.11 07:26:56 INFO web[][o.s.p.ProcessEntryPoint] Hard stopping process
2023-05-11 15:26:57 2023.05.11 07:26:57 WARN web[][o.s.p.ProcessEntryPoint$HardStopperThread] Can not stop in 1000ms
2023-05-11 15:26:57 2023.05.11 07:26:57 INFO web[][o.s.s.n.NotificationDaemon] Notification service stopped
2023-05-11 15:26:57 2023.05.11 07:26:57 INFO web[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown initiated...
2023-05-11 15:26:57 2023.05.11 07:26:57 INFO web[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown completed.
2023-05-11 15:26:57 2023.05.11 07:26:57 WARN web[][o.a.c.l.WebappClassLoaderBase] The web application [ROOT] appears to have started a thread named [pool-13-thread-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:\n [email protected]/jdk.internal.misc.Unsafe.park(Native Method)\n [email protected]/java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)\n [email protected]/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source)\n [email protected]/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)\n [email protected]/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)\n [email protected]/java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)\n [email protected]/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\n [email protected]/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\n [email protected]/java.lang.Thread.run(Unknown Source)
2023-05-11 15:27:55 2023.05.11 07:27:55 INFO app[][o.s.a.p.ManagedProcessHandler] Web Server failed to stop in a quick fashion. Killing it.
2023-05-11 15:27:55 2023.05.11 07:27:55 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [Web Server]: 137
2023-05-11 15:27:55 2023.05.11 07:27:55 INFO app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2023-05-11 15:27:55 2023.05.11 07:27:55 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
我增加了内存,问题不再发生了,看上去内存小于3GB的时候服务意外退出的几率很大;但也不是每次都能复现。
貌似清除data/es8文件夹也有用,需要在服务关闭的情况下删除该文件夹,启动服务会自动创建一个新的。