Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

exhibitor startup time will reach long time without errors. #277

Closed
xiaods opened this issue Nov 13, 2015 · 5 comments
Closed

exhibitor startup time will reach long time without errors. #277

xiaods opened this issue Nov 13, 2015 · 5 comments
Labels

Comments

@xiaods
Copy link

xiaods commented Nov 13, 2015

INFO  com.netflix.exhibitor.core.activity.ActivityLog  Exhibitor started [main]
Nov 13, 2015 5:39:03 AM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
INFO  org.mortbay.log  Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog [main]
INFO  org.mortbay.log  jetty-1.5.5 [main]
INFO  com.netflix.exhibitor.core.activity.ActivityLog  State: latent [ActivityQueue-0]

it take some minutes can start up the exhibitor jar. do you have any expecirents?

@xiaods
Copy link
Author

xiaods commented Jan 28, 2016

with testing, found the zookeeper will restart quickly, but the exhibitor is very slow to start the rest port service. don't know what reason.

@wpc009
Copy link

wpc009 commented Jun 19, 2017

Over a year without any response. We should really stop using this.

@xiaochuanyu xiaochuanyu added the Bug label Aug 7, 2017
@xiaochuanyu
Copy link
Contributor

Hi I'm a new maintainer for the project. I know this issue is absolutely ancient but I'd like to at least respond.
It looks like there are barely any logging to help debug issues like this.
I will try to add some logging at least as a first task #346.
I'm going to close this for now. You can re-open if this issue reproduces with newer versions of exhibitor.

@andremissaglia
Copy link

I know this thread is very old, but I also came across this issue.
After some unsuccessful research, I decided to set the log level to DEBUG, which lead me to the step where the program hangs:

DEBUG org.mortbay.log  Init SecureRandom. [main]

Basically, the problem was that there was not enough entropy for the program to read, and because /dev/random blocks the read when there is no entropy, the program hangs.

The solution, as described in this stackoverflow answer, is to make the JVM read from /dev/urandom, which is unblocking:

java -Djava.security.egd=file:/dev/urandom -jar exhibitor-1.7.1.jar -c file

@xiaods
Copy link
Author

xiaods commented Nov 23, 2018

from back, yes, for java container, it should be add -Djava.security.egd=file:/dev/urandom to your dockerfile.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants