Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » RSE/TM? causes frequent hangs
RSE/TM? causes frequent hangs [message #1840391] Tue, 13 April 2021 23:36 Go to next message
Andrew DeFaria is currently offline Andrew DeFariaFriend
Messages: 11
Registered: September 2012
Junior Member
Not sure if this is the right place to ask this question. Is it RSE or TM? I'm confused. If this is the wrong place kindly point me to the right place. Thanks.

One of the best things about Eclipse and RSE/TM is the ability to edit files on remote systems using ssh as a connector. In a typical case, you have a remote website and you have your website's code in a git repository that you've hooked into Eclipse as a local project. It's great to edit files and then commit and push them up to your remote website. However, I also often find the need to try out coding changes and new functionality on my remote website. This is where RSE/TM can come in very handy allowing you to set up a project in Eclipse connected by ssh to the remote website. You can then try out new functionality and changes before committing them to git.

I've used RSE/TM for this a lot in the past but it's become unworkable lately. Well actually for quite some time now. What happens is frequent hangs. For example, after opening up this remote project I see "Refreshing workspace(6%)". It's been stuck on 6% since I've written these 3 paragraphs! I'm on Ubuntu 20.04 and often the whole Eclipse IDE window darkens as it does when the underlying process is not responding. It may stay dark for 30 seconds or even a few minutes. Then it unfreezes and I can do some work. But it's only as if I blow on a file that happens to be remote and the freeze happens again! The screen darkens and Eclipse has frozen again. Then it unfreezes and I can get a little more work done.

This is NOT a networking issue. I can fire up a bash terminal and edit the file locally in say vim and scp it up to the same server, all while Eclipse is hung. I'm trying to use Eclipse as an IDE, as an editor, and to edit files on remote systems with ease but all of this freezing makes it a very unworkable environment.

What am I doing wrong? How can I debug this? How can I fix this? I'm hoping to get a 100% remote contract here soon and being able to use the Eclipse environment and edit remote files with ease would be very productive for me (read: having to use just say vim and scp'ing files back and forth is no way to work and working on the files locally, committing them to git, pushing, pulling and the like just to fix a spelling error is just plain stupid!)

Bonus points if somebody can tell me how to use RSE in an Eclipse project such that it knows that the remote file system has a .git directory and allows me to do things like git commits on the remote project would be great!
Re: RSE/TM? causes frequent hangs [message #1840500 is a reply to message #1840391] Fri, 16 April 2021 15:24 Go to previous messageGo to next message
Andrew DeFaria is currently offline Andrew DeFariaFriend
Messages: 11
Registered: September 2012
Junior Member
400 views - no responses :-(

Can anybody at least respond if you have a similar problem? Or could at least somebody chime in to say "I'm not having this problem at all"?

[Updated on: Fri, 16 April 2021 19:29]

Report message to a moderator

Re: RSE/TM? causes frequent hangs [message #1840507 is a reply to message #1840500] Fri, 16 April 2021 20:00 Go to previous message
Andrew DeFaria is currently offline Andrew DeFariaFriend
Messages: 11
Registered: September 2012
Junior Member
A little more info. I had thought that since I was using ssh in my RSE connection, it was using scp to copy files too and fro. Turns out it's using sftp-server for that. So I found the sftp-server pid and ran and strace. Then, after I did Open Project I attempted to expand a folder named web. I watched the strace. I observed that it seemed to process each file in the web directory and took about 20-30 seconds to process eiach file. The strace output for each file was roughly:

stat("/opt/songbook/web/search.php", {st_mode=S_IFREG|0664, st_size=2015, ...}) = 0
select(2, [0], [1], NULL, NULL)         = 1 (out [1])
write(1, "\0\0\0%i\0\0\0D\0\0\0\17\0\0\0\0\0\0\7\337\0\0\3\351\0\0\3\351\0\0\201"..., 41) = 41
select(2, [0], [], NULL, NULL)          = 1 (in [0])
read(0, "\0\0\0-\3\0\0\0E\0\0\0\34/opt/songbook/web/s"..., 16384) = 49
openat(AT_FDCWD, "/opt/songbook/web/search.php", O_RDONLY) = 3
select(2, [0], [1], NULL, NULL)         = 1 (out [1])
write(1, "\0\0\0\rf\0\0\0E\0\0\0\4\0\0\0\0", 17) = 17
select(2, [0], [], NULL, NULL)          = 1 (in [0])
read(0, "\0\0\0\31\5\0\0\0F\0\0\0\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\177\363", 16384) = 29
lseek(3, 0, SEEK_SET)                   = 0
read(3, "<!DOCTYPE HTML PUBLIC \"-//W3C//D"..., 32755) = 2015
select(2, [0], [1], NULL, NULL)         = 1 (out [1])
write(1, "\0\0\7\350g\0\0\0F\0\0\7\337<!DOCTYPE HTML PUBL"..., 2028) = 2028
select(2, [0], [], NULL, NULL)          = 1 (in [0])
read(0, "\0\0\0\31\5\0\0\0G\0\0\0\4\0\0\0\0\0\0\0\0\0\0\7\337\0\0x\24", 16384) = 29
lseek(3, 2015, SEEK_SET)                = 2015
read(3, "", 30740)                      = 0
select(2, [0], [1], NULL, NULL)         = 1 (out [1])
write(1, "\0\0\0\34e\0\0\0G\0\0\0\1\0\0\0\vEnd of file\0\0\0\0", 32) = 32
select(2, [0], [], NULL, NULL)          = 1 (in [0])
read(0, "\0\0\0\r\4\0\0\0H\0\0\0\4\0\0\0\0", 16384) = 17
close(3)                                = 0
select(2, [0], [1], NULL, NULL)         = 1 (out [1])
write(1, "\0\0\0\30e\0\0\0H\0\0\0\0\0\0\0\7Success\0\0\0\0", 28) = 28
select(2, [0], [], NULL, NULL


As I've never used sftp directly I'm wondering if there is anything I can do to configure it not to pause or if there's something wrong with my sftp configuration. Also, how to debug this further?
Previous Topic:Device Debugging and Target Management Meetings
Next Topic:Welcome to the Target Management newsgroup!
Goto Forum:
  


Current Time: Fri Apr 26 19:47:48 GMT 2024

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

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

Back to the top