IcedTea-Web
IcedTea-Web copied to clipboard
Launching JNLP takes 20+ mins when launched through AdaptOpenJDK_1.8.0.275 and IcedWebTea_1.8.4
Summary
When Launching jnlp file using AdaptOpenJDK_1.8.0.275 through IcedWebTea(1.8.4) its taking 20+ mins to launch it fully. From the same client machine when I use OracleJRE_1.8u261 it launches the jnlp console in less than 1 min.
Note: There is a latency between my client machine and the Tomcat webserver hosting the jnlp file. If I launch the jnlp file from the local Tomcat webserver application then it launches quickly. So it has the issue only when there is a latency between client and webserver. But Oracle JRE launches it quickly even though the latency is there.
Its a high priority issue for us. Our end customer is escalating this issue and hence any quick solutions/suggestions would be highly appreciated.
Steps to reproduce
- Download the jnlp file from our Tomcat webserver application.
- Launch the jnlp with IcedWebTea(1.8.4) running on AdaptOpenJDK(1.8.0.275)
- It takes ~20mns to launch the client console.
- From the same client machine launch the jnlp using OracleJRE_1.8.261, it launches in less than 1 min.
Expected results
Jnlp client console should be launched without delay.
Actual results
Jnlp client console is getting launched with lot of delay.
Triaging info
Java version: AdaptOpenJDK_1.8.0.275 IcedTeaWeb : 1.8.4
C:\Users\mb632587>java -version openjdk version "1.8.0_275" OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_275-b01) OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.275-b01, mixed mode)
What is your operating system and platform? "Windows 10 Pro"
How did you install Java? OpenJDK8U-jre_x64_windows_hotspot_8u275b01.msi icedtea-web-1.8.4.msi
Did it work before? No
Did you test with other Java versions? Yes, tested with OracleJRE_1.8.261 and it worked fine.
Please provide full reproduction steps that we can actually perform on our side. "Download the jnlp file from our Tomcat webserver application" is not something we can do. Also compare comparable versions, for example Oracle 8u281 with AdoptOpenJDK 8u282.
Hi @mahboobbaig can you please active debug logging & file logging in the IcedTeaWeb console attach the log file here?
i would suggest profiling with a tool such as yourkit. we issued same issue, reason was a third party library used by our project it was doing some xml parsing (svgSalamnder). openjdk + icedtea has some performance issues when generating xml related parsers etc. the ownder of svgSalamnder cached the generated facoteries and performance problem gone. But it is interesting why some process took 1-2 ms on oraclejdk but 400-500ms on openjdk. because this process was iterated hundreds of times a remarkable difference of 10 minutes occured on our case. an additionally without icedtea there was no problem when called as batch without jnlp
Please provide full reproduction steps that we can actually perform on our side. "Download the jnlp file from our Tomcat webserver application" is not something we can do. Also compare comparable versions, for example Oracle 8u281 with AdoptOpenJDK 8u282.
Hi, the reproduction steps are pretty simple. Just download the jnlp file from any of your webapplication(which hosts the jnlp file) and download it on your remote client machine, then run/launch it with Iced Tea Web(javaws) running on OpenJDK and you will observe this issue as it takes long time to completely launch the console.
Point to be noted here is that network latency between your client machine and Webserver(hosting this jnlp file) should be there to reproduce this issue. If required we can have a webex and I can show you the problem live on my setup.
I did compare with same version of Oracle JRE and Adopt Open JDK and the results with Oracle JRE is pretty faster.
Could you just provide a log file. There are many factors which influence speed not just the network. It is almost impossible to reproduce the behavior you see with our setup.
If you need help generating the log files please have a look at https://openwebstart.com/docs/OWSGuide.html#_logging
@mahboobbaig
read my last comment in this link https://github.com/AdoptOpenJDK/IcedTea-Web/issues/743
As suggested will collect the logs for analysis.
Hi Sclassen, Hi Team, here are the requested files for analysis. Please kindly find some time to review them and get back to me at the earliest.
adoptopenjdk-debug-logs.zip jason_itw-javantx-2021-01-15_14_15_43.952.log debug-logs-20201103.zip itw-nativerustlauncher-1622038328_5+minute_delay.zip
I went through all the logs. Unfortunately there are no timestamps in it. I am not familiar with the old 1.8 branch I can't tell if this is a configuration issue or if timestamps were only added later.
Could you give OpenWebStart a try. It is based on ITW 2.0 and has timestamps activated for all log messages.
Also I saw many network related exceptions Server returned HTTP response code: 403 for URL
Can you try to figure out what the reason behind these 403s is
I can confirm this issue. I my case it takes 48 minutes to start the jnlp. If I use OpenWebStart it takes just 44 seconds.
# javaws app.jnlp
selected jre: /usr/lib/jvm/default-runtime
Warning!, Fall back in resolve_jar to hardcoded paths:
/usr/share/java/js.jar
WARNING: package sun.applet not in java.desktop
WARNING: package com.sun.net.ssl.internal.ssl not in java.base
WARNING: package javax.jnlp not in java.desktop
Die Eigenschaft „ows.install4j.propertyUpdate“ ist unbekannt.
Gtk-Message: 22:43:30.834: Failed to load module "unity-gtk-module"
Gtk-Message: 22:43:30.835: Failed to load module "unity-gtk-module"
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by net.sourceforge.jnlp.runtime.JNLPRuntime
WARNING: Please consider reporting this to the maintainers of net.sourceforge.jnlp.runtime.JNLPRuntime
WARNING: System::setSecurityManager will be removed in a future release
Es ist nicht möglich Firefoxs Proxyeinstellungen zu verwenden. Nutze „DIRECT“ als Proxytyp.
selected jre: /usr/lib/jvm/default-runtime
Warning!, Fall back in resolve_jar to hardcoded paths:
/usr/share/java/js.jar
WARNING: package sun.applet not in java.desktop
WARNING: package com.sun.net.ssl.internal.ssl not in java.base
WARNING: package javax.jnlp not in java.desktop
Die Eigenschaft „ows.install4j.propertyUpdate“ ist unbekannt.
Gtk-Message: 22:47:54.432: Failed to load module "unity-gtk-module"
Gtk-Message: 22:47:54.432: Failed to load module "unity-gtk-module"
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by net.sourceforge.jnlp.runtime.JNLPRuntime
WARNING: Please consider reporting this to the maintainers of net.sourceforge.jnlp.runtime.JNLPRuntime
WARNING: System::setSecurityManager will be removed in a future release
Es ist nicht möglich Firefoxs Proxyeinstellungen zu verwenden. Nutze „DIRECT“ als Proxytyp.
# javaws --version
selected jre: /usr/lib/jvm/default-runtime
Warning!, Fall back in resolve_jar to hardcoded paths:
/usr/share/java/js.jar
WARNING: package sun.applet not in java.desktop
WARNING: package com.sun.net.ssl.internal.ssl not in java.base
WARNING: package javax.jnlp not in java.desktop
Die Eigenschaft „ows.install4j.propertyUpdate“ ist unbekannt.
icedtea-web 1.8.8
# java -version
openjdk version "17.0.3" 2022-04-19
OpenJDK Runtime Environment (build 17.0.3+3)
OpenJDK 64-Bit Server VM (build 17.0.3+3, mixed mode)
https://github.com/karakun/OpenWebStart/issues/455#issuecomment-1063381827