hsperfdata locked by another process (errno = 11)

Solution Unverified - Updated -

Issue

  • Getting following warning messages being printed on stdout during random times when starting a java application on JDK17 (does not happen on JDK8):
[warning][perf,memops] Cannot use file /tmp/hsperfdata_<user>/<pid> because it is locked by another process (errno = 11)

Environment

  • Red Hat Enterprise Linux (RHEL) 8
  • Red Hat build of OpenJDK 17

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