Hi friends
Installed Java Profiler plugin in SDK.
Then right click on main class and select “Profile file” and got this error :
profile:
Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds (Protocol version: 16)
Profiler Agent Error: Timed out trying to establish connection with client
Profiler Agent: Initializing...
Profiler Agent: Options: >C:\Users\IDEA\AppData\Roaming\.jmonkeyplatform\3.1.0-beta1_xbuf-SNAPSHOT\lib,5140,10<
Profiler Agent: Initialized successfully
Profiler Agent: 250 classes cached.
Profiler Agent: 250 classes cached.
C:\Users\IDEA\AppData\Roaming\.jmonkeyplatform\3.1.0-beta1_xbuf-SNAPSHOT\var\cache\executor-snippets\profile.xml:64: Java returned: -1
BUILD FAILED (total time: 11 seconds)
Profile.xml :
<project name="{0} (profile)" default="profile" basedir=".">
<target name="-profile-check" if="netbeans.home">
<condition property="profiler.configured">
<or>
<contains string="${run.jvmargs.ide}" substring="-agentpath:" casesensitive="true"/>
<contains string="${run.jvmargs.ide}" substring="-javaagent:" casesensitive="true"/>
</or>
</condition>
</target>
<target name="profile" depends="-profile-check" if="profiler.configured">
<translate-classpath classpath="${classpath}" targetProperty="classpath-translated" />
<property name="run.jvmargs" value="" />
<property name="run.jvmargs.ide" value="" />
<property name="work.dir" value="${basedir}"/>
<property name="application.args" value="" />
<property name="java.failonerror" value="true"/>
<startprofiler/>
<java classpath="${classpath-translated}" classname="${classname}" dir="${work.dir}" jvm="${platform.java}" fork="true" failonerror="${java.failonerror}">
<jvmarg value="-Dfile.encoding=${encoding}"/>
<redirector inputencoding="${encoding}" outputencoding="${encoding}" errorencoding="${encoding}"/>
<jvmarg line="${run.jvmargs}" />
<jvmarg line="${run.jvmargs.ide}"/>
<arg line="${application.args}" />
<syspropertyset>
<propertyref prefix="run-sys-prop."/>
<mapper from="run-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
</java>
</target>
</project>
Anybody used Profiler in JME SDK before ?
This is my first time want to use a profiler.
Any help is appreciated