Problem in profiling JME game in NetBeans profiler

why I cant profile it in Netbeans profiler?

Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds (Protocol version: 17)
Profiler Agent Error: Timed out trying to establish connection with client
Profiler Agent: Initializing...
Profiler Agent: Options: >C:\Users\username\AppData\Roaming\.jmonkeyplatform\v3.2.1-stable-sdk3\lib,5140,10<
Profiler Agent: Initialized successfully
Profiler Agent: 250 classes cached.
C:\Users\yn\AppData\Roaming\.jmonkeyplatform\v3.2.1-stable-sdk3\var\cache\executor-snippets\profile.xml:64: Java returned: -1
BUILD FAILED (total time: 10 seconds)

While this will not fix your problem. But you might as well use the VisualVM as a standalone version. Depending on the Java version you use, it might not be shipped bundled anymore but the latest can be found from