Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ declare global {
process: number;
memory: number;
threads: number;
threaddump: number;
logfile: number;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const DEFAULT_CONFIG: SBASettings = {
process: 2500,
memory: 2500,
threads: 2500,
threaddump: 2500,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't you keep the same value from before as default?

logfile: 1000,
},
hideInstanceUrl: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import moment from 'moment';
import { take } from 'rxjs/operators';

import subscribing from '@/mixins/subscribing';
import sbaConfig from '@/sba-config';
import Instance from '@/services/instance';
import { concatMap, delay, retryWhen, timer } from '@/utils/rxjs';
import { VIEW_GROUP } from '@/views/ViewGroup';
Expand Down Expand Up @@ -127,7 +128,7 @@ export default {
},
createSubscription() {
this.errorFetch = null;
return timer(0, 1000)
return timer(0, sbaConfig.uiSettings.pollTimer.threaddump)
.pipe(
concatMap(this.fetchThreaddump),
retryWhen((err) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ public static class PollTimer {
*/
private int threads = 2500;

/**
* Time in milliseconds to refresh data in threaddump view.
*/
private int threaddump = 2500;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't you keep the same value from before as default?


/**
* Time in milliseconds to refresh data in logfile view.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ public void should_return_defaults_for_pollTimers() {
.expectHeader().contentTypeCompatibleWith("application/javascript")
.expectBody(String.class)
.value((body) -> assertThat(body).contains("\"pollTimer\""))
.value((body) -> assertThat(body).contains("\"cache\":2500"));
.value((body) -> assertThat(body).contains("\"cache\":2500"))
.value((body) -> assertThat(body).contains("\"threaddump\":2500"));
//@formatter:on
}

Expand Down