[英]Tomcat9 slow response with security manager in OpenJdk11
We added -Djava.security.manager parameter in java options of tomcat9 to enable security manager . 我们在tomcat9的java选项中添加了-Djava.security.manager参数以启用安全管理器。 Tomcat is running without any issue but when I try to perform some operation then it takes 9-10 min to process that(login, logout of deployed application or accessing one of the servlet directly) and also no error in log file. Tomcat正在运行,没有任何问题,但是当我尝试执行一些操作时,它需要9-10分钟来处理(登录,注销已部署的应用程序或直接访问servlet之一),并且日志文件中也没有错误。 If I remove this parameter then there is no delay. 如果删除此参数,则没有延迟。
This issue is only visible with java11. 仅在java11中可见此问题。 Till Java 8 it works fine without any issue. 到Java 8为止一切正常。
eg Security manager + tomcat9+ java 11= slowness in performing any operation 例如,安全管理器+ tomcat9 + java 11 =执行任何操作的速度较慢
Security manager + tomcat9+ java 8= Working as expected 安全管理器+ tomcat9 + Java 8 =正常运行
Adding permission java.lang.RuntimePermission "accessSystemModules"; 添加权限java.lang.RuntimePermission“ accessSystemModules”; in catalina.policy solve the issue as it required defineClassInPackage.java.* permission. 在catalina.policy中解决了该问题,因为它需要defineClassInPackage.java。*权限。 In java 8 it will work without giving accessSystemModule however, that's required in java 11 在Java 8中,它无需给出accessSystemModule就可以工作,但是,在Java 11中是必需的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.