[Server] Server inizia a rallentare e si pianta.

Installazione, configurazione e uso di Ubuntu come server: web, ftp, mail, news, proxy, dns e altro.
LorenzoProdon
Prode Principiante
Messaggi: 15
Iscrizione: venerdì 30 marzo 2012, 8:31

[Server] Server inizia a rallentare e si pianta.

Messaggio da LorenzoProdon »

Salve,
ho un grave problema col mio server Ubuntu 10.04.
Da un mese a questa parte, ogni 2 giorni il server inizia a rallentare e si pianta.
Sopra c'è una installazione di Wordpress e una di Prestashop.
Oltre a questo l'unica cosa che ho aggiunto sono i virtualhost per Apache per gestire due domini diversi.
C'è anche Webmin da cui accedo per fare delle operazioni.

In questo momento ho questo carico:
Real memory 488.04 MB total, 208.95 MB used
Virtual memory 2 GB total, 4.50 MB used

Qualcuno può darmi un consiglio? Da dove iniziare a capire qual'è la causa di questi blocchi?
Grazie mille
glpiana
Rampante Reduce
Rampante Reduce
Messaggi: 5053
Iscrizione: martedì 10 aprile 2007, 9:40

Re: [Server] Server inizia a rallentare e si pianta.

Messaggio da glpiana »

a spazio su disco come stai messo?
LorenzoProdon
Prode Principiante
Messaggi: 15
Iscrizione: venerdì 30 marzo 2012, 8:31

Re: [Server] Server inizia a rallentare e si pianta.

Messaggio da LorenzoProdon »

Grazie della risposta, lo spazio su disco ce ne è anche abbastanza..

Local disk space 47.62 GB total, 4.76 GB used

Una volta ho assistito ad un rallentamento in diretta, in cui vedevo la ram fisica utilizzata al 99% e la cpu al 99%.
Non sono riuscito ne a vedere ne a capire qual'era il processo che mi mandava tutto a friggere.
glpiana
Rampante Reduce
Rampante Reduce
Messaggi: 5053
Iscrizione: martedì 10 aprile 2007, 9:40

Re: [Server] Server inizia a rallentare e si pianta.

Messaggio da glpiana »

ti consiglierei di lasciare aperto top in modo da poter identificare quale processo va a usare tante risorse, senza dover cercare di aprire top quando ormai è troppo tardi.
LorenzoProdon
Prode Principiante
Messaggi: 15
Iscrizione: venerdì 30 marzo 2012, 8:31

Re: [Server] Server inizia a rallentare e si pianta.

Messaggio da LorenzoProdon »

Grazie per il consiglio, terrò sotto controllo il server col top aperto...

Mi proietto però nel momento in cui si bloccherà, cosa succede se non sono davanti al monitor?
Ovviamente non posso accorgermi del blocco in realtime, magari non sono connesso (es succede di notte).. Non è possibile consultare un log?
LorenzoProdon
Prode Principiante
Messaggi: 15
Iscrizione: venerdì 30 marzo 2012, 8:31

Re: [Server] Server inizia a rallentare e si pianta.

Messaggio da LorenzoProdon »

Ho trovato nel log al momento del blocco queste righe:

Codice: Seleziona tutto

[Tue Apr 03 12:20:50 2012] [error] [client 4.79.204.36] PHP Warning:  next() expects parameter 1 to be array, boolean given in /var/www/turbo/wp-includes/plugin.php on line 407
[Tue Apr 03 12:20:51 2012] [error] [client 4.79.204.36] PHP Warning:  current() expects parameter 1 to be array, boolean given in /var/www/turbo/wp-includes/plugin.php on line 403
[Tue Apr 03 12:20:51 2012] [error] [client 4.79.204.36] PHP Warning:  next() expects parameter 1 to be array, boolean given in /var/www/turbo/wp-includes/plugin.php on line 407
[Tue Apr 03 12:20:51 2012] [error] [client 4.79.204.36] PHP Warning:  current() expects parameter 1 to be array, boolean given in /var/www/turbo/wp-includes/plugin.php on line 403
[Tue Apr 03 12:20:51 2012] [error] [client 4.79.204.36] PHP Warning:  next() expects parameter 1 to be array, boolean given in /var/www/turbo/wp-includes/plugin.php on line 407
[Tue Apr 03 12:20:51 2012] [error] [client 4.79.204.36] PHP Warning:  current() expects parameter 1 to be array, boolean given in /var/www/turbo/wp-includes/plugin.php on line 403
[Tue Apr 03 12:20:51 2012] [error] [client 4.79.204.36] PHP Warning:  next() expects parameter 1 to be array, boolean given in /var/www/turbo/wp-includes/plugin.php on line 407
[Tue Apr 03 12:20:51 2012] [error] [client 4.79.204.36] PHP Warning:  current() expects parameter 1 to be array, boolean given in /var/www/turbo/wp-includes/plugin.php on line 403
[Tue Apr 03 12:20:51 2012] [error] [client 4.79.204.36] PHP Warning:  next() expects parameter 1 to be array, boolean given in /var/www/turbo/wp-includes/plugin.php on line 407
[Tue Apr 03 12:20:51 2012] [error] [client 4.79.204.36] PHP Warning:  current() expects parameter 1 to be array, boolean given in /var/www/turbo/wp-includes/plugin.php on line 403
[Tue Apr 03 12:20:51 2012] [error] [client 4.79.204.36] PHP Warning:  next() expects parameter 1 to be array, boolean given in /var/www/turbo/wp-includes/plugin.php on line 407
[Tue Apr 03 12:20:51 2012] [error] [client 4.79.204.36] PHP Warning:  current() expects parameter 1 to be array, boolean given in /var/www/turbo/wp-includes/plugin.php on line 403
per ogni secondo ce ne sono a centinaia, e vanno avanti per un chilometrico file di errore.
E' Wordpress che mi incasina tutto! vi posto il file plugin.php

Codice: Seleziona tutto

RIGA 337* Execute functions hooked on a specific action hook.
 *
 * This function invokes all functions attached to action hook $tag. It is
 * possible to create new action hooks by simply calling this function,
 * specifying the name of the new hook using the <tt>$tag</tt> parameter.
 *
 * You can pass extra arguments to the hooks, much like you can with
 * apply_filters().
 *
 * @see apply_filters() This function works similar with the exception that
 * nothing is returned and only the functions or methods are called.
 *
 * @package WordPress
 * @subpackage Plugin
 * @since 1.2
 * @global array $wp_filter Stores all of the filters
 * @global array $wp_actions Increments the amount of times action was triggered.
 *
 * @param string $tag The name of the action to be executed.
 * @param mixed $arg,... Optional additional arguments which are passed on to the functions hooked to the action.
 * @return null Will return null if $tag does not exist in $wp_filter array
 */
function do_action($tag, $arg = '') {
	global $wp_filter, $wp_actions, $merged_filters, $wp_current_filter;

	if ( ! isset($wp_actions) )
		$wp_actions = array();

	if ( ! isset($wp_actions[$tag]) )
		$wp_actions[$tag] = 1;
	else
		++$wp_actions[$tag];

	// Do 'all' actions first
	if ( isset($wp_filter['all']) ) {
		$wp_current_filter[] = $tag;
		$all_args = func_get_args();
		_wp_call_all_hook($all_args);
	}

	if ( !isset($wp_filter[$tag]) ) {
		if ( isset($wp_filter['all']) )
			array_pop($wp_current_filter);
		return;
	}

	if ( !isset($wp_filter['all']) )
		$wp_current_filter[] = $tag;

	$args = array();
	if ( is_array($arg) && 1 == count($arg) && isset($arg[0]) && is_object($arg[0]) ) // array(&$this)
		$args[] =& $arg[0];
	else
		$args[] = $arg;
	for ( $a = 2; $a < func_num_args(); $a++ )
		$args[] = func_get_arg($a);

	// Sort
	if ( !isset( $merged_filters[ $tag ] ) ) {
		ksort($wp_filter[$tag]);
		$merged_filters[ $tag ] = true;
	}

	reset( $wp_filter[ $tag ] );                                    //RIGA 400

	do {
		foreach ( (array) current($wp_filter[$tag]) as $the_ )            //RIGA 403
			if ( !is_null($the_['function']) )
				call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));

	} while ( next($wp_filter[$tag]) !== false );                              //RIGA 407

	array_pop($wp_current_filter);
}

Come posso fare a risolvere questo straziante problema?
glpiana
Rampante Reduce
Rampante Reduce
Messaggi: 5053
Iscrizione: martedì 10 aprile 2007, 9:40

Re: [Server] Server inizia a rallentare e si pianta.

Messaggio da glpiana »

spiacente ma io no so aiutarti.
Scrivi risposta

Ritorna a “Ubuntu su server”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 2 ospiti