TNG consumes high CPU usage

Web based, multi-user, Telephone Management System with budget management and barring control

Moderators: Leon van Heerden, Luanda_Junzi, Belinda Frick, Lee Hendricks

TNG consumes high CPU usage

Postby wouter » Mon Feb 11, 2013 1:56 pm

TNG consumes high CPU usage;
TNG Version 1.0.7.7 [4*]

Please refer to attachment for the screenshot as per request by Odette.

I am not familiar with Linux and need assistance regarding how to get the tng.log and date folder.

I have been using TNG for as long as I have my Asterisk PBX and have subsequently stopped the TNG service due to that it creating huge problems in performance of my PBX.

This needs to be solved ASAP, as an paying customer I believe that little has been done to resolve my problem via my PBX supplier, Nashua. I am willing to install a Windows TNG version on one of my ISS servers if it will solve the problem.
I need this information and scheduled reports for obvious reasons.

Wouter Nel
IT OPS manager
Sonnendal Dairies
0216917481
You do not have the required permissions to view the files attached to this post.
wouter
 
Posts: 5
Joined: Mon Feb 11, 2013 10:30 am

Re: TNG consumes high CPU usage

Postby wouter » Mon Feb 11, 2013 2:37 pm

Log file as requested, location: /opt/datatex/tng/logs/20130211
You do not have the required permissions to view the files attached to this post.
wouter
 
Posts: 5
Joined: Mon Feb 11, 2013 10:30 am

Re: TNG consumes high CPU usage

Postby Odette Danster » Mon Feb 11, 2013 5:03 pm

Dear Wouter

Please refer to forum post below:

High memory usage with TNG and Asterisk on Linux box

Kindly provide the requested information for further investigation.

We suggest that you lower the percentage of available memory to reserve to about 10% and reduce the flush to harddrive to 150 seconds or less.

TNG will keep fewer records in 'live memory' and will not have to write large amounts of accumulated data to the harddrive at one time.

Please let us know what actions you take to reduce CPU usage (e.g. do you stop the TNG deamon, etc).
Odette Danster
 
Posts: 126
Joined: Thu Nov 18, 2010 12:01 pm

Re: TNG consumes high CPU usage

Postby peterfosseus » Tue Feb 12, 2013 10:32 am

Hi,

I have the same issue, using your 10%/150 settings solved the issue for about 1/2 hour, thereafter CPU spiked back up to 100% and stayed there.

Regards
Peter.
peterfosseus
 
Posts: 4
Joined: Wed Jul 25, 2012 8:16 am

Re: TNG consumes high CPU usage

Postby Odette Danster » Tue Feb 12, 2013 10:58 am

Dear Peter

Kindly confirm which option you have selected as the 'Asterisk Interface Method'?

Kind Regards
Odette
Odette Danster
 
Posts: 126
Joined: Thu Nov 18, 2010 12:01 pm

Re: TNG consumes high CPU usage

Postby peterfosseus » Tue Feb 12, 2013 12:54 pm

Hi

We are using option 2:

Please enter the ASTERISK Manager Interface Method (1=Asterisk Manager Interface, 2=Asterisk CSV File Import):2

[ASTERISK]
Host=127.0.0.1
Port=5038
Login=tng
Password=<password>==
Use CDR File=1
CDR File Location=/var/log/asterisk/cdr-custom/Master.csv
Strip Breakout Digit=1

Regards
Peter
peterfosseus
 
Posts: 4
Joined: Wed Jul 25, 2012 8:16 am

Re: TNG consumes high CPU usage

Postby Belinda Frick » Tue Feb 12, 2013 1:35 pm

With TNG for Asterisk we always suggest using the CSV file option.

Note we still connect to the AMI and it's configuration must be in place - refer to forum post:
TNG and Asterisk: Suggested setup

For suggestions to reduce CPU usage see forum post:
TNG4* Custom CSV is correct format but not logging calls
Belinda Frick
 
Posts: 3808
Joined: Fri Nov 12, 2010 4:25 pm

Re: TNG consumes high CPU usage

Postby peterfosseus » Tue Feb 12, 2013 3:15 pm

Hi,

I AM using the csv, so I'm not sure why you are telling me to use csv?
This still doesn't explain why TNG takes 100% of the CPU, lucky this is a multi-core system.

Regards
Peter
peterfosseus
 
Posts: 4
Joined: Wed Jul 25, 2012 8:16 am

Re: TNG consumes high CPU usage

Postby Belinda Frick » Tue Feb 12, 2013 3:40 pm

One of our client had similar issues, where calls did not import and CPU usage was high.

This client is using the latest version of TNG (version 1.1.1.11) with the CSV option. The setup and link I suggested to you was to ensure the our standard settings is in place.

For settings that reduced his CPU usage, please refer to forum post:
Re: TNG4* Custom CSV is correct format but not logging calls
Belinda Frick
 
Posts: 3808
Joined: Fri Nov 12, 2010 4:25 pm

Re: TNG consumes high CPU usage

Postby wouter » Thu Feb 14, 2013 1:21 pm

Odette Danster wrote:Dear Wouter

Please refer to forum post below:

High memory usage with TNG and Asterisk on Linux box

Kindly provide the requested information for further investigation.

We suggest that you lower the percentage of available memory to reserve to about 10% and reduce the flush to harddrive to 150 seconds or less.

TNG will keep fewer records in 'live memory' and will not have to write large amounts of accumulated data to the harddrive at one time.

Please let us know what actions you take to reduce CPU usage (e.g. do you stop the TNG deamon, etc).


I have made changes as requested and keep you informed!
Yes I do stop the TNG PID to reduce CPU Usage.
wouter
 
Posts: 5
Joined: Mon Feb 11, 2013 10:30 am

Next

Return to TNG

Who is online

Users browsing this forum: No registered users and 1 guest