Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 9:08 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: 100% CPU usage for 16 hours
PostPosted: Mon Jan 26, 2009 2:55 am 
Offline
User avatar

Joined: Tue Dec 09, 2008 4:05 am
Posts: 95
Location: Canada
100% CPU
php /var/lib/asterisk/agi-
bin/libs_a2billing/crontjob/currencies_up
date_yahoo.ph ...

Cronmanager encountered 1
Errors
Delete thisIgnore this
The following commands failed with the
listed error
/var/lib/asterisk/bin/module_admin
listonline (255)
Added 5 minutes ago
(cron_manager.EXECFAIL)

I had to terminate the job manually or it would still be at 100% CPU usage. I would suggest to modify the code so that it aborts if it fails.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 26, 2009 8:55 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
/var/lib/asterisk/bin/module_admin is a FreePBX item, not A2Billing.

Joe


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 26, 2009 5:56 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 4:05 am
Posts: 95
Location: Canada
What about

php /var/lib/asterisk/agi-
bin/libs_A2BILLING/crontjob/currencies_up
date_yahoo.ph ...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 26, 2009 6:22 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Which version are you running? That script changed a lot between v1.3.3 and v1.3.4.

I've just re-read the code I wrote for v1.3.4 and I can't see any way it could possibly result in an infinite loop. I don't think the problem is in A2B.

Perhaps the problem is the FreePBX script suggested previously, or possibly a problem with your PHP installation itself.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 26, 2009 8:06 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 4:05 am
Posts: 95
Location: Canada
I am running
Asterisk2Billing - Version 1.3.4 (SeamRóg) - Release : 1 Oct 2008

I would guess the currencies update failed which caused the process to get stuck but whatever the reason, to be on the safe side, we added a 5 minute timeout to all cron jobs which should take care of the issue and any unknown issues that may come up in the future.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 26, 2009 10:41 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
It would be interesting to prove which script is having a problem. Have you tried invoking them directly from the command line? This may yield additional clues as to which is failing.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 
Auto Dialer Software


All times are UTC


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group