# Micro Payara configuration in effect

**URL:** <https://forum.payara.fish/t/micro-payara-configuration-in-effect/86>\
**Category:** Technical Discussion\
**Created:** [October 12, 2021, 5:26pm UTC](https://forum.payara.fish/t/micro-payara-configuration-in-effect/86 "2021-10-12T17:26:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![charlee\_ch](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.payara.fish/charlee_ch/32/51_2.png) [@charlee\_ch](https://forum.payara.fish/u/charlee_ch)\
**Post date:** [October 14, 2021, 1:05am UTC](https://forum.payara.fish/t/micro-payara-configuration-in-effect/86/2 "2021-10-14T01:05:01Z")

</div>

Hi,

Regarding to the `fish.payara.micro.impl.PayaraMicroImpl.java`[1] line 1856 and 1860 as the following: -

```java
    private void configureThreads() {
        if (this.maxHttpThreads != Integer.MIN_VALUE) {
            preBootCommands.add(new BootCommand("set", "configs.config.server-config.thread-pools.thread-pool.http-thread-pool.max-thread-pool-size=" + maxHttpThreads));
        }

        if (this.minHttpThreads != Integer.MIN_VALUE) {
            preBootCommands.add(new BootCommand("set", "configs.config.server-config.thread-pools.thread-pool.http-thread-pool.min-thread-pool-size=" + minHttpThreads));
        }
    }

```

We found that the `maxHttpThreads ` and `minHttpThreads` arguments passed via the Payara Micro Command Line Options will be appended to the `preboot` command file. This, within the Payara Micro, will help us to modify the `domain.xml` _on-the-fly during it starting up_. (We will not touch the `domain.xml` directly and let the `preboot` to do that for us.)

Moreover other arguments passed via the Payara Micro Command Line Options, .e.g. `--port <http-port-number>`, `--sslport <ssl-port-number>` and so on, also do the same thing within the `fish.payara.micro.impl.PayaraMicroImpl.java`.

Furthermore we are also able to create our customized `preboot` and `postboot`[2] as the same as we usually use via `asadmin` command as well. Anyhow _most of_ `asadmin` command are applicable within `preboot`and `postboot`, _but not all_ ! We should consult the documentation case by case.

[1] [fish.payara.micro.impl.PayaraMicroImpl.java line 1856 and 1860](https://github.com/payara/Payara/blob/master/appserver/extras/payara-micro/payara-micro-core/src/main/java/fish/payara/micro/impl/PayaraMicroImpl.java#L1856)  
[2] [Running asadmin commands using Preboot and Postboot Scripts](https://docs.payara.fish/community/docs/documentation/payara-micro/asadmin/pre-and-post-boot-scripts.html)

---

_[View the full topic](https://forum.payara.fish/t/micro-payara-configuration-in-effect/86)._
