Weblogic服务器启动速度慢
我们已将参数添加
-Djavax.xml.stream.XMLOutputFactory=com.sun.xml.internal.stream.XMLOutputFactoryImpl
-Djavax.xml.stream.XMLInputFactory=com.sun.xml.internal.stream.XMLInputFactoryImpl
到weblogic服务器的setDomainEnv.sh文件中的JAVA_OPTIONS中。该参数是根据项目需求添加的。 此后服务器启动速度慢了 5 倍。我在日志中找不到任何信息。 有人可以建议我解决这个问题吗
We have added the parameter
-Djavax.xml.stream.XMLOutputFactory=com.sun.xml.internal.stream.XMLOutputFactoryImpl
-Djavax.xml.stream.XMLInputFactory=com.sun.xml.internal.stream.XMLInputFactoryImpl
to JAVA_OPTIONS in setDomainEnv.sh file of weblogic server. this parameter was added for a project requirement.
After this the server startup is slow by 5 times.I couldnt find any info in logs.
Could anybody suggest me over this problem
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据您告诉我的内容,我建议执行以下操作:
步骤 1:
从慢速配置开始,开始进行线程转储(假设每 30 秒一次),直到服务器启动。检查日志并查找 a) 处于 RUNNABLE 状态的线程正在做什么 b) 是否存在带有可疑堆栈跟踪的阻塞线程,例如其中包含“com.sun.xml.internal”。
您可以通过发送“kill -3”来获取线程转储
第2步。
如果第1步没有帮助,请在JProfiler等分析器下启动系统,同时在启动时启用CPU和线程记录,看看是否有任何明显的CPU热点或线程阻塞。
那应该覆盖它。
希望这有帮助,
斯拉瓦·伊梅舍夫
Given what you told me, I recommend to do the following:
Step 1:
Start with the slow configuration on and start taking thread dumps let say every 30 seconds until the server is up. Check the log and look for a) What threads in RUNNABLE state are doing b) If there are blocked threads with suspicious stack traces such as having those 'com.sun.xml.internal' in them.
You can take thread dumps by sending 'kill -3 '
Step 2.
If the Step 1 didn't help, start up the system under a profiler such as JProfiler while enabling CPU and thread recording at startup and see if there are any obvious CPU hot spots or thread blocking.
That should cover it.
Hope this helps,
Slava Imeshev