Confluence stopped working frequently
Asked by Srikanth Muthyala:

In my organization we are using confluence wiki. Some times it will not respond, restart the host will solve the issue. It is happening very frequent. need help


Answers:
author: Milan Chheda [INFOSYSTA]
body: Did you check and can you share log entries from \`atlassian-confluence.log\` to better understand on why Confluence service is going down?

comments: author: Srikanth Muthyala
body: 2019-07-31 02:52:14,105 ERROR \[pool-9-thread-1\] \[common.util.concurrent.Futures$CombinedFuture\] setExceptionAndMaybeLog input future failed.  
java.lang.OutOfMemoryError: Java heap space  
2019-07-31 02:52:14,105 ERROR \[pool-9-thread-1\] \[common.util.concurrent.Futures$CombinedFuture\] setExceptionAndMaybeLog input future failed.  
java.lang.OutOfMemoryError: Java heap space  
2019-07-31 02:52:14,105 ERROR \[pool-9-thread-1\] \[common.util.concurrent.Futures$CombinedFuture\] setExceptionAndMaybeLog input future failed.  
java.lang.OutOfMemoryError: Java heap space  
2019-07-31 02:52:14,105 ERROR \[pool-9-thread-1\] \[common.util.concurrent.Futures$CombinedFuture\] setExceptionAndMaybeLog input future failed.  
java.lang.OutOfMemoryError: Java heap space  
2019-07-31 02:52:14,136 WARN \[http-nio-8090-exec-20\] \[confluence.util.profiling.DefaultActivityMonitor\] close Exceeded the threshold of 60000 ms: ActivitySnapshot{startTime=1564535931863, threadId=1295, threadName='http-nio-8090-exec-20', userId='\<unknown\>', type='web-request', summary='/rest/capabilities/navigation?lang=en-GB'}  
-- url: /rest/capabilities/navigation \| traceId: bbfd1c4ed13267b6 \| userName: anonymous  
2019-07-31 02:52:14,152 WARN \[http-nio-8090-exec-10\] \[confluence.util.profiling.DefaultActivityMonitor\] close Exceeded the threshold of 60000 ms: ActivitySnapshot{startTime=1564535996842, threadId=278, threadName='http-nio-8090-exec-10', userId='\<unknown\>', type='web-request', summary='/rest/capabilities/navigation?lang=en-GB'}  
-- url: /rest/capabilities/navigation \| traceId: 70ca077ba4730719 \| userName: anonymous  
2019-07-31 02:52:14,214 ERROR \[pool-9-thread-1\] \[common.util.concurrent.Futures$CombinedFuture\] setExceptionAndMaybeLog input future failed.  
java.lang.OutOfMemoryError: Java heap space  
2019-07-31 02:52:14,230 WARN \[http-nio-8090-exec-16\] \[confluence.util.profiling.DefaultActivityMonitor\] close Exceeded the threshold of 60000 ms: ActivitySnapshot{startTime=1564535905374, threadId=1291, threadName='http-nio-8090-exec-16', userId='\<unknown\>', type='web-request', summary='/rest/capabilities/navigation?lang=en-GB'}  
-- url: /rest/capabilities/navigation \| traceId: f78a1fadf437a674 \| userName: anonymous  
2019-07-31 02:52:14,152 WARN \[ContainerBackgroundProcessor\[StandardEngine\[Standalone\]\]\] \[confluence.util.profiling.DurationThresholdWarningTimingHelperFactory\] logMessage Execution time for publishing event com.atlassian.sal.api.events.SessionDestroyedEvent@48b87b12 took 2047238 ms (warning threshold is 5000 ms)  
2019-07-31 02:52:14,245 ERROR \[Caesium-1-3\] \[scheduler.caesium.impl.SchedulerQueueWorker\] executeJob Unhandled exception thrown by job QueuedJob\[jobId=BackupJob,deadline=1564534800000\]  
java.lang.OutOfMemoryError: Java heap space  
2019-07-31 02:52:14,245 ERROR \[pool-9-thread-1\] \[common.util.concurrent.Futures$CombinedFuture\] setExceptionAndMaybeLog input future failed.  
java.lang.OutOfMemoryError: Java heap space  
2019-07-31 02:52:14,245 ERROR \[pool-9-thread-1\] \[common.util.concurrent.Futures$CombinedFuture\] setExceptionAndMaybeLog input future failed.  
java.lang.OutOfMemoryError: Java heap space  
2019-07-31 02:52:14,245 ERROR \[pool-9-thread-1\] \[common.util.concurrent.Futures$CombinedFuture\] setExceptionAndMaybeLog input future failed.  
java.lang.OutOfMemoryError: Java heap space  
2019-07-31 02:52:14,245 ERROR \[pool-9-thread-1\] \[common.util.concurrent.Futures$CombinedFuture\] setExceptionAndMaybeLog input future failed.  
java.lang.OutOfMemoryError: Java heap space  
2019-07-31 02:52:14,245 ERROR \[pool-9-thread-1\] \[common.util.concurrent.Futures$CombinedFuture\] setExceptionAndMaybeLog input future failed.  
java.lang.OutOfMemoryError: Java heap space  
2019-07-31 02:52:14,245 ERROR \[pool-9-thread-1\] \[common.util.concurrent.Futures$CombinedFuture\] setExceptionAndMaybeLog input future failed.  
java.lang.OutOfMemoryError: Java heap space  
2019-07-31 02:52:14,245 ERROR \[pool-9-thread-1\] \[common.util.concurrent.Futures$CombinedFuture\] setExceptionAndMaybeLog input future failed.  
java.lang.OutOfMemoryError: Java heap space  
2019-07-31 02:52:14,245 ERROR \[pool-9-thread-1\] \[common.util.concurrent.Futures$CombinedFuture\] setExceptionAndMaybeLog input future failed.  
java.lang.OutOfMemoryError: Java heap space  
2019-07-31 02:52:14,245 ERROR \[pool-9-thread-1\] \[common.util.concurrent.Futures$CombinedFuture\] setExceptionAndMaybeLog input future failed.  
java.lang.OutOfMemoryError: Java heap space  
2019-07-31 02:52:14,245 ERROR \[pool-9-thread-1\] \[common.util.concurrent.Futures$CombinedFuture\] setExceptionAndMaybeLog input future failed.  
java.lang.OutOfMemoryError: Java heap space


author: Srikanth Muthyala
body: 02:05:54,632 WARN \[Caesium-1-1\] \[impl.schedule.caesium.JobRunnerWrapper\] runJob Scheduled job LaasPerformanceLoggingJob#LaasPerformanceLoggingJob completed unsuccessfully with response JobRunnerResponse\[runOutcome=ABORTED,message='LaaS performance logging is turned off'\]  
2019-07-30 02:06:03,508 WARN \[alert-dispatch:thread-1\] \[confluence.alert-log\] log 1564448763508 ; WARNING ; JVM ; JVM-1002 ; Garbage collection exceeded time limit ; not-detected ; ; ; {"durationInMillis":4668,"windowInMillis":20000,"limitPercent":10,"threadMemoryAllocations":"","threadDump":\[\]}  
2019-07-30


author: Srikanth Muthyala
body: 2019-07-31 02:52:14,245 ERROR \[pool-9-thread-1\] \[common.util.concurrent.Futures$CombinedFuture\] setExceptionAndMaybeLog input future failed.  
java.lang.OutOfMemoryError: Java heap space


author: Milan Chheda [INFOSYSTA]
body: [@Srikanth Muthyala](/t5/user/viewprofilepage/user-id/3511255) - It's pretty clear from logs

```
java.lang.OutOfMemoryError: Java heap space
```

You need to configure your JVM to increase the memory.

It's well-documented on Atlassian too:

<https://confluence.atlassian.com/confkb/confluence-crashes-due-to-outofmemoryerror-java-heap-space-error-183469749.html>

<https://confluence.atlassian.com/confkb/how-to-fix-out-of-memory-errors-by-increasing-available-memory-154071.html>


author: Nic Brough -Adaptavist-
body: All we can tell you from a report of "it goes wrong" is that "you need to fix it"

To fix it, you need to know what is wrong. The best place to start working that out is to read the logs and do some monitoring. When it stops, what do the logs say? What is the server doing? High memory/cpu/disk/other-resource usage?

comments: author: Srikanth Muthyala
body: ERROR \[pool-9-thread-1\] \[common.util.concurrent.Futures$CombinedFuture\] setExceptionAndMaybeLog input future failed.  
java.lang.OutOfMemoryError: Java heap space


author: JP _AC Bielefeld Leader_
body: Well,

it's pretty obvious:

\* Add more RAM to your server

\* Configure your Java VM to use more heap space

Check:

<https://confluence.atlassian.com/confkb/how-to-fix-out-of-memory-errors-by-increasing-available-memory-154071.html>

Best

JP


Tags: confluence-server

server