DZone
Database Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Database Zone > Using JMX to Profile Neo4j Via JDK and VIsualVM

Using JMX to Profile Neo4j Via JDK and VIsualVM

Romiko Derbynew user avatar by
Romiko Derbynew
·
Mar. 09, 12 · Database Zone · Interview
Like (0)
Save
Tweet
4.99K Views

Join the DZone community and get the full member experience.

Join For Free

it might be necessary to use jmx to profile neo4j, which we are currently doing to address performance issues with neo4j in combination with windows azure.

the first thing you will need to configure is additional switches in the neo4j-wrapper.conf file, here are mine:

wrapper.java.additional.1=-d64
wrapper.java.additional.1=-server
wrapper.java.additional.1=-xss2048k
wrapper.java.additional.2=-dcom.sun.management.jmxremote.port=6666
wrapper.java.additional.2=-dcom.sun.management.jmxremote.ssl=false
wrapper.java.additional.2=-dcom.sun.management.jmxremote.authenticate=false

notice, that i am using a port number here, and this will allow remote jmx profiling, the reason for this is that in azure, the neo4j instance runs in a different user context than the remote desktop user, so we need a way to attach to the process, with visualvm, we can do this via remote jmx.

just add the neo4j jmx listener as a remote host. then, if using the azure cloud:

  • remote desktop into the worker role hosting neo4j
  • install the jdk
  • install visualvm
  • configure the jmx connectionas outlined below
    right click local and click add jmx connection:

image

image

image

from here we can now do profiling of the neo4j application.

image

Neo4j Java Development Kit Java (programming language) Profile (engineering)

Published at DZone with permission of Romiko Derbynew, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Component Testing of Frontends: Karate Netty Project
  • What Is High Cardinality?
  • Event-Driven Hello World Program
  • Artificial Intelligence (AI) And Its Assistance in Medical Diagnosis

Comments

Database Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo