Author Topic: Zentyal 3.0 manage-logs process using 50-100% cpu and using 80% RAM  (Read 7728 times)

EddieA

  • Zen Monk
  • **
  • Posts: 70
  • Karma: +3/-0
    • View Profile
Re: Zentyal 3.0 manage-logs process using 50-100% cpu and using 80% RAM
« Reply #15 on: September 24, 2012, 07:50:18 pm »
I was going to open a new thread on the high CPU issues I've been seeing, but maybe this is the right place, even though I couldn't tie it down to Logs usage.

I've tried installing both the RCs and the released 3.0 64-bit version, in an ESXi VM, and in all cases have seen some form of 100% CPU usage causing a stall and lockout of the Administration interface, at which point I'm never sure if the actions are completed or not.  The only way out, I've found is to re-boot.

I've attached a couple of screen shots, to show that these are not just transitory occurrences.  The first shows the CPU usage over an hour, showing that the CPU usage is almost constantly at 100%.  The dips in the graph are, from memory, when the browser threw the "Script not responding" pop-up.  Other than responding to the pop-ups, where I actually could, there was nothing else going on.  I was the only user connected.

On the times I have been able to get a "top" running, the processes that appear to be using the CPU are a mix of everything, mostly unexpected, as can be seen in the 2nd screen shot.  However, it is definitely Firefox using the most.

Cheers.

HyperionTech

  • Zen Apprentice
  • *
  • Posts: 24
  • Karma: +1/-0
    • View Profile
Re: Zentyal 3.0 manage-logs process using 50-100% cpu and using 80% RAM
« Reply #16 on: September 24, 2012, 09:25:48 pm »
Definitely an issue, on one of my clients system 'loggerd' was holding the overall CPU usage at 45%+ continuously. I had to Disable the Logs Component until this issue is addressed. I also attempted the suggested modification to "swap".

My Zentyal.log show this continually:
Code: [Select]
2012/09/24 12:00:06 ERROR> MyDBEngine.pm:141 EBox::MyDBEngine::_disconnect - There wasn't a database connection, check if database exists\n

However it ceased once I disabled the Logs Component.
« Last Edit: September 24, 2012, 09:34:20 pm by HyperionTech »

Sam Graf

  • Guest
Re: Zentyal 3.0 manage-logs process using 50-100% cpu and using 80% RAM
« Reply #17 on: September 25, 2012, 04:21:42 pm »
Regrettably I have had to take some time off from 3.0 testing so I can't try this myself, but has anyone attempted the temporary fix outlined here:

http://trac.zentyal.org/ticket/5168

and reported earlier here:

http://trac.zentyal.org/ticket/5080

?

I did make the change but 3.0.1 stopped responding before I could really check things out. :(

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: Zentyal 3.0 manage-logs process using 50-100% cpu and using 80% RAM
« Reply #18 on: September 26, 2012, 05:03:56 pm »
Until we fix it, you can disable the consolidation process  in /etc/zentyal/logs.conf . To do change the configuration key 'disable_consolidation' to 'yes'

omata

  • Zen Monk
  • **
  • Posts: 79
  • Karma: +0/-0
    • View Profile
Re: Zentyal 3.0 manage-logs process using 50-100% cpu and using 80% RAM
« Reply #19 on: September 27, 2012, 10:47:43 pm »
Hi,

Latest update (3.0.2) just doesn't fix the issue with 'manage-log' cron process.

Regards,

Oscar.

omata

  • Zen Monk
  • **
  • Posts: 79
  • Karma: +0/-0
    • View Profile
Re: Zentyal 3.0 manage-logs process using 50-100% cpu and using 80% RAM
« Reply #20 on: September 27, 2012, 10:48:35 pm »
Until we fix it, you can disable the consolidation process  in /etc/zentyal/logs.conf . To do change the configuration key 'disable_consolidation' to 'yes'

Thank you!

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: Zentyal 3.0 manage-logs process using 50-100% cpu and using 80% RAM
« Reply #21 on: October 01, 2012, 01:37:51 pm »
There is a no-published fix available, see http://trac.zentyal.org/ticket/5080#comment:14

Adelson

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +1/-0
    • View Profile
Re: Zentyal 3.0 manage-logs process using 50-100% cpu and using 80% RAM
« Reply #22 on: October 01, 2012, 05:41:31 pm »
Hi Javier,
I have applied the fix on two servers, and it worked !
One is a AMD 8150 with 8Gig RAM and a RAID5 array with 6 HDs (no reboot needed)
Other is Core2 Duo with 4Gig RAM and a RAID1 array with 2 HDs (only after reboot)
The MYSQL Deamon and manage-logs stopped eating RAM and CPU.

Thanks a lot !

darthanubis

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-3
    • View Profile
Re: Zentyal 3.0 manage-logs process using 50-100% cpu and using 80% RAM
« Reply #23 on: October 01, 2012, 09:52:07 pm »
Hi Javier,
I have applied the fix on two servers, and it worked !
One is a AMD 8150 with 8Gig RAM and a RAID5 array with 6 HDs (no reboot needed)
Other is Core2 Duo with 4Gig RAM and a RAID1 array with 2 HDs (only after reboot)
The MYSQL Deamon and manage-logs stopped eating RAM and CPU.

Thanks a lot !
:D Instantly fixed for me, on Core2Duo 4gbram x64 SSD