Comments (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.
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)
- HTTP requests/responses not correctly parsed in expected format in webactions HOT 3
- about custom jre HOT 2
- build openwhisk-runtime-java project error HOT 1
- Some source files miss Apache license headers HOT 1
- Multiple Distros for Java Runtimes HOT 3
- Java action that depends on packages jar file fails HOT 4
- Making Java Function return Future
- [Thought] Using Volumes for java actions HOT 3
- Support Scala Actions
- Add support for Kotlin actions HOT 5
- fix .travis it contains deploy section twice
- Update Travis to stop build earlier HOT 1
- java Actionruntime of jar confilcts HOT 1
- Travis build failure openwhisk-admin-tools dependency not found HOT 1
- add additional Volume to java run time. HOT 4
- Support OpenJDK 11 using new AdoptOpenJDK Docker image HOT 1
- Add support to run on Knative along with OpenWhisk
- Retroactively add openJ9 JDK version bump to changelog
- Look to update adoptopenjdk base image HOT 2
- Upgrade Gradle to min. of v5.0 as recommended for JDK 11 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openwhisk-runtime-java.