Coder Social home page Coder Social logo

My che container starts very slow about che HOT 13 CLOSED

freewind avatar freewind commented on August 29, 2024
My che container starts very slow

from che.

Comments (13)

freewind avatar freewind commented on August 29, 2024 1

Let me repeat the solution again here for anyone who needs it:

apt-get install haveged

from che.

TylerJewell avatar TylerJewell commented on August 29, 2024

I have never seen Che take more than a couple minutes to start even when I am running it within vm that only has 2 gb of ram.

-Tyler

On Sun, Jan 10, 2016 at 9:55 PM -0800, "freewind" [email protected] wrote:

From @eivantsov's video of starting che container in a digital ocean server, it just uses less than 3 minutes in total (including downloading che images, creating workspace, until it's ready):

https://www.youtube.com/watch?v=UVucYKI5NHs

But for me, most time of the it's pretty slow. The fastest record is about 10 minutes, and most of the time, it needs me 20 minutes or so to do the same thing as in eivantsov's video. And the longest record is 60 minutes (starting che container: 41minutes, other things 20 minutes)

So I wonder what's your configurations in your digital ocean? Mine is:

4GB Ram
60GB SSD
Disk San Francisco 1


Reply to this email directly or view it on GitHub.

from che.

 avatar commented on August 29, 2024

Are you talking about Che in Docker right now?

I have just tried it on a clean Digital Ocean machine, and it looks ok for me.

What I have noticed with Digital Ocean, is that when you start a clean machine, install java and run tomcat, the war gets deployed very slowly. To fix it, I had to change Java security options - https://www.digitalocean.com/community/questions/fresh-tomcat-takes-loong-time-to-start-up

You may change$JAVA_HOME/jre/lib/security/java.security and replace securerandom.source=file:/dev/random with securerandom.source=file:/dev/urandom

from che.

 avatar commented on August 29, 2024

@freewind any update on this one? Did you try using other VM providers to make sure this is a Digital Ocean thing? Did you try my instructions?

from che.

freewind avatar freewind commented on August 29, 2024

@eivantsov Sorry I've taken a long sick-leave these days, will continue the work maybe next week. I will report if I have any updates on these issues. Thanks for your help

from che.

TylerJewell avatar TylerJewell commented on August 29, 2024

@freewind Could you see solution to #253. This may be related.

from che.

freewind avatar freewind commented on August 29, 2024

@TylerJewell, thanks for the link, but my che is always running on the digital ocean, not on a local virtual machine.

I tried with the codenvy/che:nightly and 4.0.0-RC3 yesterday, the first several times the starting was very fast, just about 10 or 20 seconds, but suddenly it began to cost more than 15 minutes to start the server, without any changes. It didn't be faster even if I rebooted the server.

from che.

 avatar commented on August 29, 2024

Are you still running Docker in Docker or following https://eclipse-che.readme.io/docs/usage-docker?

from che.

freewind avatar freewind commented on August 29, 2024

@eivantsov I went this way: https://eclipse-che.readme.io/docs/usage-docker#using-docker-syntax, is it the "docker in docker" you mentioned?

To make it accurate, I used this command:

docker run -ti --net=host -v /var/run/docker.sock:/var/run/docker.sock -v /home/user/che/lib:/home/user/che/lib-copy -v /home/user/che/workspaces:/home/user/che/workspaces -v /home/user/che/tomcat/temp/local-storage:/home/user/che/tomcat/temp/local-storage -e DOCKER_MACHINE_HOST=198.199.105.97 codenvy/che:nightly

The only difference is the -e DOCKER_MACHINE_HOST=198.199.105.97 part.

from che.

 avatar commented on August 29, 2024

It looks like you are constantly running into this issue - https://www.digitalocean.com/community/questions/fresh-tomcat-takes-loong-time-to-start-up

We're investigating a fix - exporting the right JAVA_OPST for both Che server and ws-agent.

from che.

freewind avatar freewind commented on August 29, 2024

@eivantsov Thanks so much, I just install apt-get install haveged as that page gives, and it's starting very fast now.

I remember you have given me this link before and I should followed that solution, and I totally forget to install it in new servers. Thanks again!

from che.

 avatar commented on August 29, 2024

We will add these opts for both servers anyway. it looks like it is a good thing to do.

from che.

jiri-kulik avatar jiri-kulik commented on August 29, 2024

Hi,
I know this is old but found it when researching the same issue on google cloud. Is it possible that:

  1. the issue still exists
  2. applies also for google?
    The start takes > 15 minutes for me, during which cpu is used just for a few seconds.
    Haven't tried to install haveged yet, still searching for possible cause.

from che.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.