Bug 414390 - Eclipse process writes to disk every second
Summary: Eclipse process writes to disk every second
Status: CLOSED NOT_ECLIPSE
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2013-08-04 19:38 EDT by maciej soczka CLA
Modified: 2013-08-07 17:44 EDT (History)
2 users (show)

See Also:


Attachments
Eclipse Configuration (165.55 KB, text/plain)
2013-08-04 19:38 EDT, maciej soczka CLA
no flags Details
Error detected by Java (72.66 KB, text/x-log)
2013-08-07 07:49 EDT, maciej soczka CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description maciej soczka CLA 2013-08-04 19:38:05 EDT
Created attachment 234082 [details]
Eclipse Configuration

One of the threads of idle eclipse 4.3 process performs writes to disk every second which amounts in roughly 10MB written to disk every minute.

Steps to reproduce:
1.Get 4.3 Kepler directly from the website. Do not install anything. Just open it.
2.Leave eclipse idle
3.watch io counters for eclipse

Though I have to say that similar io activity have been taking place on the Eclipse 3.8 that by default ships with the Ubuntu 12.04
Comment 1 maciej soczka CLA 2013-08-07 07:49:33 EDT
Created attachment 234144 [details]
Error detected by Java
Comment 2 David Williams CLA 2013-08-07 08:05:04 EDT
So, I assume you mean that is is this log that is repeatedly written to disk. 

From the log, it appears related to webkit and possibly openjdk-i386, so will move to swt. 

It would help narrow the debugging if you (originator) could see if you got the same results with a different VM and also a "stock" Eclipse downloaded from Eclipse.
Comment 3 David Williams CLA 2013-08-07 08:06:55 EDT
(In reply to comment #2)
> So, I assume you mean that is is this log that is repeatedly written to
> disk. 
> 
> From the log, it appears related to webkit and possibly openjdk-i386, so
> will move to swt. 
> 
> It would help narrow the debugging if you (originator) could see if you got
> the same results with a different VM and also a "stock" Eclipse downloaded
> from Eclipse.

Oh, upon re-reading, I see you did try stock Eclipse ... so, it'd be helpful to try other VMs.
Comment 4 Dani Megert CLA 2013-08-07 08:10:07 EDT
(In reply to comment #0)
> One of the threads of idle eclipse 4.3 process performs writes to disk every
> second which amounts in roughly 10MB written to disk every minute.

Since you know it's 10 MB I assume you know which files are written. Please indicate them here.


> 1.Get 4.3 Kepler directly from the website. Do not install anything. Just open > it.

Did you start with a new workspace or an existing one?


(In reply to comment #1)
> Created attachment 234144 [details]
> Error detected by Java

This seems unrelated and is already tracked by bug 400626.
Comment 5 maciej soczka CLA 2013-08-07 08:11:26 EDT
I would be very happy to get some more meaningful reports if some guidelines are given.
 
My tools so far include: iotop, lsof, ps and I have experimented with memory dumps but still did not managed to pin down that particular thread that is responsible for extensive io.
What I know for sure is that it happens with a clean Ubnutu 12.04 with eclipse 3.8 from Ubuntu repositories or a Kepler version with nothing else installed on it.

Yes, you can find in the report that I used Aptana, PyDev and ViPlugin but the issue happens regardless these are installed or not
Comment 6 Dani Megert CLA 2013-08-07 08:18:25 EDT
(In reply to comment #5)
> I would be very happy to get some more meaningful reports if some guidelines
> are given.
>  
> My tools so far include: iotop, lsof, ps and I have experimented with memory
> dumps but still did not managed to pin down that particular thread that is
> responsible for extensive io.

You might want to try with fio or xfs_io.

Another approach would be to remote debug your workspace and put breakpoints at the usual file write methods.


Did you start with a new workspace or an existing one?
Comment 7 maciej soczka CLA 2013-08-07 08:24:41 EDT
Yes, I did try to change my workspace directory but the issue persists.
Comment 8 maciej soczka CLA 2013-08-07 10:11:38 EDT
I ran it on another VM:

maciej@jadwiga:~$ java -version
java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.12.04.2)
OpenJDK Server VM (build 23.7-b01, mixed mode)

maciej@jadwiga:~$ javac -version
javac 1.7.0_25

same results.
Comment 9 maciej soczka CLA 2013-08-07 17:44:37 EDT
What I managed to establish is that this issue is not being caused by anything near Eclipse. 


Interestingly is not caused by hardware either.

Now I have Debian Wheezy and W7 installed on the same drive and they do not show any signs of increased disk io. Ubuntu 12.04 did.

On Ubuntu 12.04 my overall disk throughput on U12.04 was 1/MBs for writes.
On Debian I am getting a ~80MB/s.

Not sure what was it caused by but it definitely was not Eclipse.

I am happy I can use Eclipse again without constantly looking at my HDD LED.

Thanks for help and suggestions.