PlugPBX Forums
May 19, 2012, 03:01:12 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: About to get started  (Read 1983 times)
Work2Play
Newbie
*
Posts: 12


« Reply #15 on: April 07, 2011, 12:58:58 PM »

Only been watching it for a few minutes - but the small spikes to 30%-ish; and the CPU MAX was caused by munin

28098 munin     30  10 17948 9.9m 4928 R 89.7  2.0   0:12.89 munin-graph
Logged
PlugPBX Admin
Administrator
Sr. Member
*****
Posts: 426



« Reply #16 on: April 08, 2011, 04:04:04 AM »

Thats normal and nothing to worry about.

If you don't care for the munin charts, just blow it away (apt-get remove) it.

Sounds like 99% was an exaggerator? Smiley
Logged

-Greg
Work2Play
Newbie
*
Posts: 12


« Reply #17 on: April 10, 2011, 11:19:56 PM »

no exageration - according to FreePBX's dashboard my CPU was hitting 100% and sitting there for a minute or so - it was a combination of things, including the top-listed item I pasted; it included apache2 and others.
Logged
PlugPBX Admin
Administrator
Sr. Member
*****
Posts: 426



« Reply #18 on: April 12, 2011, 04:53:49 AM »

Sure if you hit the website, FreePBX is going to generate a ton of SQL events, HTTP events and php, it'll spike once in awhile as you work with it. Nothing to be worried about.
Logged

-Greg
Work2Play
Newbie
*
Posts: 12


« Reply #19 on: April 13, 2011, 10:15:05 PM »

Understood. 

Just to clarify, this is not while I'm browsing the site, using any phones on the system, etc - this is just when I have the FreePBX status page open where it shows CPU usage.  Every so often it refreshes on its own and I'll see that the CPU Usage has spiked to 100%.  After your advice to watch Top - I saw what was happening - it seems that the graphs periodically update themselves - so for a brief period (30 seconds or so) the CPU usage spikes up to about 100%, with the top offenders being munin-charts, another munin-process, and apache2 - bouncing around in a pretty methodical fashion; then when it completes, it goes back pretty much to rest. 

No effect on performance has been noticed though so I'm not terribly worried about it - I'm just point this out because I do have enough common sense to know that if I'm browsing around the applications hosted on the plug, of course I expect generating the pages and querying information to have an impact on the machine... I was just pointing out what it was doing completely on its own.
Logged
PlugPBX Admin
Administrator
Sr. Member
*****
Posts: 426



« Reply #20 on: April 15, 2011, 04:18:51 AM »

Asterisk runs itself at a high priority to ensure it always gets what it needs. This setup has been running nearly a year and half in my own home, it just 'works'. Observations are always welcome.

I ended up removing munin, I only had it there to track for memory leaks, and excessive CPU usage. Ironically munin creates the higher load then any other component when its running (and not using the webgui's) LOL.
Logged

-Greg
Work2Play
Newbie
*
Posts: 12


« Reply #21 on: April 15, 2011, 11:53:16 PM »

I will say again, so far I'm extremely pleased... I certainly haven't taxed the system (I want to try conferencing soon) but it's an awesome setup and I've been telling everyone I can about it.  I do appreciate all the work you put into making and sharing this setup. 

I may remove munin too... I'm really thinking about getting my hands on one of the newer plug computers that runs the 2.0Ghz processor and attempting to build one from scratch - as a learning process.  I'm having a lot of fun with this!
Logged
Work2Play
Newbie
*
Posts: 12


« Reply #22 on: July 07, 2011, 02:20:11 PM »

Well, after running beautifully for 3 months, yesterday someone was working on my house and flipped the breaker to my office... and since, the PBX hasn't been right.

I finally got it to boot - for some reason it wasn't even booting at first... but now when it comes up, it still won't let the phones register... If I go into the FreePBX administration, I get this:
Quote
FATAL ERROR
DB Error: connect failed
along with more stack trace I can include if it's helpful...

If I try to go into the voicemail, I get this:
Quote
Warning: session_start() [function.session-start]: open(/var/lib/php5/sess_6b5648599c34d944d3951303f4c0cbf7, O_RDWR) failed: Read-only file system (30) in /var/www/recordings/includes/bootstrap.php on line 263

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/recordings/includes/bootstrap.php:263) in /var/www/recordings/includes/bootstrap.php on line 263

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/recordings/includes/bootstrap.php:263) in /var/www/recordings/includes/bootstrap.php on line 263

Warning: Cannot modify header information - headers already sent by (output started at /var/www/recordings/includes/bootstrap.php:263) in /var/www/recordings/includes/bootstrap.php on line 285

Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:5038 (Connection refused) in /var/www/recordings/includes/asi.php on line 32

Header And Logo
ARI



ARI does not appear to have access to the Asterisk Manager. ()
Check the ARI 'main.conf.php' configuration file to set the Asterisk Manager Account.
Check /etc/asterisk/manager.conf for a proper Asterisk Manager Account
make sure [general] enabled = yes and a 'permit=' line for localhost or the webserver.

FreePBX 2.5
Original work based on ARI from Littlejohn Consulting
Warning: Unknown: open(/var/lib/php5/sess_6b5648599c34d944d3951303f4c0cbf7, O_RDWR) failed: Read-only file system (30) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0

Any suggestions, or does it look like data just got too hosed?  Thanks in advance!
Logged
PlugPBX Admin
Administrator
Sr. Member
*****
Posts: 426



« Reply #23 on: July 08, 2011, 08:33:47 AM »

SD cards and their embedded disk controllers vary wildly. They can do weird stuff with sudden loss of power.

I've had brands with the controller choking after 2 days. I've had cards run for a year no issue.

Flashybrid. Go to the Developer forum here, we have a huge thread where I show how to install and setup flashybrid.

How does it do It?

It Runs the SD card READ ONLY. At bootup we create a ram disk, and copy any files that need read/write access (SQL Database for one). Bind mount points redirect access to files to the ram disk. Anything else can be accessed read only.  When you cleanly shutdown, the ram disk is synced back to the SD card. You can invoke the 'fh-sync' command to commit the ramdisk back to SD anytime.  Two additional scripts allow you to remount read/write at any time, and back again to readonly mode (mountrw and mountro are the script commands in search path already). Apt-get install flashybrid, then configure it Smiley

It makes it rock solid. Only changes you decide to commit back to SD card stay, otherwise is a failure scenario like power loss, it boots up in last good state. This is just like a Cisco router, you flash the config back when you want it to be, otherwise 'test' your changes.

Also, with MySQL running from a RAM disk, the call processing speeds get even faster Wink

Keep the Sheeva on a UPS, and setup flashybrid, so far it seems bullet proof.

Everyone has my stock image, I figured somebody out there would install my base image, add the flashybrid as I've documented here and then I can post that image as newer. I just can't do everything, so hopefully someone can pickup the slack here Wink

 I want flashbyrid to be a standard part of PlugPBX.  I put it into place on my own systems, works well.  I had a batch of SD cards that were just junk, they'd die after 2 days, but with flashbyrbid, my systems are up almost a year now. When I'm inspired to finish the install/setup shell script, I'll add flashybrid installation and configuration as part of it (its one of the last pieces remaining).

I looked at using JFFS (does not scale to large filesystems), I've looked at other solutions, but flashybrid offers the best compromises  - because you can still hack the system, add/remote programs. The only consideration is that you 'add' any files that need read/write privileges for the system to work, and watch the ram disk sizing and usage. Its pretty easy to tune.
« Last Edit: July 09, 2011, 06:32:20 PM by PlugPBX Admin » Logged

-Greg
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Install SimpleMachinesForum web hosting Valid XHTML 1.0! Valid CSS!