/JavaAirLift

Example journey of a Java customer

Primary LanguageJava

JavaAirLift Presentation notes

  • The env vars can't be SPRING_DATASOURCE_* in the initial configuration because of Spring's precedence rules.

    • If we used SPRING_DATASOURCE_* then Spring would always use those strings and we would never be able to connect to the H2 DB
  • Use the commands below to confirm that the records are going to Postgres:

    psql --host=javaairliftdb.postgres.database.azure.com --port=5432 --username=freeberg101@javaairliftdb --dbname=postgres_demo
    SELECT * FROM product;
  • Set JAVA_OPTS to start continuous flight recordings:

    -XX:StartFlightRecording=disk=true,name=continuous_recording,dumponexit=true,maxsize=1024m,maxage=1d
  • And to dump the flight recording:

    jcmd <pid> JFR.dump name=continuous_recording filename="/home/recording1.jfr"