Skip to content

reduce install framework logging during startup#1230

Open
stokpop wants to merge 7 commits intocloudfoundry:mainfrom
stokpop:reduce-cf-push-logging
Open

reduce install framework logging during startup#1230
stokpop wants to merge 7 commits intocloudfoundry:mainfrom
stokpop:reduce-cf-push-logging

Conversation

@stokpop
Copy link
Copy Markdown
Contributor

@stokpop stokpop commented Apr 2, 2026

This is for #1223

  • duplicate or similar log lines have been demoted to debug
  • so should be available if pushed with debug flag like the following (have not tested yet)
    • BP_DEBUG=true cf push <APP_NAME>
    • JBP_LOG_LEVEL=DEBUG cf push <APP_NAME>`
  • where possible added the version in consistent way between brackets: example: "Installing JVMKill Agent (1.17.0)"
  • added DependencyIdentifier interface method to lookup version from manifest where needed

After:

-----> Java Buildpack version 5.0.2
-----> Supplying Java
       Detected container: Spring Boot
       No JRE explicitly configured, using default: OpenJDK
       Selected JRE: OpenJDK
-----> Installing OpenJDK JRE
       Installing OpenJDK (17.0.18+10)
       Detected Java major version: 17
       Installing JVMKill Agent (1.17.0)
       Installing Memory Calculator (4.2.0)
       Memory Calculator installed: Loaded Classes: 15094, Threads: 250
-----> Installing frameworks [Java CF Env, PostgreSQL JDBC, Client Certificate Mapper, Container Security Provider, Java Opts]
       Installing Java CF Env (3.5.0)
       Installing PostgreSQL JDBC (42.7.8)
       Installing Client Certificate Mapper (2.0.1)
       Installing Container Security Provider (1.20.0)
       Installing Java Opts
-----> Supplying Spring Boot
       Loaded supply config: container=Spring Boot jre=OpenJDK version=17.0.18+10
-----> Finalizing Java
       Finalizing container: Spring Boot
-----> Finalizing JRE: OpenJDK
       Configuring JVMKill Agent
       Configuring Memory Calculator
-----> Finalizing frameworks [Java CF Env, PostgreSQL JDBC, Client Certificate Mapper, Container Security Provider, Java Opts]
       Configured Container Security Provider for runtime (priority 17)
-----> Configuring Java Opts
       Configured user JAVA_OPTS for runtime (priority 99)
-----> Finalizing Spring Boot
-----> Writing release configuration
       Release YAML written: /tmp/app/tmp/java-buildpack-release-step.yml
       Web process command: CALCULATED_MEMORY=$(/home/vcap/deps/0/jre/bin/java-buildpack-memory-calculator-4.2.0 --total-memory=$MEMORY_LIMIT --loaded-class-count=15094 --thread-count=250 --jvm-options="$JAVA_OPTS") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS="$JAVA_OPTS $CALCULATED_MEMORY" && MALLOC_ARENA_MAX=2 && $HOME/bin/application
       Java buildpack finalization complete

Before:

-----> Java Buildpack version 5.0.2
-----> Supplying Java
       Detected container: Spring Boot
       No JRE explicitly configured, using default: OpenJDK
       Selected JRE: OpenJDK
-----> Installing OpenJDK JRE
       Installing OpenJDK 17.0.18+10
-----> Installing openjdk 17.0.18+10
       Download [https://buildpacks.cloudfoundry.org/dependencies/openjdk/openjdk_17.0.18%2B10_linux_x64_any-stack_5c495a4f.tgz]
       Detected Java major version: 17
       Installing JVMKill Agent
-----> Installing jvmkill 1.17.0
       Download [https://java-buildpack.cloudfoundry.org/jvmkill/jammy/x86_64/jvmkill-1.17.0-RELEASE.so]
       JVMKill Agent installed to /tmp/contents2870301081/deps/0/jre/bin/jvmkill-1.17.0.so
       Installing Memory Calculator
-----> Installing memory-calculator 4.2.0
       Download [https://java-buildpack.cloudfoundry.org/memory-calculator/jammy/x86_64/memory-calculator-4.2.0.tgz]
       Memory Calculator installed: Loaded Classes: 15094, Threads: 250
       OpenJDK JRE installation complete
       JRE installation complete: OpenJDK 17.0.18+10
-----> Installing frameworks
       Detected frameworks: [Java CF Env,PostgreSQL JDBC,Client Certificate Mapper,Container Security Provider,Java Opts]
       Installing framework: Java CF Env
-----> Installing Java CF Env
-----> Installing java-cfenv 3.5.0
       Download [https://java-buildpack.cloudfoundry.org/java-cfenv/java-cfenv-3.5.0.jar]
       Installed Java CF Env version 3.5.0
       Installing framework: PostgreSQL JDBC
-----> Installing PostgreSQL JDBC driver
-----> Installing postgresql-jdbc 42.7.8
       Download [https://java-buildpack.cloudfoundry.org/postgresql-jdbc/postgresql-jdbc-42.7.8.jar]
       Installed PostgreSQL JDBC driver version 42.7.8
       Installing framework: Client Certificate Mapper
-----> Installing Client Certificate Mapper
-----> Installing client-certificate-mapper 2.0.1
       Download [https://java-buildpack.cloudfoundry.org/client-certificate-mapper/client-certificate-mapper-2.0.1.jar]
       Installed Client Certificate Mapper version 2.0.1
       Installing framework: Container Security Provider
-----> Installing Container Security Provider
-----> Installing container-security-provider 1.20.0
       Download [https://java-buildpack.cloudfoundry.org/container-security-provider/container-security-provider-1.20.0-RELEASE.jar]
       Installed Container Security Provider version 1.20.0
       Installing framework: Java Opts
-----> Supplying Spring Boot
       Loaded supply config: container=Spring Boot jre=OpenJDK version=17.0.18+10
-----> Finalizing Java
       Finalizing container: Spring Boot
-----> Finalizing JRE: OpenJDK
-----> Finalizing OpenJDK JRE configuration
       Configuring JVMKill Agent
       JVMKill Agent added to JAVA_OPTS
       Configuring Memory Calculator
       Memory Calculator configured
       OpenJDK JRE finalization complete
       JRE finalization complete
-----> Finalizing frameworks
       Finalizing frameworks: [Java CF Env,PostgreSQL JDBC,Client Certificate Mapper,Container Security Provider,Java Opts]
       Finalizing framework: Java CF Env
       Finalizing framework: PostgreSQL JDBC
       Finalizing framework: Client Certificate Mapper
       Finalizing framework: Container Security Provider
       Configured Container Security Provider for runtime (priority 17)
       Finalizing framework: Java Opts
-----> Configuring Java Opts
       Configured user JAVA_OPTS for runtime (priority 99)
-----> Finalizing Spring Boot
-----> Writing release configuration
       Release YAML written: /tmp/app/tmp/java-buildpack-release-step.yml
       Web process command: CALCULATED_MEMORY=$(/home/vcap/deps/0/jre/bin/java-buildpack-memory-calculator-4.2.0 --total-memory=$MEMORY_LIMIT --loaded-class-count=15094 --thread-count=250 --jvm-options="$JAVA_OPTS") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS="$JAVA_OPTS $CALCULATED_MEMORY" && MALLOC_ARENA_MAX=2 && $HOME/bin/application
       Java buildpack finalization complete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant