How to Setup Netbeans Profiler for Payara server deployed in remote windows host? #6894
Unanswered
shrestha-mausam
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
These are the instructions from Netbeans 16 when I try to setup a remote profiling for Manually Started remote Java Process.
Step 1: Make sure the target application is configured to run using Java 6+. Click to update steps for profiling JDK 5 applications. My web application is deployed on Payara Community edition 5 server based 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 > . I have created a remote profiling pack from netbeans and copied the files over to the remote host system
Step 3: If you have not run profiling on the remote system yet, run the \bin\calibrate.bat script first to calibrate the profiler. I ran this script although I did not have indication it ran correctly, a windows just popped and closed very fast. I am taking that as a sign that this script ran, please let me know if this is not correct
Step 4: Add the following parameter(s) to the application startup script (copy to clipboard):
This is the part I am not sure about. I have copied this line and inserted it as a < jvm-option /> in the domain.xml file for my payara server domain, after which the server starts but I now cannot access any applications or the admin console. I also set this value in the asadmin.bat script but this also does not seem to do anything. Because When I connect the profiler I do not see any indication in the Netbeans telemetry window or the objects windows about any statistics about the JVM
Step 5: Start the target application. The process will wait for the profiler to connect. I assume this just means to start the payara server
Step 6: Submit this dialog and click the Attach button to connect to the target application and resume its execution. Nothing happens when I click on the attach button
I have looked up tutorials for setting up Netbeans profiler for remote host but could not find any strong thorough reference. If someone could explain how to set it up,what am I doing wrong or could point me to some potential resources I would really appreciate it.
Beta Was this translation helpful? Give feedback.
All reactions