mirror of
https://github.com/alibaba/arthas.git
synced 2026-10-20 00:17:01 +00:00
chore: extend default session timeout to 3 hours
This commit is contained in:
@@ -104,7 +104,7 @@ DEFAULT_TELNET_PORT="3658"
|
||||
HTTP_PORT=
|
||||
DEFAULT_HTTP_PORT="8563"
|
||||
|
||||
# telnet session timeout seconds, default 1800
|
||||
# telnet session timeout seconds, default 10800
|
||||
SESSION_TIMEOUT=
|
||||
|
||||
# use specify version
|
||||
@@ -446,7 +446,7 @@ Options and Arguments:
|
||||
--target-ip <value> The target jvm listen ip, default 127.0.0.1
|
||||
--telnet-port <value> The target jvm listen telnet port, default 3658
|
||||
--http-port <value> The target jvm listen http port, default 8563
|
||||
--session-timeout <value> The session timeout seconds, default 1800 (30min)
|
||||
--session-timeout <value> The session timeout seconds, default 10800 (3h)
|
||||
--arthas-home <value> The arthas home
|
||||
--use-version <value> Use special version arthas
|
||||
--repo-mirror <value> Use special remote repository mirror, value is
|
||||
|
||||
@@ -194,7 +194,7 @@ public class Bootstrap {
|
||||
}
|
||||
|
||||
@Option(longName = "session-timeout")
|
||||
@Description("The session timeout seconds, default 1800 (30min)")
|
||||
@Description("The session timeout seconds, default 10800 (3h)")
|
||||
public void setSessionTimeout(Long sessionTimeout) {
|
||||
this.sessionTimeout = sessionTimeout;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ arthas.httpPort=8563
|
||||
arthas.ip=127.0.0.1
|
||||
|
||||
# seconds
|
||||
arthas.sessionTimeout=1800
|
||||
arthas.sessionTimeout=10800
|
||||
|
||||
#arthas.enhanceLoaders=java.lang.ClassLoader
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ public class ShellServerOptions {
|
||||
/**
|
||||
* Default time, in ms, that a shell session lasts for without being accessed before expiring.
|
||||
*/
|
||||
public static final long DEFAULT_SESSION_TIMEOUT = 30 * 60 * 1000; // 30 minutes
|
||||
public static final long DEFAULT_SESSION_TIMEOUT = 3 * 60 * 60 * 1000; // 3 hours
|
||||
|
||||
/**
|
||||
* Default time, in ms, that a server waits for a client to connect
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.taobao.arthas.core.shell;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
class ShellServerOptionsTest {
|
||||
|
||||
@Test
|
||||
void shouldDefaultSessionTimeoutToThreeHours() {
|
||||
assertThat(ShellServerOptions.DEFAULT_SESSION_TIMEOUT).isEqualTo(TimeUnit.HOURS.toMillis(3));
|
||||
assertThat(new ShellServerOptions().getSessionTimeout()).isEqualTo(TimeUnit.HOURS.toMillis(3));
|
||||
}
|
||||
}
|
||||
@@ -52,7 +52,7 @@ The target jvm listen http port, default is 8563
|
||||
|
||||
.TP
|
||||
.B --session-timeout <value>
|
||||
The session timeout time in seconds, default 1800 (30min)
|
||||
The session timeout time in seconds, default 10800 (3h)
|
||||
|
||||
.TP
|
||||
.B --arthas-home <value>
|
||||
|
||||
@@ -18,7 +18,7 @@ arthas.httpPort=8563
|
||||
arthas.ip=127.0.0.1
|
||||
|
||||
# seconds
|
||||
arthas.sessionTimeout=1800
|
||||
arthas.sessionTimeout=10800
|
||||
|
||||
#arthas.appName=demoapp
|
||||
#arthas.tunnelServer=ws://127.0.0.1:7777/ws
|
||||
|
||||
@@ -18,7 +18,7 @@ arthas.httpPort=8563
|
||||
arthas.ip=127.0.0.1
|
||||
|
||||
# seconds
|
||||
arthas.sessionTimeout=1800
|
||||
arthas.sessionTimeout=10800
|
||||
|
||||
#arthas.appName=demoapp
|
||||
#arthas.tunnelServer=ws://127.0.0.1:7777/ws
|
||||
|
||||
Reference in New Issue
Block a user