Giter Club home page Giter Club logo

Comments (1)

Param-S avatar Param-S commented on May 31, 2024 1

Effect of CDS on startup and memory.

Startup time measure by capturing timestamp before invoking the Java command & after server started up. Like

in Dockerfile:

 ///CMD ["java", "-jar", "/javaAction/build/libs/javaAction-all.jar"]
CMD ["/bin/bash", "/javaAction/run.sh"]

in run.sh:

date +%H:%M:%S:%N-%Z   /* capture the time before invoking java command */
java -jar /javaAction/build/libs/javaAction-all.jar

in Proxy.java:

    public void start() {
        server.start();
                  **/* capture the time after the Http server start */**
                  ZoneId zoneId = ZoneId.of("UTC");
                 ZonedDateTime ctime = ZonedDateTime.now(zoneId);
                 System.out.println(ctime.toString());
    }

With this change, I measured the startup time for 50 iterations & server starts up faster with CDS which is evident from the below graph.

screen shot 2018-03-01 at 4 38 06 pm

Memory Usage:

CONTAINER ID        NAME                CPU %               MEM USAGE / LIMIT     MEM %               NET I/O             BLOCK I/O           PIDS
388eea3db27f        Xshare       0.11%               17.95MiB / 15.67GiB   0.11%               648B / 0B           0B / 4.1kB          23
16482b3afcc5        Default      0.13%               19.56MiB / 15.67GiB   0.12%               648B / 0B           0B / 4.1kB          23

Opened PR #21 to enable CDS.

from openwhisk-runtime-java.

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.