Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-dev] Eclipse creating hprof file in project root
  • From: Gireesh Punathil <gpunathi@xxxxxxxxxx>
  • Date: Mon, 6 Mar 2023 01:49:54 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in.ibm.com; dmarc=pass action=none header.from=in.ibm.com; dkim=pass header.d=in.ibm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kdcFS4nF0zs6NntoBWeSgIGZwH0jkvsCRwhru01Dc74=; b=a2UEwhGC8LCqULVJWEZJ+M7302YlylDHDm8Jqrk5DlfgUauiyI/kDz6eb8brUCaZ4OEiaxb1Jk4lM3POSeeGVem5a6oS8wEiLrvKkFTgiK8vPzAmH6GzXQ3VWj2YCMSgkPRmjl0EDQ1YSgWZB2UfdXODwS7EvkwTrThzgL2GkUnKS8xCdYMIKYvTM5C6lbCyBH0naz2b7uGMAdMKHHU0t2M0AoaQRU9gKLlgLNYP10G7+V9rATM/PLGrkbFJE9BYK8VZAbWu3+ZLF11vzJKudcIqcFCCjA2/Uf3XLNER/jye1R4OY5ks7PUjak9IIxmGjQJWhWIHVXYB9sRkeSeOhA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Eh+pCt2GE90WEKmIc+2qGyEwK1GC0rv6c8v1ZD7+Zpffugo67rh2ngVhquazXhc/xyUjGuZEuWiJzRcUleuxP6SgCXFaEEyZrOa2oymhrNNBov8ebgKDmZP0ILc2w7kF8NDkoYj9KKrY/Wcr3wbgJK7m8IPqYrJE+uytLUzEMC9R9Qs+apDLE+Ww+hDO9bhJUENP3z+xcG03+bBU7ers9qQENDbLDGLTa0SS4zMk9bhtR2rh6abQlJ/UdbAnebZEZ6z0+VeC1FkOBgUZFRx2/kTkjUq6QJ3BjhUIRFAApPkt6JP/7rSwxQ/OtAXGQxeyWOcdtCl/jTmuU5rZtdNPmA==
  • Delivered-to: eclipse-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/eclipse-dev/>
  • List-help: <mailto:eclipse-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/eclipse-dev>, <mailto:eclipse-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/eclipse-dev>, <mailto:eclipse-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHZT8MqOJSHMJX2LUWn92J+N7O32q7s+/s9
  • Thread-topic: [EXTERNAL] [eclipse-dev] Eclipse creating hprof file in project root

Shawn:

 

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): https://www.eclipse.org/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.

https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/clopts001.html

 

If you don't want any of these, you can safely delete the file.

 

Hope this helps!

 

Thanks,
Gireesh Punathil
-- 

 

 

From: 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'.

Untracked files:
(use "git add <file>..." to include in what will be committed)
java_pid2644211.hprof

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
/usr/lib/jvm/java-17-openjdk-amd64/bin/java -cp
/home/elyograg/eclipse/jee-2022-09/eclipse/../../../.p2/pool/plugins/org.springframework.tooling.boot.ls_1.44.0.202301310652/servers/spring-boot-language-server/BOOT-INF/classes:/home/elyograg/eclipse/jee-2022-09/eclipse/../../../.p2/pool/plugins/org.springframework.tooling.boot.ls_1.44.0.202301310652/servers/spring-boot-language-server/BOOT-INF/lib/*
-Dsts.lsp.client=eclipse -Dlsp.completions.indentation.enable=true
-Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:TieredStopAtLevel=1
-Xlog:jni+resolve=off
-Dspring.config.location=file:/home/elyograg/eclipse/jee-2022-09/eclipse/../../../.p2/pool/plugins/org.springframework.tooling.boot.ls_1.44.0.202301310652/servers/spring-boot-language-server/BOOT-INF/classes/application.properties
org.springframework.ide.vscode.boot.app.BootLanguageServerBootApp
--languageserver.hover-timeout=225
elyograg 2912548 0.0 0.0 9216 2412 pts/6 S+ 16:54 0:00 grep --color=auto
2644211
---

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.

Thanks,
Shawn

_______________________________________________
eclipse-dev mailing list
eclipse-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/eclipse-dev


Back to the top