简体   繁体   中英

Payara 5 HTTPS extremely slow

I've met a really strange case:

Before migrating to Payara 5.182, I use Payara 4.1.181, and the http/https requests are all very fast. Things go strange when I migrate to Payara 5.182, http requests are working just fine, but the https requests are extremely slow.

Here's the information:

  • the application that deployed to Payara 5.182 / Payara 4.1.181 is the same version
  • configure the keystore.jks and cacerts.jks in Payara 5.182 just the same way as Payara 4.1.181:
    • keytool -importkeystore -destkeystore keystore.jks -srckeystore 3MEdu.p12 -srcstoretype PKCS12 -alias 3medu_cert
    • keytool -importkeystore -destkeystore cacerts.jks -srckeystore 3MEdu.p12 -srcstoretype PKCS12 -alias 3medu_cert
  • the 3MEdu.p12 is the same file as used in Payara 4.1.181
  • use 80 port for http request and 443 port for https request
  • JDK version: Oracle JDK 8u161
  • OS verison: Ubuntu 16.04.4 LTS

Payara 4和5之间的区别是Payara 5中默认启用了HTTP / 2。请尝试按照文档中所述禁用HTTP2: https ://docs.payara.fish/documentation/payara-server/server-configuration/http /protocols.html

Thanks for this, the complete menu are:

Network Config -> Network Listeners -> http-listener-2 - HTTP TAG an search the HTTP/2 Option to disable

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM