title: JProfiler Agent issue with id and config parameter
body: <p>We are currently using JProfiler 8.0.4 in <a href="http://resources.ej-technologies.com/jprofiler/help/doc/indexRedirect.html?http&amp;&amp;&amp;resources.ej-technologies.com/jprofiler/help/doc/helptopics/profiling/modes.html" rel="nofollow">Prepare for Profiling"</a> mode on our Cent OS machines together with Tomcat 6 and Java 7. We use JProfiler with a floating license. We extracted the JProfiler Linux Archive on the remote servers.</p>
  
  <p>Tomcat is managed by Tanuki Wrapper. Here is our Config</p>
  
  <pre><code>wrapper.java.additional.101=-agentpath:${jprofiler.path}/bin/linux-x64/libjprofilerti.so=port=8849,nowait
  </code></pre>
  
  <p>This works well and when starting up we find this in the logs</p>
  
  <pre><code>INFO   | jvm 1    | main    | 2014/03/04 10:06:41.872 | JProfiler&gt; Don't wait for frontend to connect.
  INFO   | jvm 1    | main    | 2014/03/04 10:06:41.872 | JProfiler&gt; Protocol version 38
  INFO   | jvm 1    | main    | 2014/03/04 10:06:41.872 | JProfiler&gt; Using JVMTI
  INFO   | jvm 1    | main    | 2014/03/04 10:06:41.872 | JProfiler&gt; JVMTI version 1.1 detected.
  INFO   | jvm 1    | main    | 2014/03/04 10:06:41.873 | JProfiler&gt; 64-bit library
  INFO   | jvm 1    | main    | 2014/03/04 10:06:41.873 | JProfiler&gt; Starting up without initial configuration.
  INFO   | jvm 1    | main    | 2014/03/04 10:06:41.873 | JProfiler&gt; Listening on port: 8849.
  INFO   | jvm 1    | main    | 2014/03/04 10:06:41.873 | JProfiler&gt; Instrumenting native methods.
  INFO   | jvm 1    | main    | 2014/03/04 10:06:41.873 | JProfiler&gt; Can retransform classes.
  INFO   | jvm 1    | main    | 2014/03/04 10:06:41.873 | JProfiler&gt; Can retransform any class.
  INFO   | jvm 1    | main    | 2014/03/04 10:06:41.873 | JProfiler&gt; Native library initialized
  INFO   | jvm 1    | main    | 2014/03/04 10:06:42.074 | JProfiler&gt; VM initialized
  </code></pre>
  
  <p>Finally we are connecting with our JProfiler Clients to the agents and everythings fine. </p>
  
  <p>As mentioned in <a href="http://resources.ej-technologies.com/jprofiler/help/doc/indexRedirect.html?http&amp;&amp;&amp;resources.ej-technologies.com/jprofiler/help/doc/helptopics/profiling/modes.html" rel="nofollow">1</a> </p>
  
  <blockquote>
    <p>, it's also possible to append ,config=[config file] and ,id=[id] parameters to instruct the profiling agent to take the profiling settings from a particular session in a particular config file. If you connect with the same profiling settings, no classes will have to be retransformed.</p>
  </blockquote>
  
  <p>but if we add config and id like this
  wrapper.java.additional.101=-agentpath:${jprofiler.path}/bin/linux-x64/libjprofilerti.so=port=8849,nowait,id=${jprofiler.id},config=${jprofiler.config.path} the VM cannot start up because JProfiler asks for an license.</p>
  
  <pre><code>INFO   | jvm 5    | main    | 2014/03/04 10:05:30.475 | JProfiler&gt; Don't wait for frontend to connect.
  INFO   | jvm 5    | main    | 2014/03/04 10:05:30.475 | JProfiler&gt; Protocol version 38
  INFO   | jvm 5    | main    | 2014/03/04 10:05:30.475 | JProfiler&gt; Using JVMTI
  INFO   | jvm 5    | main    | 2014/03/04 10:05:30.475 | JProfiler&gt; JVMTI version 1.1 detected.
  INFO   | jvm 5    | main    | 2014/03/04 10:05:30.475 | JProfiler&gt; 64-bit library
  INFO   | jvm 5    | main    | 2014/03/04 10:05:30.475 | JProfiler&gt; Using config file /path/to/config/jprofiler-config.xml (id: 100)
  INFO   | jvm 5    | main    | 2014/03/04 10:05:30.475 | JProfiler&gt; Listening on port: 8849.
  INFO   | jvm 5    | main    | 2014/03/04 10:05:30.475 | JProfiler&gt; Instrumenting native methods.
  INFO   | jvm 5    | main    | 2014/03/04 10:05:30.475 | JProfiler&gt; Can retransform classes.
  INFO   | jvm 5    | main    | 2014/03/04 10:05:30.475 | JProfiler&gt; Can retransform any class.
  INFO   | jvm 5    | main    | 2014/03/04 10:05:30.476 | JProfiler&gt; Native library initialized
  ERROR  | wrapper  | main    | 2014/03/04 10:05:30.614 | JVM exited while loading the application.
  INFO   | jvm 5    | main    | 2014/03/04 10:05:30.614 | JProfiler&gt; VM initialized
  INFO   | jvm 5    | main    | 2014/03/04 10:05:30.614 | JProfiler&gt; Using dynamic instrumentation
  INFO   | jvm 5    | main    | 2014/03/04 10:05:30.615 | JProfiler&gt; Time measurement: elapsed time
  INFO   | jvm 5    | main    | 2014/03/04 10:05:30.615 | JProfiler&gt; CPU profiling enabled
  INFO   | jvm 5    | main    | 2014/03/04 10:05:30.615 | JProfiler&gt; ERROR: Invalid license key.
  </code></pre>
  
  <p>Here are my questions: </p>
  
  <ol>
  <li>Anyone knows how to tell the agent about the license?</li>
  <li>Anyone used this settings in a production setup?</li>
  </ol>
  
  <p>Regards,</p>
  
  <p>Andreas</p>