Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Just installed Confluence, but it's terribly slow

I Just installed Confluence, but after I login, everything loads extremely slow.
Each refresh takes serveral minutes, each click on a new page or even the configuration sites too.
I'm using CentOS 7 in the most recent version. (Fresh install, just used for Confluence)

In the Confluence Logfiles I can find several exceptions of Java "NotifyStuckThreadDetected"

16-Sep-2019 10:46:27.023 WARNING [Catalina-utility-1] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread [http-nio-8090-exec-8] (id=[221]) has been active for [63,446] milliseconds (since [9/16/19 10:45 AM]) to serve the same request for [http://10.199.10.6:8090/admin/viewgeneralconfig.action] and may be stuck (configured threshold for this StuckThreadDetectionValve is [60] seconds). There is/are [1] thread(s) in total that are monitored by this Valve and may be stuck.
java.lang.Throwable
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
[...]
16-Sep-2019 10:47:47.033 WARNING [Catalina-utility-1] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadCompleted Thread [http-nio-8090-exec-8] (id=[221]) was previously repo rted to be stuck but has completed. It was active for approximately [140,416] milliseconds.

At the moment, I use the default port 8090, and have no SSL Certificate till now.
So this is plain http.
The problem occours on different workstations, with different browsers.
Using the IP Address instead of the URL does not work either.
Same thing with the local browser.

 

Does anyone know how I can fix this error?
If any additional information or logfiles are needed, I will provide them as neccessary.

1 answer

@Manuel Finsterriegler 

Hi Manuel

 

welcome to the Atlassian community.

How do the specs of your confluence server look like (CPU, RAM etc), which DMBS are you using? 

 

Cheers

Kurt

Hi!

It's installed in an ESXi VM, with 4 Cores and 8Gb of Ram, the Host CPU is an Intel Xeon E5-4620
As Database I'm using Postgresql

@Manuel Finsterriegler 

 

How much Memory is configured for confluence instance?

In addition one thing to check would be the disk io, see 

https://confluence.atlassian.com/kb/testing-disk-access-speed-for-a-java-application-818577561.html

This is my memory configuration in confluence/bin/setenv.sh:

[...]
CATALINA_OPTS="-Xms2048m -Xmx4096m -XX:+UseG1GC ${CATALINA_OPTS}"
[...]

Here ist the disk io diag:

java -Djava.io.tmpdir=/opt/atlassian -jar support-tools.jar
Benchmark: RandomAccessFile


TOTALS
---- ---- ---- ---- ----
stat avg median min max
---- ---- ---- ---- ----
open 69.537 60.621 45.125 1.224.352
r/w 19.672 16.966 11.400 197.933
close 12.464 10.344 7.219 232.471
delete 46.916 41.026 30.037 186.440
---- ---- ---- ---- ----
All times are in nanoseconds.

For testing purposes, I reinstalled confluence on Ubuntu 18.04 -> Same Problem.
Also, on both systems, I upgraded RAM and CPU to 12GB and 4 Cores.
While loading the Webpage, serveral java/confluence processes eat up nearly 100% of all cores.

@Manuel Finsterriegler 

 

The specs look good so far from my point of view, also the io values are fine.

The next logical step would be to take a threaddump while you see the high cpu usage and to check which threads consume most of the resources 

https://confluence.atlassian.com/doc/generating-a-thread-dump-188095.html

and

https://confluence.atlassian.com/doc/generating-a-thread-dump-externally-182158040.html

will guide you there.

Could you also share the whole log file of your confluence instance?

 

Cheers

Kurt

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

342 views 23 8
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you