# How to set quarkus properties?

**URL:** <https://forum.keycloak.org/t/how-to-set-quarkus-properties/15820>\
**Category:** Configuring the server\
**Created:** [June 2, 2022, 2:58pm UTC](https://forum.keycloak.org/t/how-to-set-quarkus-properties/15820 "2022-06-02T14:58:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vdahlberg](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/vdahlberg/32/5062_2.png) [@vdahlberg](https://forum.keycloak.org/u/vdahlberg)\
**Post date:** [June 2, 2022, 2:58pm UTC](https://forum.keycloak.org/t/how-to-set-quarkus-properties/15820/1 "2022-06-02T14:58:56Z")

</div>

I’m trying to set a quarkus configuration, but I can not find any trace of the property actually being used.

I’ve tried with setting`-Dquarkus.datasource.jdbc.max-lifetime=12H` in `JAVA_OPTS` and/or `quarkus.datasource.jdbc.max-lifetime=12H` in `conf/quarkus.properties` but I can’t find any trace of it actually being set in the logs or anything.

How can I verify that the configuration is actually used? Or am I not doing as intended? Followed the documentation [here](https://www.keycloak.org/server/configuration#_unsupported_server_options).

Also created in issue if this should be keycloak server configuration, [here](https://github.com/keycloak/keycloak/issues/12316).

---

<div class="post-metadata">

**Author:** ![redarccoder](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/redarccoder/32/5243_2.png) [@redarccoder](https://forum.keycloak.org/u/redarccoder)\
**Post date:** [June 3, 2022, 1:22pm UTC](https://forum.keycloak.org/t/how-to-set-quarkus-properties/15820/2 "2022-06-03T13:22:30Z")

</div>

As far as I know, you’re not supposed to change quarkus properties directly, and, from Keycloak 17.0.0 you’re supposed to pass that kind of configuration to your kc.sh/kc.bat script (like --db mysql --hostname …)

BTW, maybe you’re trying to make something else (like modifying the amount of memory quarkus reserves by default)?
