in Education by
I am trying to monitor GC information using VisualVM from local laptop and connecting to Neo4j (enterprise) application running on Oracle JDK 8 on remote EC2 instance running ubuntu 16. I am able to connect using JMX connection but the issue is I can't view anything on VisualGC (plugin). The message is "Not supported for this JVM". Based on this link and link, I ran the jstatd command on the remote but that didn't solve the problem. Next, looked at this link, I ran jstatd as neo4j user as this is the user under which Neo4j service runs. If I run jstatd as ubuntu user, the below command works but doesn't show any data on VisualGC. sudo -u neo4j jstatd -p 8888 -J-Djava.security.policy=/home/ubuntu/tools.policy -J-Djava.rmi.server.hostname=neo4j_ip_address Running above command as neo4j user gave this error: Could not create remote object access denied ("java.util.PropertyPermission" "java.rmi.server.ignoreSubClasses" "write") java.security.AccessControlException: access denied ("java.util.PropertyPermission" "java.rmi.server.ignoreSubClasses" "write") at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472) at java.security.AccessController.checkPermission(AccessController.java:884) at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) at java.lang.System.setProperty(System.java:792) at sun.tools.jstatd.Jstatd.main(Jstatd.java:139) Are these the correct permissions for tools.policy file? -rwxr-xr-x 1 neo4j adm 112 Mar 21 15:41 tools.policy Contents of tools.policy: grant codebase "file:/usr/lib/jvm/java-8-oracle/lib/tools.jar" { permission java.security.AllPermission; }; How do I get the VisualGC to work in this scenario? Are there any logs for VisualVM to know what's going on? Any other tools that I can use to visually see GC statistics? Any help is much appreciated. Thanks. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
What happen if you try to run jstatd with full path? sudo -u neo4j /usr/lib/jvm/java-8-oracle/bin/jstatd -p 8888 -J-Djava.security.policy=/home/ubuntu/tools.policy -J-Djava.rmi.server.hostname=neo4j_ip_address

Related questions

0 votes
    I have neo4j-server installed on remote linux server. This server using nginx and has virtual host. Here is ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 5, 2022 in Education by JackTerrance
0 votes
    Neo4j is and example of Document Store DB. (1)True (2)False...
asked Apr 23, 2021 in Technology by JackTerrance
0 votes
    Find the odd one out. (1)MongoDB (2)Neo4j (3)HBase (4)MySQL...
asked Apr 21, 2021 in Technology by JackTerrance
0 votes
    I have been trying to connect to my prod server from my dev using connect to remote (which gets ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 8, 2022 in Education by JackTerrance
0 votes
    How to define the number of parallel processes while communicating to remote hosts? (i)become (ii)forks (iii)pipelining (iv)become_method...
asked Jan 25, 2023 in General by JackTerrance
0 votes
    Which module can be used to copy files from remote machine to control machine? (i)copy (ii)move (iii)ping (iv)fetch...
asked Jan 25, 2023 in Technology by JackTerrance
0 votes
    What is the command to delete a branch in your remote repository? A. git delete branchname B. git branch -d branchname C. git push origin -d branchname D. None of the options...
asked Dec 20, 2022 in Technology by JackTerrance
0 votes
    Which type of remote URL does not require your user-name and password while for cloning or pushing? A. SSH url B. Https Url...
asked Dec 17, 2022 in Technology by JackTerrance
0 votes
    Which command can you use to update remote refs with local refs? A. git push B. git fetch C. git pull D. git update...
asked Dec 17, 2022 in Technology by JackTerrance
0 votes
    Last few weeks me and few colleagues are encountering crashes of Remote debugger tools in case we're using ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 12, 2022 in Education by JackTerrance
0 votes
    I would like to get the exit code of my remote command. It's normally pretty easy, but I need ... -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ubuntu@$ip_server bash...
asked Jun 1, 2022 in Education by JackTerrance
0 votes
    i am working on a MVC project in java. For my operation I use database many times. many times my ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    I'm currently trying Firebase Remote Config on Android. I gave a parameter a value: 2.2 but when ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 13, 2022 in Education by JackTerrance
0 votes
    Has anyone managed to run an ipynb Python notebook using a local kernel but connecting to a remote GitHub ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 2, 2022 in Education by JackTerrance
...