Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362741 - downloads from update sites hang - (3.7.1 Indigo SR1 windows)
Summary: downloads from update sites hang - (3.7.1 Indigo SR1 windows)
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.7.1   Edit
Hardware: PC Windows 7
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-02 20:09 EDT by Brian Dols CLA
Modified: 2011-12-06 14:20 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Dols CLA 2011-11-02 20:09:25 EDT
Build Identifier: 20110916-0149 

Check for updates and installing new software is painfully slow. Eventually, the sockets timeout. I do not run into problems with 3.7.1 on linux or with 3.5.1 on windows. I consider this a blocking issue since I can't easily install my plugins (like the large Aptana Studio 3)

this appears repeatedly:
!ENTRY org.eclipse.ecf.provider.filetransfer 4 0 2011-11-02 19:03:23.802
!MESSAGE org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.provider.filetra
nsfer;code=4;message=hardClose;severity4;exception=java.net.SocketTimeoutExcepti
on: Read timed out;children=[]]
!STACK 0
java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.io.BufferedInputStream.fill(Unknown Source)
        at java.io.BufferedInputStream.read1(Unknown Source)
        at java.io.BufferedInputStream.read(Unknown Source)
        at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLe
ngthInputStream.java:170)
        at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLe
ngthInputStream.java:184)
        at org.apache.commons.httpclient.ChunkedInputStream.exhaustInputStream(C
hunkedInputStream.java:369)
        at org.apache.commons.httpclient.ContentLengthInputStream.close(ContentL
engthInputStream.java:118)
        at java.io.FilterInputStream.close(Unknown Source)
        at org.apache.commons.httpclient.AutoCloseInputStream.notifyWatcher(Auto
CloseInputStream.java:194)
        at org.apache.commons.httpclient.AutoCloseInputStream.close(AutoCloseInp
utStream.java:158)
        at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTr
ansfer$1.performFileTransfer(AbstractRetrieveFileTransfer.java:185)
        at org.eclipse.ecf.filetransfer.FileTransferJob.run(FileTransferJob.java
:73)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


Reproducible: Always

Steps to Reproduce:
1. Help -> Check for Updates.

1. Help -> Install new software
Comment 1 Brian Dols CLA 2011-11-02 20:13:37 EDT
Here's another:

!ENTRY org.eclipse.equinox.p2.core 4 0 2011-11-01 01:43:13.940
!MESSAGE Provisioning exception
!STACK 1
org.eclipse.equinox.p2.core.ProvisionException: Unable to read repository at htt
p://download.eclipse.org/releases/indigo/201109230900/content.jar.
        at org.eclipse.equinox.internal.p2.repository.CacheManager.updateCache(C
acheManager.java:359)
        at org.eclipse.equinox.internal.p2.repository.CacheManager.createCache(C
acheManager.java:205)
        at org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRep
ositoryFactory.getLocalFile(SimpleMetadataRepositoryFactory.java:66)
        at org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRep
ositoryFactory.load(SimpleMetadataRepositoryFactory.java:88)
        at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositor
yManager.factoryLoad(MetadataRepositoryManager.java:57)
        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepository
Manager.loadRepository(AbstractRepositoryManager.java:749)
        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepository
Manager.loadRepository(AbstractRepositoryManager.java:651)
        at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositor
yManager.loadRepository(MetadataRepositoryManager.java:96)
        at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositor
yManager.loadRepository(MetadataRepositoryManager.java:92)
        at org.eclipse.equinox.p2.ui.LoadMetadataRepositoryJob.doLoad(LoadMetada
taRepositoryJob.java:117)
        at org.eclipse.equinox.p2.ui.LoadMetadataRepositoryJob.runModal(LoadMeta
dataRepositoryJob.java:102)
        at org.eclipse.equinox.internal.p2.ui.sdk.PreloadingRepositoryHandler$2.
runModal(PreloadingRepositoryHandler.java:82)
        at org.eclipse.equinox.p2.operations.ProvisioningJob.run(ProvisioningJob
.java:177)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.io.BufferedInputStream.read1(Unknown Source)
        at java.io.BufferedInputStream.read(Unknown Source)
        at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLe
ngthInputStream.java:170)
        at java.io.FilterInputStream.read(Unknown Source)
        at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInpu
tStream.java:108)
        at java.io.FilterInputStream.read(Unknown Source)
        at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInpu
tStream.java:127)
        at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTr
ansfer$1.performFileTransfer(AbstractRetrieveFileTransfer.java:172)

        at org.eclipse.ecf.filetransfer.FileTransferJob.run(FileTransferJob.java
:73)
        ... 1 more
!SUBENTRY 1 org.eclipse.equinox.p2.transport.ecf 4 1002 2011-11-01 01:43:13.941
!MESSAGE Unable to read repository at http://download.eclipse.org/releases/indig
o/201109230900/content.jar.
!STACK 0
java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.io.BufferedInputStream.read1(Unknown Source)
        at java.io.BufferedInputStream.read(Unknown Source)
        at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLe
ngthInputStream.java:170)
        at java.io.FilterInputStream.read(Unknown Source)
        at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInpu
tStream.java:108)
        at java.io.FilterInputStream.read(Unknown Source)
        at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInpu
tStream.java:127)
        at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTr
ansfer$1.performFileTransfer(AbstractRetrieveFileTransfer.java:172)
        at org.eclipse.ecf.filetransfer.FileTransferJob.run(FileTransferJob.java
:73)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 2 Matthew Piggott CLA 2011-11-03 15:48:44 EDT
That particular file downloads quickly for me in a quick test using a browser.  Is it slow there for you as well, or is it just in Eclipse?

Otherwise to improve performance of update/install:
- disable/remove unused sites in Preferences > Available Software Sites
- Uncheck 'Contact All Sites' when installing, though in some cases you'll be missing dependencies
Comment 3 Brian Dols CLA 2011-11-03 17:40:45 EDT
(In reply to comment #2)
> That particular file downloads quickly for me in a quick test using a browser. 
> Is it slow there for you as well, or is it just in Eclipse?
> 

Just in Eclipse.

> Otherwise to improve performance of update/install:
> - disable/remove unused sites in Preferences > Available Software Sites
> - Uncheck 'Contact All Sites' when installing, though in some cases you'll be
> missing dependencies

I also unchecked this. The download just stalls. In the Progress view, I can see it increment the amount of the download (410.38kB of 2.21MB at 406.99kB/s) but then it stalls. While it's stalled, the download rate indicator stays at 406.99kB/s.

I increased my heap space in eclipse.ini to no effect.
Comment 4 Brian Dols CLA 2011-11-03 18:07:38 EDT
I let it run itself out fully and the "Multiple problems have occurred" dialog appeared:

In "Contacting Software Sites":
Unable to read repository at http://pydev.org/updates/content.jar.
Read timed out

In "Installing Software":
An error occurred while collecting items to be installed
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Unable to read repository at http://download.aptana.com/studio3/plugin/install/plugins/com.aptana.browser_3.0.0.1311379722.jar.
Read timed out
Unable to read repository at http://download.aptana.com/studio3/plugin/install/plugins/com.aptana.js.debug.core_3.0.3.1314048057.jar.
Read timed out
Unable to read repository at http://download.aptana.com/studio3/plugin/install/plugins/com.aptana.libraries_3.0.0.1308864319.jar.
Read timed out
Unable to read repository at http://download.aptana.com/studio3/plugin/install/plugins/com.aptana.php.libraries_3.0.0.2.jar.
Read timed out
Unable to read repository at http://download.aptana.com/studio3/plugin/install/plugins/com.aptana.portablegit.win32_3.0.0.1309394487.jar.
Read timed out
Unable to read repository at http://download.aptana.com/studio3/plugin/install/plugins/org.jruby_1.6.2.1306348456.jar.
Read timed out

Hope this helps.
Comment 5 Henrik Lindberg CLA 2011-11-03 19:01:07 EDT
FWIW, I have heard others complain about problems related to installing from pydev repository.
A read timeout means that a connection was made, but that their server is very slow in producing the content (hung?)

Have you checked with pydev.org ?
Comment 6 Brian Dols CLA 2011-12-06 01:13:00 EST
I had the JDK7 Update 2 (1.7.0_02) installed on Windows and Eclipse was running in that.
When I updated to JDK7 Update 4 (1.7.0_04-ea-b01), it looks like the downloads are proceeding better.

Relevant links:
http://www.java.net/forum/topic/jdk/java-se-snapshots-project-feedback/socket-exception-only-java-7
http://www.java.net/external?url=http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7077696
Comment 7 Bernhard Lutzmann CLA 2011-12-06 14:20:15 EST
Same problem here with Eclipse 3.7.1 in combination with Java 7 (when trying to access a local update site built with b3 aggregator). When setting the system parameter "java.util.Arrays.useLegacyMergeSort=true" the problem does not occur.