Feng Xi
Feng Xi

Reputation: 1

spring boot takes like forever to start up in Openshift

I'm running a spring boot 1.4.3 app in openshift origin 1.3.

It takes more than 20 minutes to bring spring bootup.

the docker base container I'm using is alpine:3.4 with opendk8-jre.

the spring boot embedded container is using default tomcat one. I've installed the haveged and set -Djava.security.egd=file:/dev/./urandom

but if I run the image itself with docker run(I'm not using openshift), it can start up..

any idea why ?

Upvotes: 1

Views: 1312

Answers (1)

Could it be the case that you don't have a maven proxy setup and are downloading all dependencies?

If it's the case your logs likely show that you are donwloading the same deps over and over.

run this command to see the logs:

oc logs _POD_NAME_

Also, have you tried the same in OpenShift Dev Preview and got similar results?

Upvotes: 0

Related Questions