title: How to attach to Payara from IntelliJ JProfiler Plugin?
body: <p>I want to use the show source (F4) context menu action in JProfiler. We have a very complex monolith multi module project and managing the class path in JProfiler is not an option. For this usecase one can also use the JProfiler IDE integration for Intellij with the JProfiler Intellij Plugin. If I start JProfiler in Intellij I cannot attach to my local Payara however. There are only two Intellij processes choosable. The Payara is running with the JProfiler agent and in standalone JProfiler I can attach to the Payara successfully. But in this case I cannot use the show source action. In the Intellij launch of JProfiler it seems not possible to recognize the running JProfiler agent. What am I doing wrong? Is this really not implemented?</p>
  <p>See screenshot of available processes, but the standalone payara is missing, see process list on the right.</p>
  <p><a href="https://i.stack.imgur.com/wDJ8u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wDJ8u.png" alt="missing process" /></a></p>
  <p>The suggested workaround via <code>Show Services</code> and running the installed <code>JProfiler Helper</code> service with local user doesn't work either, see the following error details from service:</p>
  <pre><code>Protokollname: System
  Quelle:        Service Control Manager
  Datum:         04.03.2021 15:29:43
  Ereignis-ID:   7034
  Aufgabenkategorie:Keine
  Ebene:         Fehler
  Schlüsselwörter:Klassisch
  Benutzer:      Nicht zutreffend
  Computer:      changed
  Beschreibung:
  Dienst &quot;JProfiler Helper&quot; wurde unerwartet beendet. Dies ist bereits 1 Mal passiert.
  Ereignis-XML:
  &lt;Event xmlns=&quot;http://schemas.microsoft.com/win/2004/08/events/event&quot;&gt;
    &lt;System&gt;
      &lt;Provider Name=&quot;Service Control Manager&quot; Guid=&quot;{555908d1-a6d7-4695-8e1e-26931d2012f4}&quot; EventSourceName=&quot;Service Control Manager&quot; /&gt;
      &lt;EventID Qualifiers=&quot;49152&quot;&gt;7034&lt;/EventID&gt;
      &lt;Version&gt;0&lt;/Version&gt;
      &lt;Level&gt;2&lt;/Level&gt;
      &lt;Task&gt;0&lt;/Task&gt;
      &lt;Opcode&gt;0&lt;/Opcode&gt;
      &lt;Keywords&gt;0x8080000000000000&lt;/Keywords&gt;
      &lt;TimeCreated SystemTime=&quot;2021-03-04T14:29:43.358009900Z&quot; /&gt;
      &lt;EventRecordID&gt;8797&lt;/EventRecordID&gt;
      &lt;Correlation /&gt;
      &lt;Execution ProcessID=&quot;876&quot; ThreadID=&quot;16752&quot; /&gt;
      &lt;Channel&gt;System&lt;/Channel&gt;
      &lt;Computer&gt;changed&lt;/Computer&gt;
      &lt;Security /&gt;
    &lt;/System&gt;
    &lt;EventData&gt;
      &lt;Data Name=&quot;param1&quot;&gt;JProfiler Helper&lt;/Data&gt;
      &lt;Data Name=&quot;param2&quot;&gt;1&lt;/Data&gt;
      &lt;Binary&gt;4A00500072006F00660069006C00650072002000480065006C007000650072000000&lt;/Binary&gt;
    &lt;/EventData&gt;
  &lt;/Event&gt;
  </code></pre>