[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipse-dev] Eclipse creating hprof file in project root
|
Le 06/03/2023 à 01:32, Shawn Heisey a écrit :
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.
Eclipse itself doesn't know about Spring Boot. It's the Spring Tools
Suite plug-ins that add this behavior.
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.
The Spring Tools Suite launches its Language Server
(BootLanguageServerBootApp) into a separate JVM from one running Eclipse
and its that BootLanguageServerBootApp app that runs out of memory
https://github.com/spring-projects/sts4/issues would be the place to
report issues with Spring Tool Suite plugins.
Thanks,
Shawn
_______________________________________________
eclipse-dev mailing list
eclipse-dev@xxxxxxxxxxx
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/eclipse-dev
--
Pierre-Charles David (Obeo)