shrestha-mausam opened a new issue, #6917:
URL: https://github.com/apache/netbeans/issues/6917
### Body
These are the instructions on how to setup Netbeans Profiler for a remote
system from the Netbeans UI.
**Step 1: Make sure the target application is configured to run using Java
6+. Click to update steps for profiling JDK 5 applications.**
_My remote system is using Payara Community Edition 5 on JDK 11._
**Step 2: If you have not done it before create a Remote profiling pack for
the selected OS & JVM and upload it to the remote system. Remote profiling pack
root directory will be referred to as <remote>.
&
Step 3: If you have not run profiling on the remote system yet, run the
<remote>/bin/calibrate.sh script first to calibrate the profiler.**
_I created the remote profiling pack, transferred it over to the remote
system, and ran the calibration script. It opened up a console window for a bit
-> printed out some contents -> then closed immediately. I took that as the
script running successfully._
Step 4: Add the following parameter(s) to the application startup script
(copy to clipboard):
-agentpath:<remote>/lib/deployed/jdk16/mac/libprofilerinterface.jnilib=<remote>/lib,5140
I added this as command line option in the java command for the asadmin.bat
startup script that starts my payara server.
**Step 5: Start the target application. The process will wait for the
profiler to connect.**
_I started the application, I am not sure that the server is waiting for the
profiler to connect as I could access the admin console and other applications.
There is however an option inside the admin console to configure a profiler.
These are the thing it requests, so if you know the correct values to put in
for those option - please let me know._
_- Profiler Name:
- Class Path:
- Native Library Path:
- JVM option: I am guessing that this means to put in the -agentPath option
we had before_
**Step 6: Submit this dialog and click the Attach button to connect to the
target application and resume its execution.**
_I submitted the dialog and clicked on the attach button, nothing happens._
I created [this stack overflow
post](https://stackoverflow.com/questions/77730257/how-to-setup-netbeans-profiler-for-payara-server-deployed-in-remote-windows-hostl)
as well as [this
Discussion](https://github.com/apache/netbeans/discussions/6894l) but nobody
has replied to me yet. If I could get some directions or if someone know how to
do it, it would be really helpful.
### Committer
- [X] I acknowledge that I am a maintainer/committer in the Apache NetBeans
project.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists