Sun Java 安装下载挂起..如何诊断?

Sun Java 安装下载挂起..如何诊断?

我正在寻找有关如何解决此问题的建议。

我在距离约 2000 英里的 Supermicro 刀片服务器上运行 VMWare 6.5,并将 Ubuntu 16.04.3 LTS 安装为 VM。

我知道数据中心服务器的下载速度至少可以达到 200 兆比特/秒。

我正在尝试安装 Oracle Java 8。在安装过程中,下载暂停很长时间。

@ubuntu:~$ sudo apt-get install oracle-java8-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  java-common oracle-java8-set-default
Suggested packages:
  binfmt-support visualvm ttf-baekmuk | ttf-unfonts | ttf-unfonts-core ttf-kochi-gothic | ttf-sazanami-gothic ttf-kochi-mincho | ttf-sazanami-mincho ttf-arphic-uming firefox | firefox-2 | iceweasel | mozilla-firefox | iceape-browser
  | mozilla-browser | epiphany-gecko | epiphany-webkit | epiphany-browser | galeon | midbrowser | moblin-web-browser | xulrunner | xulrunner-1.9 | konqueror | chromium-browser | midori | google-chrome
The following NEW packages will be installed:
  java-common oracle-java8-installer oracle-java8-set-default
0 upgraded, 3 newly installed, 0 to remove and 12 not upgraded.
Need to get 0 B/47.4 kB of archives.
After this operation, 174 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Preconfiguring packages ...
Selecting previously unselected package java-common.
(Reading database ... 93941 files and directories currently installed.)
Preparing to unpack .../java-common_0.56ubuntu2_all.deb ...
Unpacking java-common (0.56ubuntu2) ...
Selecting previously unselected package oracle-java8-installer.
Preparing to unpack .../oracle-java8-installer_8u144-1~webupd8~0_all.deb ...
Unpacking oracle-java8-installer (8u144-1~webupd8~0) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up java-common (0.56ubuntu2) ...
Setting up oracle-java8-installer (8u144-1~webupd8~0) ...
No /var/cache/oracle-jdk8-installer/wgetrc file found.
Creating /var/cache/oracle-jdk8-installer/wgetrc and
using default oracle-java8-installer wgetrc settings for it.
Downloading Oracle Java 8...
--2017-09-02 13:12:40--  http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 23.219.92.226, 23.219.92.200
Connecting to download.oracle.com (download.oracle.com)|23.219.92.226|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz [following]
--2017-09-02 13:12:42--  https://edelivery.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 104.107.16.233, 2600:1400:a:296::2d3e, 2600:1400:a:289::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|104.107.16.233|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz?AuthParam=1504376084_bce6b70ee84b122d9c91bbce6738203e [following]
--2017-09-02 13:12:44--  http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz?AuthParam=1504376084_bce6b70ee84b122d9c91bbce6738203e
Connecting to download.oracle.com (download.oracle.com)|23.219.92.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 185515842 (177M) [application/x-gzip]
Saving to: ‘jdk-8u144-linux-x64.tar.gz’

     0K ........ ........ ........ ........ ........ ........  1% 4.12M 42s
  3072K ........ ........ ........ ........ ........ ........  3% 8.64M 31s
  6144K ........ ........ ........ ........ ........ ........  5% 6.31M 29s
  9216K ........ ........ ........ ........ ........ ........  6% 9.12M 26s
 12288K ........ ........ ........ ........ ........ ........  8% 7.08M 25s
 15360K ........ ........ ........ ........ ........ ........ 10% 8.99M 23s
 18432K ........ ........ ........ ........ ........ ........ 11% 7.33M 23s
 21504K ........ ........ ........ ........ ........ ........ 13% 7.33M 22s
 24576K ........ ........ ........ ........ ........ ........ 15% 6.01M 22s
 27648K ........ ........ ........ ........ ........ ........ 16% 6.16M 22s
 30720K ........ ........ ........ ........ ........ ........ 18% 7.03M 21s
 33792K ........ ........ ........ ........ ........ ........ 20% 7.44M 21s
 36864K ........ ........ ........ ........ ........ ........ 22% 6.11M 20s
 39936K ........ ........ ........ ........ ........ ........ 23% 6.16M 20s
 43008K ........ ........ ........ ........ ........ ........ 25% 6.12M 20s
 46080K ........ ........ ........ ........ ........ ........ 27% 6.04M 19s
 49152K ........ ........ ........ ........ ........ ........ 28% 5.88M 19s
 52224K ........ ........ ........ ........ ........ ........ 30% 7.29M 19s
 55296K ........ ........ ........ ........ ........ ........ 32% 6.03M 18s
 58368K ........ ........ ........ ........ ........ ........ 33% 5.64M 18s
 61440K ........ ........ ........ ........ ........ ........ 35% 5.44M 18s
 64512K ........ ........ ........ ........ ........ ........ 37% 6.08M 17s
 67584K ........ ........ ........ ........ ........ ........ 39% 6.06M 17s
 70656K ........ ........ ........ ........ ........ ........ 40% 7.52M 16s
 73728K ........ ........ ........ ........ ........ ........ 42% 6.13M 16s
 76800K ........ ........ ........ ........ ........ ........ 44% 6.14M 15s
 79872K ........ ........ ........ ........ ........ ........ 45% 5.09M 15s
 82944K ........ ........ ........ ........ ........ ........ 47% 7.34M 14s
 86016K ........ ........ ........ ........ ........ ........ 49% 7.36M 14s
 89088K ........ ........ ........ ........ ........ ........ 50% 6.06M 14s
 92160K ........ ........ ........ ........ ........ ........ 52% 7.26M 13s
 95232K ........ ........ ........ ........ ........ ........ 54% 5.29M 13s
 98304K ........ ........ ........ ........ ........ ........ 55% 8.94M 12s
101376K ........ ........ ........ ........ ........ ........ 57% 4.61M 12s
104448K ........ ........ ........ ........ ........ ........ 59% 6.09M 11s
107520K ........ ........ ........ .

它会坐在那里,但不会失败。它最终会成功:

2017-09-02 13:28:01 (6.38 MB/s) - Read error at byte 111798454/185515842 (Success). Retrying.

--2017-09-02 13:28:02--  (try: 2)  http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz?AuthParam=1504376084_bce6b70ee84b122d9c91bbce6738203e
Connecting to download.oracle.com (download.oracle.com)|23.219.92.226|:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 185515842 (177M), 73717388 (70M) remaining [application/x-gzip]
Saving to: ‘jdk-8u144-linux-x64.tar.gz’

        [ skipping 107520K ]
107520K ,,,,,,,, ,,,,,,,, ,,,,,,,, ,....... ........ ........ 61% 5.32M 28s
110592K ........ ........ ........ ........ ........ ........ 62% 6.23M 16s
113664K ........ ........ ........ ........ ........ ........ 64% 7.13M 13s
116736K ........ ........ ........ ........ ........ ........ 66% 7.10M 11s
119808K ........ ........ ........ ........ ........ ........ 67% 6.74M 10s
122880K ........ ........ ........ ........ ........ ........ 69% 6.25M 9s
125952K ........ ........ ........ ........ ........ ........ 71% 7.29M 8s
129024K ........ ........ ........ ........ ........ ........ 72% 6.25M 8s
132096K ........ ........ ........ ........ ........ ........ 74% 6.28M 7s
135168K ........ ........ ........ ........ ........ ........ 76% 6.08M 7s
138240K ........ ........ ........ ........ ........ ........ 78% 8.18M 6s
141312K ........ ........ ........ ........ ........ ........ 79% 9.79M 6s
144384K ........ ........ ........ ........ ........ ........ 81% 8.99M 5s
147456K ........ ........ ........ ........ ........ ........ 83% 5.31M 5s
150528K ........ ........ ........ ........ ........ ........ 84% 8.37M 4s
153600K ........ ........ ........ ........ ........ ........ 86% 5.47M 4s
156672K ........ ........ ........ ........ ........ ........ 88% 7.28M 3s
159744K ........ ........ ........ ........ ........ ........ 89% 6.87M 3s
162816K ........ ........ ........ ........ ........ ........ 91% 7.59M 2s
165888K ........ ........ ........ ........ ........ ........ 93% 6.14M 2s
168960K ........ ........ ........ ........ ........ ........ 94% 8.77M 1s
172032K ........ ........ ........ ........ ........ ........ 96% 6.21M 1s
175104K ........ ........ ........ ........ ........ ........ 98% 6.10M 0s
178176K ........ ........ ........ ........ ........ ......  100% 6.03M=11s

2017-09-02 13:28:13 (6.58 MB/s) - ‘jdk-8u144-linux-x64.tar.gz’ saved [185515842/185515842]

Download done.
Removing outdated cached downloads...
update-alternatives: error: no alternatives for java
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/java to provide /usr/bin/java (java) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/appletviewer to provide /usr/bin/appletviewer (appletviewer) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/extcheck to provide /usr/bin/extcheck (extcheck) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/idlj to provide /usr/bin/idlj (idlj) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jar to provide /usr/bin/jar (jar) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jarsigner to provide /usr/bin/jarsigner (jarsigner) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javac to provide /usr/bin/javac (javac) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javadoc to provide /usr/bin/javadoc (javadoc) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javafxpackager to provide /usr/bin/javafxpackager (javafxpackager) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javah to provide /usr/bin/javah (javah) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javap to provide /usr/bin/javap (javap) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javapackager to provide /usr/bin/javapackager (javapackager) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jcmd to provide /usr/bin/jcmd (jcmd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jconsole to provide /usr/bin/jconsole (jconsole) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jdb to provide /usr/bin/jdb (jdb) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jdeps to provide /usr/bin/jdeps (jdeps) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jhat to provide /usr/bin/jhat (jhat) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jinfo to provide /usr/bin/jinfo (jinfo) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jmap to provide /usr/bin/jmap (jmap) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jmc to provide /usr/bin/jmc (jmc) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jps to provide /usr/bin/jps (jps) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jrunscript to provide /usr/bin/jrunscript (jrunscript) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jsadebugd to provide /usr/bin/jsadebugd (jsadebugd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstack to provide /usr/bin/jstack (jstack) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstat to provide /usr/bin/jstat (jstat) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstatd to provide /usr/bin/jstatd (jstatd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jvisualvm to provide /usr/bin/jvisualvm (jvisualvm) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/native2ascii to provide /usr/bin/native2ascii (native2ascii) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/rmic to provide /usr/bin/rmic (rmic) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/schemagen to provide /usr/bin/schemagen (schemagen) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/serialver to provide /usr/bin/serialver (serialver) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/wsgen to provide /usr/bin/wsgen (wsgen) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/wsimport to provide /usr/bin/wsimport (wsimport) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/xjc to provide /usr/bin/xjc (xjc) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnpjp2.so to provide /usr/lib/mozilla/plugins/libjavaplugin.so (mozilla-javaplugin.so) in auto mode
Oracle JDK 8 installed

#####Important########
To set Oracle JDK8 as default, install the "oracle-java8-set-default" package.
E.g.: sudo apt install oracle-java8-set-default
On Ubuntu systems, oracle-java8-set-default is most probably installed
automatically with this package.
######################

Selecting previously unselected package oracle-java8-set-default.
(Reading database ... 93989 files and directories currently installed.)
Preparing to unpack .../oracle-java8-set-default_8u144-1~webupd8~0_all.deb ...
Unpacking oracle-java8-set-default (8u144-1~webupd8~0) ...
Setting up oracle-java8-set-default (8u144-1~webupd8~0) ...

当它卡住的时候,我仍然可以打开另一个 SSH 到该盒子,执行一些操作,工作正常,等等。顶部:

top - 13:23:35 up 19 days,  7:06,  2 users,  load average: 0.00, 0.00, 0.00
Tasks: 214 total,   1 running, 213 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  0.1 sy,  0.0 ni, 99.9 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem : 57719684 total, 46507260 free,   429944 used, 10782480 buff/cache
KiB Swap:        0 total,        0 free,        0 used. 56646644 avail Mem

我用这个系统做的其他事情似乎都运行良好。我通过 SFTP 将大约 100 GB 的数据远程复制到这个虚拟机上,并没有出现这种情况。

当 ubuntu 硬件或网络像这样挂起时,有什么方法可以查看发生了什么吗?我需要进行数据包捕获来解决这个问题吗?

答案1

我遇到过类似的问题,并通过更改 MTU 解决了它。尝试将其更改为 1451 或更小的值。

对于使用 LXD 创建的容器,如何将 lxdbr0 的默认 MTU 从 1500 更改为 9000?

相关内容