Re: [asterisk-users] asterisk running @ 100% load doing nothing

2010-04-23 Thread Kelvin Chan
 I opened a ticket about this:
 https://issues.asterisk.org/bug_view_advanced_page.php?bug_id=17217

 Remove -c on the init script of asterisk, line 85. Should help.

 I was trying it with a xen guest.

Awesome, Thanks.

 [Kelvin Chan]

NOTICE: This communication is intended only for the use of the person or entity 
named above and may contain information that is confidential or legally 
privileged. If you are not the intended recipient named above or a person 
responsible for delivering messages or communication to the intended recipient, 
you are hereby notified that any use, distribution, or copying of this 
communication or any of the information contained in it is strictly prohibited. 
If you have this communication in error, please notify me immediately by 
telephone and then destroy or delete this communication, or return it to me by 
mail if requested. Thank you for your attention and cooperation.
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] asterisk running @ 100% load doing nothing

2010-04-22 Thread Kelvin Chan
Hi guys,

I just ran into a funny issue here.

I'm trying to virtualize our asterisk pbx onto vmware esxi. Here's a quick 
glance of the system:
 * Ubuntu 9.10 i386 with linux-rt kernel (to get 1000Hz timer) everything 
up2date.
 * Asterisk 1.6.2.6

If I run asterisk using the debian init script in contrib/init.d/, top shows 
asterisk is using 99.x% CPU doing nothing. If I run asterisk with -vvvc, it 
runs just fine. It's the same thing either running under root or asterisk (set 
in asterisk.conf and confirmed with top).

I checked my logs, nothing weird. It's not spitting a million error messages. 
It's not crashing.

So any hints? What can I provide you guys to help me out?

Here are some log outputs: (nothing weird)

- /etc/asterisk/logger.conf 
[logfiles]
debug = debug
console = notice,warning,error
messages = notice,warning,error

- debug --
[Apr 22 17:50:48] DEBUG[2550] xmldoc.c: Cannot find variable 'SIPPEER' in tree 
'description'
[Apr 22 17:50:48] DEBUG[2550] xmldoc.c: Cannot find variable 'SIPCHANINFO' in 
tree 'description'

 message -
[Apr 22 17:50:48] NOTICE[2550] cdr.c: CDR simple logging enabled.
[Apr 22 17:50:48] NOTICE[2550] loader.c: 33 modules will be loaded.
[Apr 22 17:50:48] WARNING[2550] translate.c: plc_samples 160 format f
[Apr 22 17:50:48] NOTICE[2561] chan_sip.c: Peer '104' is now Reachable. (32ms / 
2000ms)
[Apr 22 17:50:48] NOTICE[2561] chan_sip.c: Peer '105' is now Reachable. (34ms / 
2000ms)
[Apr 22 17:50:48] NOTICE[2561] chan_sip.c: Peer '107' is now Reachable. (30ms / 
2000ms)
[Apr 22 17:50:48] NOTICE[2561] chan_sip.c: Peer '101' is now Reachable. (31ms / 
2000ms)
[Apr 22 17:50:48] NOTICE[2561] chan_sip.c: Peer '103' is now Reachable. (29ms / 
2000ms)
[Apr 22 17:50:48] NOTICE[2561] chan_sip.c: Peer '102' is now Reachable. (32ms / 
2000ms)
[Apr 22 17:50:49] NOTICE[2561] chan_sip.c: Peer '109' is now Reachable. (30ms / 
2000ms)
[Apr 22 17:50:49] NOTICE[2561] chan_sip.c: Peer '203' is now Reachable. (51ms / 
2000ms)
[Apr 22 17:50:49] NOTICE[2561] chan_sip.c: Peer '202' is now Reachable. (56ms / 
2000ms)
[Apr 22 17:50:49] NOTICE[2561] chan_sip.c: Peer '110' is now Reachable. (32ms / 
2000ms)
[Apr 22 17:50:49] NOTICE[2561] chan_sip.c: Peer '201' is now Reachable. (54ms / 
2000ms)

kelvin

NOTICE: This communication is intended only for the use of the person or entity 
named above and may contain information that is confidential or legally 
privileged. If you are not the intended recipient named above or a person 
responsible for delivering messages or communication to the intended recipient, 
you are hereby notified that any use, distribution, or copying of this 
communication or any of the information contained in it is strictly prohibited. 
If you have this communication in error, please notify me immediately by 
telephone and then destroy or delete this communication, or return it to me by 
mail if requested. Thank you for your attention and cooperation.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] asterisk running @ 100% load doing nothing

2010-04-22 Thread Kelvin Chan

 I just ran into a funny issue here.

 I'm trying to virtualize our asterisk pbx onto vmware esxi. Here's a
 quick glance of the system:
  * Ubuntu 9.10 i386 with linux-rt kernel (to get 1000Hz timer)
 everything up2date.
  * Asterisk 1.6.2.6

 If I run asterisk using the debian init script in contrib/init.d/, top
 shows asterisk is using 99.x% CPU doing nothing. If I run asterisk with
 -vvvc, it runs just fine. It's the same thing either running under root
 or asterisk (set in asterisk.conf and confirmed with top).

 I checked my logs, nothing weird. It's not spitting a million error
 messages. It's not crashing.


And I've just done another test. With stock ubuntu 9.10 i386 and sample 
asterisk config files, I have the same result. VMWare shows no crazy stats of 
disk access nor memory usage. Just 100% cpu load. I selected Mail Server and 
OpenSSH server at tasksel screen during installation.

Same thing.

So I uninstall-all and apt-get install asterisk.
Same thing. 100% with init script but normal with -c CLI switch.

BTW, my server has been running for 2 days without crashing @ 100% load of 
course.

Weird, eh.

kel

NOTICE: This communication is intended only for the use of the person or entity 
named above and may contain information that is confidential or legally 
privileged. If you are not the intended recipient named above or a person 
responsible for delivering messages or communication to the intended recipient, 
you are hereby notified that any use, distribution, or copying of this 
communication or any of the information contained in it is strictly prohibited. 
If you have this communication in error, please notify me immediately by 
telephone and then destroy or delete this communication, or return it to me by 
mail if requested. Thank you for your attention and cooperation.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] asterisk running @ 100% load doing nothing

2010-04-22 Thread Kelvin Chan
 And I've just done another test. With stock ubuntu 9.10 i386 and sample
 asterisk config files, I have the same result. VMWare shows no crazy
 stats of disk access nor memory usage. Just 100% cpu load. I selected
 Mail Server and OpenSSH server at tasksel screen during
 installation.

 Same thing.

 So I uninstall-all and apt-get install asterisk.
 Same thing. 100% with init script but normal with -c CLI switch.


Please disregard the last message. I worked on the wrong server. Thank god I 
have snapshots.
The init script from ubuntu asterisk package resolved the problem.

All I did was apt-get install asterisk on a different machine and copy that 
init script over. It did the trick.

But it's interesting that init script shipped with ubuntu 1.6.2.6 and 
1.6.2.7-rc2 both caused the same problem.

Cheers,

kel

NOTICE: This communication is intended only for the use of the person or entity 
named above and may contain information that is confidential or legally 
privileged. If you are not the intended recipient named above or a person 
responsible for delivering messages or communication to the intended recipient, 
you are hereby notified that any use, distribution, or copying of this 
communication or any of the information contained in it is strictly prohibited. 
If you have this communication in error, please notify me immediately by 
telephone and then destroy or delete this communication, or return it to me by 
mail if requested. Thank you for your attention and cooperation.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] asterisk running @ 100% load doing nothing

2010-04-22 Thread Motiejus Jakštys
I opened a ticket about this:
https://issues.asterisk.org/bug_view_advanced_page.php?bug_id=17217

Remove -c on the init script of asterisk, line 85. Should help.

I was trying it with a xen guest.

On Fri, Apr 23, 2010 at 6:52 AM, Kelvin Chan
kelvin.c...@positronics.com wrote:
 And I've just done another test. With stock ubuntu 9.10 i386 and sample
 asterisk config files, I have the same result. VMWare shows no crazy
 stats of disk access nor memory usage. Just 100% cpu load. I selected
 Mail Server and OpenSSH server at tasksel screen during
 installation.

 Same thing.

 So I uninstall-all and apt-get install asterisk.
 Same thing. 100% with init script but normal with -c CLI switch.


 Please disregard the last message. I worked on the wrong server. Thank god I 
 have snapshots.
 The init script from ubuntu asterisk package resolved the problem.

 All I did was apt-get install asterisk on a different machine and copy that 
 init script over. It did the trick.

 But it's interesting that init script shipped with ubuntu 1.6.2.6 and 
 1.6.2.7-rc2 both caused the same problem.

 Cheers,

 kel

 NOTICE: This communication is intended only for the use of the person or 
 entity named above and may contain information that is confidential or 
 legally privileged. If you are not the intended recipient named above or a 
 person responsible for delivering messages or communication to the intended 
 recipient, you are hereby notified that any use, distribution, or copying of 
 this communication or any of the information contained in it is strictly 
 prohibited. If you have this communication in error, please notify me 
 immediately by telephone and then destroy or delete this communication, or 
 return it to me by mail if requested. Thank you for your attention and 
 cooperation.

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users