"Connection refused" Message Is Displayed when jcmd/jrcmd Command Connects to Hotspot or JRockit VM

(Doc ID 2351790.1)

Last updated on FEBRUARY 10, 2018

Applies to:

Java SE JDK and JRE - Version 7 and later
Oracle JRockit - Version R28 and later
Information in this document applies to any platform.

Symptoms

The jcmd (for HotSpot) or jrcmd (for JRockit) command cannot access the Java VM, throwing a "Connection refused" error:

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms