Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » build or other task realy slow(all progresse take realy long > 5minute)
build or other task realy slow [message #1867122] Sun, 16 June 2024 18:45 Go to next message
Simon Fourquier is currently offline Simon FourquierFriend
Messages: 3
Registered: September 2015
Junior Member
Hello

When i try to use eclipse (test on many eclipse version include Version: 2024-06 (4.32.0))

Task run in bakground for exemple a build take >5 minutes

I have see when i run a build he run a Spawner this Spawner take small CPU ~8% but take more of 5minutes for build a smal code

I think the probleme are in the spawner becaus all task run in spawner take >5 minutes

If i run a a strace on the pid of the spawner he try to close bad files descriptore

Quote:

= -1 EBADF (Mauvais descripteur de fichier)
close(1018784736) = -1 EBADF (Mauvais descripteur de fichier)
close(1018784737) = -1 EBADF (Mauvais descripteur de fichier)
close(1018784738) = -1 EBADF (Mauvais descripteur de fichier)
close(1018784739) = -1 EBADF (Mauvais descripteur de fichier)
close(1018784740) = -1 EBADF (Mauvais descripteur de fichier)
close(1018784741) = -1 EBADF (Mauvais descripteur de fichier)
close(1018784742) = -1 EBADF (Mauvais descripteur de fichier)
close(1018784743) = -1 EBADF (Mauvais descripteur de fichier)
close(1018784744) = -1 EBADF (Mauvais descripteur de fichier)
...


Can you help me for fix that?

i have try to run with other java
for exemple ./eclipse -vm /usr/lib/jvm/java-1.17.0-openjdk-amd64/bin/java

but that change nothing
Re: build or other task realy slow [message #1867503 is a reply to message #1867122] Thu, 27 June 2024 07:19 Go to previous messageGo to next message
Hardy G is currently offline Hardy GFriend
Messages: 2
Registered: June 2024
Junior Member
I can confirm this "behavior". Happens for me just under Linux, Windows eclipse works. Independent of JRE (tried 21/22 from installer and also from Debian).

On my machine one processor is fully occupied with closing "bad file descriptors", then regular operation starts after appr. 155s (without stracing):

...
close(1073741805) = -1 EBADF (Bad file descriptor)
close(1073741806) = -1 EBADF (Bad file descriptor)
close(1073741807) = -1 EBADF (Bad file descriptor)
close(1073741808) = -1 EBADF (Bad file descriptor)
close(1073741809) = -1 EBADF (Bad file descriptor)
close(1073741810) = -1 EBADF (Bad file descriptor)
close(1073741811) = -1 EBADF (Bad file descriptor)
close(1073741812) = -1 EBADF (Bad file descriptor)
close(1073741813) = -1 EBADF (Bad file descriptor)
close(1073741814) = -1 EBADF (Bad file descriptor)
close(1073741815) = -1 EBADF (Bad file descriptor)
getpid() = 26918
getpid() = 26918
setpgid(26918, 26918) = 0
execve("/usr/bin/make", ["/usr/bin/make", "-j12", "clean"], 0x7f354c005320 /* 79 vars */) = 0
brk(NULL) = 0x55b405beb000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5d278d1000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
...
Re: build or other task realy slow [message #1867590 is a reply to message #1867503] Mon, 01 July 2024 06:52 Go to previous messageGo to next message
Hardy G is currently offline Hardy GFriend
Messages: 2
Registered: June 2024
Junior Member
Just to mention, the problem is handled here: https://github.com/eclipse-cdt/cdt/issues/835
Re: build or other task realy slow [message #1867719 is a reply to message #1867590] Thu, 04 July 2024 14:40 Go to previous message
Simon Fourquier is currently offline Simon FourquierFriend
Messages: 3
Registered: September 2015
Junior Member
Thanks you in waiting update we can limite with prlimit --nofile=73741816:1073741816 -p pid_eclipse
Previous Topic:[SOLVED] TM Terminal: some shells hang when launched
Next Topic:Launch Bar: No launch configuration is found for the given launch descriptor and target
Goto Forum:
  


Current Time: Sat Oct 12 03:31:36 GMT 2024

Powered by FUDForum. Page generated in 0.03001 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top