diff --git a/core/src/main/java/hudson/util/RemotingDiagnostics.java b/core/src/main/java/hudson/util/RemotingDiagnostics.java index 61d97f91cbd7..993fe7849a44 100644 --- a/core/src/main/java/hudson/util/RemotingDiagnostics.java +++ b/core/src/main/java/hudson/util/RemotingDiagnostics.java @@ -176,7 +176,7 @@ public static FilePath getHeapDump(VirtualChannel channel) throws IOException, I private static class GetHeapDump extends MasterToSlaveCallable { @Override public FilePath call() throws IOException { - final File hprof = File.createTempFile("hudson-heapdump", "hprof"); + final File hprof = File.createTempFile("hudson-heapdump", ".hprof"); Files.delete(Util.fileToPath(hprof)); try { MBeanServer server = ManagementFactory.getPlatformMBeanServer();