With -F flag:

    PS C:\Program Files\Java\jdk1.8.0_171\bin> .\jstack.exe -F 1256
    Attaching to process ID 1256, please wait...
    Debugger attached successfully.
    Server compiler detected.
    JVM version is 25.171-b11
    Deadlock Detection:

    No deadlocks found.

    Thread 10: (state = BLOCKED)
    Thread 9: (state = BLOCKED)
    Thread 8: (state = BLOCKED)
    Thread 7: (state = BLOCKED)
     - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
     - java.lang.ref.ReferenceQueue.remove(long) @bci=59, line=143 (Compiled frame)
     - java.lang.ref.ReferenceQueue.remove() @bci=2, line=164 (Compiled frame)
     - java.lang.ref.Finalizer$FinalizerThread.run() @bci=36, line=212 (Interpreted frame)
    Thread 6: (state = BLOCKED)
     - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
     - java.lang.Object.wait() @bci=2, line=502 (Compiled frame)
     - java.lang.ref.Reference.tryHandlePending(boolean) @bci=54, line=191 (Compiled frame)
     - java.lang.ref.Reference$ReferenceHandler.run() @bci=1, line=153 (Interpreted frame)
    Thread 1: (state = IN_NATIVE)
     - sun.management.OperatingSystemImpl.getSystemCpuLoad() @bci=0 (Interpreted frame)
     - sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method, java.lang.Object, java.lang.Object[]) @bci=0 (Interpreted frame)
     - sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) @bci=100, line=62 (Interpreted frame)
     - sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) @bci=6, line=43 (Compiled frame)
     - java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) @bci=56, line=498 (Compiled frame)
     - org.elasticsearch.monitor.Probes.getLoadAndScaleToPercent(java.lang.reflect.Method, java.lang.management.OperatingSystemMXBean) @bci=10, line=29 (Interpreted frame)
     - org.elasticsearch.monitor.os.OsProbe.getSystemCpuPercent() @bci=6, line=172 (Interpreted frame)
     - org.elasticsearch.monitor.os.OsProbe.osStats() @bci=5, line=528 (Interpreted frame)
     - org.elasticsearch.xpack.ml.MachineLearning.additionalSettings() @bci=130, line=315 (Interpreted frame)
     - org.elasticsearch.plugins.PluginsService.updatedSettings() @bci=61, line=209 (Interpreted frame)
     - org.elasticsearch.node.Node.<init>(org.elasticsearch.env.Environment, java.util.Collection) @bci=466, line=312 (Interpreted frame)
     - org.elasticsearch.node.Node.<init>(org.elasticsearch.env.Environment) @bci=5, line=252 (Interpreted frame)
     - org.elasticsearch.bootstrap.Bootstrap$5.<init>(org.elasticsearch.bootstrap.Bootstrap, org.elasticsearch.env.Environment) @bci=7, line=213 (Interpreted frame)
     - org.elasticsearch.bootstrap.Bootstrap.setup(boolean, org.elasticsearch.env.Environment) @bci=174, line=213 (Interpreted frame)
     - org.elasticsearch.bootstrap.Bootstrap.init(boolean, java.nio.file.Path, boolean, org.elasticsearch.env.Environment) @bci=164, line=326 (Interpreted frame)
     - org.elasticsearch.bootstrap.Elasticsearch.init(boolean, java.nio.file.Path, boolean, org.elasticsearch.env.Environment) @bci=13, line=136 (Interpreted frame)
     - org.elasticsearch.bootstrap.Elasticsearch.execute(org.elasticsearch.cli.Terminal, joptsimple.OptionSet, org.elasticsearch.env.Environment) @bci=210, line=127 (Interpreted frame)
     - org.elasticsearch.cli.EnvironmentAwareCommand.execute(org.elasticsearch.cli.Terminal, joptsimple.OptionSet) @bci=219, line=86 (Interpreted frame)
     - org.elasticsearch.cli.Command.mainWithoutErrorHandling(java.lang.String[], org.elasticsearch.cli.Terminal) @bci=78, line=124 (Interpreted frame)
     - org.elasticsearch.cli.Command.main(java.lang.String[], org.elasticsearch.cli.Terminal) @bci=47, line=90 (Interpreted frame)
     - org.elasticsearch.bootstrap.Elasticsearch.main(java.lang.String[], org.elasticsearch.bootstrap.Elasticsearch, org.elasticsearch.cli.Terminal) @bci=3, line=93 (Interpreted frame)
     - org.elasticsearch.bootstrap.Elasticsearch.main(java.lang.String[]) @bci=26, line=86 (Interpreted frame)