Foren
Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
William Gosse, geändert vor 9 Jahren.
Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
Liferay Master Beiträge: 533 Beitrittsdatum: 04.07.10 Neueste Beiträge
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, geändert vor 9 Jahren.
RE: Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
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, geändert vor 9 Jahren.
RE: Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
Liferay Master Beiträge: 533 Beitrittsdatum: 04.07.10 Neueste Beiträge
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, geändert vor 9 Jahren.
RE: Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
Liferay Legend Beiträge: 3089 Beitrittsdatum: 28.10.08 Neueste Beiträge
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, geändert vor 9 Jahren.
RE: Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
Olaf Kock, geändert vor 9 Jahren.
RE: Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
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, geändert vor 9 Jahren.
RE: Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
Liferay Master Beiträge: 533 Beitrittsdatum: 04.07.10 Neueste Beiträge
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, geändert vor 9 Jahren.
RE: Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
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, geändert vor 9 Jahren.
RE: Liferay 6.2 CE GA2 Tomcat bundle100% CPU utilization
Liferay Master Beiträge: 533 Beitrittsdatum: 04.07.10 Neueste Beiträge
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, geändert vor 9 Jahren.
RE: Liferay 6.2 CE GA4 Tomcat bundle100% CPU utilization
Liferay Master Beiträge: 533 Beitrittsdatum: 04.07.10 Neueste Beiträge
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