mirror of
https://github.com/alibaba/arthas.git
synced 2026-11-14 06:45:19 +00:00
disable user stat. #21
This commit is contained in:
1 parent
afb3854c3b
commit
91b78650be
2 files changed
+7
-3
No files matched your search
@@ -43,7 +43,7 @@ public class Arthas {
|
|||||||
if (commandLine.getOptionValue("target-ip") == null) {
|
if (commandLine.getOptionValue("target-ip") == null) {
|
||||||
throw new IllegalStateException("as.sh is too old to support web console, " +
|
throw new IllegalStateException("as.sh is too old to support web console, " +
|
||||||
"please run the following command to upgrade to latest version:" +
|
"please run the following command to upgrade to latest version:" +
|
||||||
"\ncurl -sLk http://arthas.io/arthas/install.sh | sh");
|
"\ncurl -sLk https://alibaba.github.io/arthas/install.sh | sh");
|
||||||
}
|
}
|
||||||
configure.setIp((String) commandLine.getOptionValue("target-ip"));
|
configure.setIp((String) commandLine.getOptionValue("target-ip"));
|
||||||
configure.setTelnetPort((Integer) commandLine.getOptionValue("telnet-port"));
|
configure.setTelnetPort((Integer) commandLine.getOptionValue("telnet-port"));
|
||||||
|
|||||||
@@ -66,8 +66,9 @@ public class UserStatUtil {
|
|||||||
|
|
||||||
static class RemoteJob implements Runnable {
|
static class RemoteJob implements Runnable {
|
||||||
|
|
||||||
// private StringBuilder link = new StringBuilder("http://arthas.io/api/");
|
// private StringBuilder link = new StringBuilder("http://arthas.io/api/");
|
||||||
private StringBuilder link = new StringBuilder("http://arthas.io/api/");
|
// disable stat
|
||||||
|
private StringBuilder link = null;
|
||||||
|
|
||||||
private String resource;
|
private String resource;
|
||||||
|
|
||||||
@@ -89,6 +90,9 @@ public class UserStatUtil {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (link == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
link.append(resource);
|
link.append(resource);
|
||||||
if (queryData.length() != 0) {
|
if (queryData.length() != 0) {
|
||||||
|
|||||||
Reference in new issue
Block a user