High CPU Usage

Please LogIn to Reply!

Post By: admin | 26-01-2012 06:35 Reply

Hi there,

Today I got these 2 notes from my webhosting company about high CPU usage مهاجرت کانادا . How Can I fix them:

Main index.php is still using more cpu and also generating zombie process with 100% cpu usage. This is not acceptable.

Main issue is the zombies creating by the main file /home2/canadaex/public_html/index.php.

Thank you

Post By: | 09-20-2012 00:39

what do you want to fix about your index.php? I am not getting you buddy. may be you should wait for one of the Joomla gurus, to help you out.

Post By: | 09-20-2012 00:39

punctuated wrote:
Dude, ur issue is CPU Usage right? Get a note, from your webhost first, has the CPU usage gone down after enabling cache. Dont worry, about index.php for now.


Ok, However is there any easy way to fix index.php file?

Post By: | 09-20-2012 00:39

Dude, ur issue is CPU Usage right? Get a note, from your webhost first, has the CPU usage gone down after enabling cache. Dont worry, about index.php for now.

Post By: | 09-20-2012 00:39

punctuated wrote:
u need to check if your index.php got injected with malicious code.
Just download a fresh joomla installation package of the version you are currently using, Replace the index.php [dont need to do anything more]


It is my index.php. I do not know if it is defected or not. By the way, If I download new index.php nad replace with this one, it does not result in any problem? مهاجرت سرمایه گذاری

<?php
/**
* @version $Id: index.php 14401 2010-01-26 14:10:00Z louis $
* @package Joomla
* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// Set flag that this is a parent file
define( '_JEXEC', 1 );

define('JPATH_BASE', dirname(__FILE__) );

define( 'DS', DIRECTORY_SEPARATOR );

require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );

JDEBUG ? $_PROFILER->mark( 'afterLoad' ) : null;

/**
* CREATE THE APPLICATION
*
* NOTE :
*/
$mainframe =& JFactory::getApplication('site');

/**
* INITIALISE THE APPLICATION
*
* NOTE :
*/
// set the language
$mainframe->initialise();

JPluginHelper::importPlugin('system');

// trigger the onAfterInitialise events
JDEBUG ? $_PROFILER->mark('afterInitialise') : null;
$mainframe->triggerEvent('onAfterInitialise');

/**
* ROUTE THE APPLICATION
*
* NOTE :
*/
$mainframe->route();

// authorization
$Itemid = JRequest::getInt( 'Itemid');
$mainframe->authorize($Itemid);

// trigger the onAfterRoute events
JDEBUG ? $_PROFILER->mark('afterRoute') : null;
$mainframe->triggerEvent('onAfterRoute');

/**
* DISPATCH THE APPLICATION
*
* NOTE :
*/
$option = JRequest::getCmd('option');
$mainframe->dispatch($option);

// trigger the onAfterDispatch events
JDEBUG ? $_PROFILER->mark('afterDispatch') : null;
$mainframe->triggerEvent('onAfterDispatch');

/**
* RENDER THE APPLICATION
*
* NOTE :
*/
$mainframe->render();

// trigger the onAfterRender events
JDEBUG ? $_PROFILER->mark('afterRender') : null;
$mainframe->triggerEvent('onAfterRender');

/**
* RETURN THE RESPONSE
*/
echo JResponse::toString($mainframe->getCfg('gzip'));

Post By: | 09-20-2012 00:39

u need to check if your index.php got injected with malicious code.
Just download a fresh joomla installation package of the version you are currently using, Replace the index.php [dont need to do anything more]

Post By: | 09-20-2012 00:39

By the way, How can I check that: Please make sure that whatever you have located at /home2/canadaex/public_html/index.php is up to date. مهاجرت کانادا

Post By: | 09-20-2012 00:39

just login to ur cpanel >>file manager and check under the joomla installation folder.
alternatively u can use your FTP prog.

Post By: | 09-20-2012 00:39

punctuated wrote:
for Joomla 1.5, step 1: go to SITE (upper left corner)>> Global Configuration>> System>> Cache setting.

Select Cache 'ON', set your caching time, say "15 mins". Cache Handler, choose, either, FILE/APC/Memcache. (lets say u choose, FILE)

SAVE. مهاجرت کانادا

Step 2: Go to Extensions >> Plugins Manager. Search "cache"
Enable it. Set, time = 15 mins (say).

whether u want to enable, browser caching or not , depends on you.

SAVE.

Done.


PS: check , in your, /root/cache folder, if the files are caching. (new files should show up). if the folder shows blank, make the folder writable, increase the folder permission.

Let me know, if that soothes ur server requests.


I did the first 2,

How can I : PS: check , in your, /root/cache folder, if the files are caching. (new files should show up). if the folder shows blank, make the folder writable, increase the folder permission.

Let me know, if that soothes ur server requests.

By the way, How can I check that: Please make sure that whatever you have located at /home2/canadaex/public_html/index.php is up to date.

Post By: | 09-20-2012 00:39

for Joomla 1.5, step 1: go to SITE (upper left corner)>> Global Configuration>> System>> Cache setting.

Select Cache 'ON', set your caching time, say "15 mins". Cache Handler, choose, either, FILE/APC/Memcache. (lets say u choose, FILE)

SAVE.

Step 2: Go to Extensions >> Plugins Manager. Search "cache"
Enable it. Set, time = 15 mins (say).

whether u want to enable, browser caching or not , depends on you.

SAVE.

Done.


PS: check , in your, /root/cache folder, if the files are caching. (new files should show up). if the folder shows blank, make the folder writable, increase the folder permission.

Let me know, if that soothes ur server requests.

Post By: | 09-20-2012 00:39

punctuated wrote:
enable caching on. global config + system plugin. Try then.


How I can do that? وکیل مهاجرت

Post By: | 09-20-2012 00:39

enable caching on. global config + system plugin. Try then.

Post By: | 09-20-2012 00:39

How can I fix that? مهاجرت به کانادا

Post By: | 09-20-2012 00:39

hacking in process? malicious? ... good luck

`Reply Or Comment!
Please LogIn to Reply!