Does not launch after IP change. Ubuntu 24.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 3.3k
- Forks
- 334
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
I used to have an IP of 10.30.90.39. I added my containerized Java instance to the list of remote instances to collect a HeapDump. The DHCP makes IPs rotate. A month ago it got changed to 10.30.90.109. Now VisualVM fails to start because it tries for some reason to open a connection 10.30.90.39 on startup. The first thing you learn when writing network code, is that nothing can be guaranteed to you, including having a single IP for the lifetime of a computer. The install is also a clean download from https://github.com/oracle/visualvm/releases/download/2.2.1/visualvm_221.zip.
Deleting $HOME/.visualvm solves the issue.
Expected behavior
Application should launch without trying to unconditionally open a connection to an unreachable host and crash.
VisualVM log
log.log
Desktop (please complete the following information):
- OS: 24.04.4 LTS (Noble Numbat)
- JDK version: openjdk 25.0.3 2026-04-21
- Version: 2.2.1
Additional context
Running with JAVA_HOME set to JDK 8, 11, 25 does not work either.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the attached log.log and inspecting the persisted state under $HOME/.visualvm, focusing on the saved remote instance at 10.30.90.39 and startup behavior. Reproduce with that unreachable address, then verify that VisualVM launches without crashing when the saved host cannot be contacted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, ubuntu
- Domain
- desktop, observability
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100