-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial run requires 2+ GB of RAM #146
Comments
Hmm which JVM version are you using and what JVM flags are you passing to start up the service? I'm able to get it to boot with 256M of heap without any issues: # java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
# export SPRING_CONFIG_LOCATION=classpath:/config/base.yml,config.yml
# java -XX:+UnlockExperimentalVMOptions -XshowSettings:vm -Xmx256M -jar kafka-webview-ui-*.jar
VM settings:
Max. Heap Size: 256.00M
Ergonomics Machine Class: server
Using VM: Java HotSpot(TM) 64-Bit Server VM
_ __ __ _ __ __ _ __ ___
| |/ / / _| | \ \ / / | | \ \ / (_)
| ' / __ _| |_| | ____ _ \ \ /\ / /__| |__ \ \ / / _ _____ __
| < / _` | _| |/ / _` | \ \/ \/ / _ \ '_ \ \ \/ / | |/ _ \ \ /\ / /
| . \ (_| | | | < (_| | \ /\ / __/ |_) | \ / | | __/\ V V /
|_|\_\__,_|_| |_|\_\__,_| \/ \/ \___|_.__/ \/ |_|\___| \_/\_/
....<snip>.......
2019-03-20 16:50:15.666 INFO 14443 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2019-03-20 16:50:15.669 INFO 14443 --- [ main] o.s.kafka.webview.ui.Application : Started Application in 8.246 seconds (JVM running for 8.813)
|
Depending on which version of Java you're running, and what JVM options you are passing, you could be hitting this kubernetes/JVM issues: https://very-serio.us/2017/12/05/running-jvms-in-kubernetes/ |
I wrote some kubernetes yaml manifests to let kafka-webview running properly.
@Crim if you agree, I would like to contribute and prepare the project to run properly on kubernetes. I found a couple of possible improvements. Can we discuss about that? |
@bygui86 absolutely interested. What are your thoughts/suggestions? What I have here now for Docker is pretty much the bare minimum, and I don't feel personally tied to it in anyway :p |
@Crim I would suggest small stuffs:
I started already a prototype, that I should refine it a bit, but it seems I'm on the right path. After this I would review the Dockerfile for the minimum amount of required security (avoid root) and maybe also leveraging a bit more the building cache. Once done, I would probably also have a look at Helm, to produce a chart. Please let me know what you think and, if you want, how to proceed :) |
Those all sound like extremely useful and worthwhile features/changes to make! Feel free to send over PRs. My preference would be for more smaller iterative PRs over a single massive PR that does everything all at once. Just makes it easier to review :) Thanks! |
I totally agree. I will organise a series of branches and PRs. Something like:
After all these I would like to introduce also something really fancy to run integration tests :) testcontainers |
Sounds fantastic, I look forward to seeing your improvements :) |
I'm running kafka webview using docker and it consumes about 2GB of memory. I noticed the following rule in start.sh:
I tried adding
After that change, it consumes a lot less memory and it fixed my problem. |
Hey there.
Don't know if thats expected, but the app requires 2+GB of RAM available to boot.
If you set an upper limit of 2-3GB on it in Kubernetes/Docker, it crashes without booting.
That seems to be enormous ram to boot a web app
The text was updated successfully, but these errors were encountered: