Getting exception java.net.MalformedURLException: invalid authority while using jmap tool

Solution Verified - Updated -

Issue

  • While running command jmap -permstat JBOSS_PID getting following error :
$ jmap -permstat JBOSS_PID
Attaching to remote server JBOSS_PID, please wait...
Error attaching to remote server: java.net.MalformedURLException: invalid authority: //JBOSS_PID/SARemoteDebugger

Environment

  • Open JDK
  • Oracle JDK

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content