hprof file is created in response to an out of memory condition in the (java) process.
If you want to perform problem determination and potentially mitigate the issue, you can launch the file in tools like Eclipse memory analyser tool (MAT):
If you want to change the default location where the hprof file will be written, you can use `-XX:HeapDumpPath` JVM option and provide a new path that is out of scope for git.
If you don't want any of these, you can safely delete the file.
Hope this helps!
eclipse-dev <eclipse-dev-bounces@xxxxxxxxxxx> on behalf of Shawn Heisey <eclipse@xxxxxxxxxxxx>
Date: Monday, 6 March 2023 at 6:02 AM
To: eclipse-dev@xxxxxxxxxxx <eclipse-dev@xxxxxxxxxxx>
Subject: [EXTERNAL] [eclipse-dev] Eclipse creating hprof file in project root
I tried to find an eclipse users list, but came up empty. I am already
subscribed to this list. I know this is probably off topic.
I have eclipse 2022-12 (4.26.0) running on Ubuntu server 22.04 with
OpenJDK 17. I use X11 forwarding over ssh to have it display on an
Ubuntu Desktop 22.04 machine.
I cloned the Apache Solr repo, changed branches, ran the gradle target
to build the eclipse project, and imported it into eclipse.
Today I noticed that it was saying the git repo had changed when I
haven't modified anything. A git status revealed the change:
elyograg@smeagol:~/git/solr$ git status
On branch branch_9x
Your branch is up to date with 'origin/branch_9x'.
(use "git add <file>..." to include in what will be committed)
nothing added to commit but untracked files present (use "git add" to track)
A look at ps revealed what is running at that PID:
elyograg@smeagol:~$ ps auwx | grep 2644211
elyograg 2644211 54.2 1.1 10161056 1067084 pts/4 Sl+ 15:00 61:43
-Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:TieredStopAtLevel=1
elyograg 2912548 0.0 0.0 9216 2412 pts/6 S+ 16:54 0:00 grep --color=auto
I have not touched java.io.tmpdir, so I would have expected that file to
be created in /tmp instead of the project root. I don't know why eclipse
seems to think that Solr is a spring boot project ... it isn't.
The process that created the hprof file is quite obviously related to
Spring. Is there anything that I can learn here, or will I need to ask
the Spring project? I have Spring Tools Suite 4.17.2.RELEASE installed
from Eclipse Marketplace.
eclipse-dev mailing list
To unsubscribe from this list, visit