留言板
Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
William Gosse,修改在9 年前。
Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
Liferay Master 帖子: 533 加入日期: 10-7-4 最近的帖子
I have a Liferay 6.2 CE GA2 Tomcat deployed on a Win 2008 R2 server in AWS (large). There's pretty much no load right now and it runs all day at 0% CPU. And then all of a sudden it degrade to 100% CPU. There no custom portlets at this time only a custom theme with some static content. Theme was develop by a third party. I have an Apache httpd acting as a front door and I can see that the site is getting accessed and there is some web crawling going. When the CPU goes to a 100% its all on the tomcat server. I just put VisualVM to dig into this. I'm curious if anyone else has seen anything similar with Liferay 6.2 CE GA2?
David H Nebinger,修改在9 年前。
RE: Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
All of a sudden?
Is there any user activity at the time? Or could this be the result of a scheduled activity? Doing any LDAP import or populating the DB on the backend or something?
It's certainly not SOP.
Is there any user activity at the time? Or could this be the result of a scheduled activity? Doing any LDAP import or populating the DB on the backend or something?
It's certainly not SOP.
William Gosse,修改在9 年前。
RE: Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
Liferay Master 帖子: 533 加入日期: 10-7-4 最近的帖子
We are not doing anything like what you've listed. But I did notice, with visualvm, that the quartz scheduler was consuming a lot of the cpu time. I disabled it for now to see if that resolves the issue. I also uninstalled the calendar portlet as well. I'll be honest this is an area of liferay I know very little about.
Juan Gonzalez,修改在9 年前。
RE: Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Hi William,
maybe you are running into this bug: https://issues.liferay.com/browse/LPS-47533.
Can you try to upgrade to 6.2.2 to see if it still reproduces?
maybe you are running into this bug: https://issues.liferay.com/browse/LPS-47533.
Can you try to upgrade to 6.2.2 to see if it still reproduces?
Cyber Katze,修改在9 年前。
RE: Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
Olaf Kock,修改在9 年前。
RE: Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
A good recommendation to check what's going on when this kind of activity happens is to generate a few thread dumps and analyze them for common aspects. While stacktraces are not too much fun to read, they're typically quite informative - especially when you don't have to pay attention to line numbers but for repeated patterns between the similar thread dumps.
William Gosse,修改在9 年前。
RE: Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
Liferay Master 帖子: 533 加入日期: 10-7-4 最近的帖子
Please see my following post:
https://www.liferay.com/community/forums/-/message_boards/message/49746751
https://www.liferay.com/community/forums/-/message_boards/message/49746751
Olaf Kock,修改在9 年前。
RE: Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
On quick glance it sounds like LPS-47533 was not a bad suggestion by Juan above. Did you upgrade to GA3 and try to reproduce?
William Gosse,修改在9 年前。
RE: Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
Liferay Master 帖子: 533 加入日期: 10-7-4 最近的帖子
I haven't upgraded to GA3. I'm waiting for GA4 to come out, hopefully soon. I did add to following mysql tuning suggestions: https://www.liferay.com/community/wiki/-/wiki/Main/Tuning+the+Database
William Gosse,修改在9 年前。
RE: Liferay 6.2 CE GA4 Tomcat bundle100% CPU utilization
Liferay Master 帖子: 533 加入日期: 10-7-4 最近的帖子
So I've upgraded to a GA4 and I also replaced MySQL with Postgres. But I'm still of struggling with this high cpu issue on my production Liferay Tomcat server. I had this on GA2 and I was hoping GA4 would help solve the problem but its still with me.
I need to dig into this one a little. This is the first time I've used GA4 in a production environment I didn't see anything like this issue on 6.1. I'm running on a Win 2008 R2 server with 4 cores and 16gb of ram. Memory doesn't seem to be an issue. Something causing my request threads to get stuck occasionally. I'm front ending Tomcat with a Apache httpd with AJP protocol. I've used this setup in the past with no issue. The only other thing that new for me is that I'm using a third party theme.
I just enabled yourkit on my server to see if I can figure this one out. It will run all day fine then all of a sudden it goes to 25% then eventually 100%.
See my other post for more details:https://www.liferay.com/community/forums/-/message_boards/message/53171438
I need to dig into this one a little. This is the first time I've used GA4 in a production environment I didn't see anything like this issue on 6.1. I'm running on a Win 2008 R2 server with 4 cores and 16gb of ram. Memory doesn't seem to be an issue. Something causing my request threads to get stuck occasionally. I'm front ending Tomcat with a Apache httpd with AJP protocol. I've used this setup in the past with no issue. The only other thing that new for me is that I'm using a third party theme.
I just enabled yourkit on my server to see if I can figure this one out. It will run all day fine then all of a sudden it goes to 25% then eventually 100%.
See my other post for more details:https://www.liferay.com/community/forums/-/message_boards/message/53171438