We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 954c0a6 commit 87c404cCopy full SHA for 87c404c
src/main/java/de/codecentric/performance/agent/allocation/AllocationProfilingAgent.java
@@ -4,6 +4,7 @@
4
import java.io.StringWriter;
5
import java.lang.instrument.Instrumentation;
6
import java.lang.management.ManagementFactory;
7
+import java.util.concurrent.TimeUnit;
8
9
import javax.management.MBeanServer;
10
import javax.management.ObjectName;
@@ -47,7 +48,7 @@ public void run() {
47
48
AgentLogger.log("Could not register Agent MBean in 10 minutes.");
49
return;
50
}
- Thread.sleep(10000l);
51
+ TimeUnit.SECONDS.sleep(10);
52
mbs = ManagementFactory.getPlatformMBeanServer();
53
54
mbs.registerMBean(new Agent(), new ObjectName("de.codecentric:type=Agent"));
0 commit comments