Skip to content

Commit

Permalink
Merge pull request #4607 from AfraHussaindeen/master_thread-threshold…
Browse files Browse the repository at this point in the history
…-fix

Update deployment.toml config related to configuring CarbonStuckThreadDetectionValve's threshold value.
  • Loading branch information
AfraHussaindeen authored Jun 10, 2024
2 parents f67cfe8 + 4a0b714 commit 7e853db
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,10 @@ be configured in the
file as shown below.

``` toml
[catalina.valves.valve.properties]
className = "org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve"
threshold="600"
[catalinaValves.CarbonStuckThreadDetectionValve]
threshold = "600"
```

- The ` className ` is the Java class name used for
the implementation. This must be set to
` org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve `
.
- The ` threshold ` gives the minimum duration in
seconds after which a thread is considered stuck. The default value
is 600 seconds.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,10 @@ be configured in the
file as shown below.

``` toml
[catalina.valves.valve.properties]
className = "org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve"
threshold="600"
[catalinaValves.CarbonStuckThreadDetectionValve]
threshold = "600"
```

- The ` className ` is the Java class name used for
the implementation. This must be set to
` org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve `
.
- The ` threshold ` gives the minimum duration in
seconds after which a thread is considered stuck. The default value
is 600 seconds.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,10 @@ be configured in the
file as shown below.

``` toml
[catalina.valves.valve.properties]
className = "org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve"
threshold="600"
[catalinaValves.CarbonStuckThreadDetectionValve]
threshold = "600"
```

- The ` className ` is the Java class name used for
the implementation. This must be set to
` org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve `
.
- The ` threshold ` gives the minimum duration in
seconds after which a thread is considered stuck. The default value
is 600 seconds.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,10 @@ be configured in the
file as shown below.

``` toml
[catalina.valves.valve.properties]
className = "org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve"
threshold="600"
[catalinaValves.CarbonStuckThreadDetectionValve]
threshold = "600"
```

- The ` className ` is the Java class name used for
the implementation. This must be set to
` org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve `
.
- The ` threshold ` gives the minimum duration in
seconds after which a thread is considered stuck. The default value
is 600 seconds.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,10 @@ When it comes to performance, the OS that the server runs plays an important rol
In multi-tenant mode, the Carbon runtime limits the thread execution time. That is, if a thread is stuck or taking a long time to process, Carbon detects such threads, interrupts, and stops them. Note that Carbon prints the current stack trace before interrupting the thread. This mechanism is implemented as an Apache Tomcat valve. Therefore, it should be configured in the `<IS_HOME>/repository/conf/deployment.toml` file as shown below.

``` toml
[catalina.valves.valve.properties]
className = "org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve"
threshold="600"
[catalinaValves.CarbonStuckThreadDetectionValve]
threshold = "600"
```

- The `className` is the Java class name used for the implementation. This must be set to `org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve`.

- The `threshold` gives the minimum duration in seconds after which a thread is considered stuck. The default value is 600 seconds.

## JVM settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,10 @@ When it comes to performance, the OS that the server runs plays an important rol
In multi-tenant mode, the Carbon runtime limits the thread execution time. That is, if a thread is stuck or taking a long time to process, Carbon detects such threads, interrupts, and stops them. Note that Carbon prints the current stack trace before interrupting the thread. This mechanism is implemented as an Apache Tomcat valve. Therefore, it should be configured in the `<IS_HOME>/repository/conf/deployment.toml` file as shown below.

``` toml
[catalina.valves.valve.properties]
className = "org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve"
threshold="600"
[catalinaValves.CarbonStuckThreadDetectionValve]
threshold = "600"
```

- The `className` is the Java class name used for the implementation. This must be set to `org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve`.

- The `threshold` gives the minimum duration in seconds after which a thread is considered stuck. The default value is 600 seconds.

## JVM settings
Expand Down

0 comments on commit 7e853db

Please sign in to comment.