You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2009-09-08 09:44:16

BenLar
Member
From: Lanvallay
Registered: 2009-01-06
Posts: 378

Plugin Tracker

Bonjour

Est-il normal d'avoir des process qui passent à "Defunct" ?

php -q -d -f tracker_fullsync.php --thread_id=1 --process_id=2510932 --type=
20111 pts/1    Z+     0:02  |               \_ [php] <defunct>
20112 pts/1    Z+     0:01  |               \_ [php] <defunct>
20113 pts/1    S+     0:01  |               \_ php -q tracker_fullsync.php --update_device_process=1 --id=12408 --FK_process=2510932 --FK_agent_process=02500
20114 pts/1    Z+     0:01  |               \_ [php] <defunct>
20115 pts/1    R+     0:01  |               \_ php -q tracker_fullsync.php --update_device_process=1 --id=12414 --FK_process=2510932 --FK_agent_process=02500
20116 pts/1    S+     0:02  |               \_ php -q tracker_fullsync.php --update_device_process=1 --id=12431 --FK_process=2510932 --FK_agent_process=02500
20118 pts/1    R+     0:01  |               \_ php -q tracker_fullsync.php --update_device_process=1 --id=12818 --FK_process=2510932 --FK_agent_process=02500
20119 pts/1    Z+     0:02  |               \_ [php] <defunct>
20120 pts/1    S+     0:01  |               \_ php -q tracker_fullsync.php --update_device_process=1 --id=12411 --FK_process=2510932 --FK_agent_process=02500
20121 pts/1    Z+     0:02  |               \_ [php] <defunct>

J'essaye de comprendre ce qui ne fonctionne pas. L'agent semble bien fonctionner. Par contre, le script serveur se plante assez souvent.

A+

Ben

Offline

#2 2009-09-08 13:39:56

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Plugin Tracker

c'ets quoi ça : --update_device_process=1 --id=12414 --FK_process=2510932 ?

Normalement il faut lancer le script sans arguments.

Pour les plantages, ça peut arriver si trop de mémoire utilisé, essaye de réduite le nombre de core/threads sur le script serveur

Offline

#3 2009-09-08 15:00:15

BenLar
Member
From: Lanvallay
Registered: 2009-01-06
Posts: 378

Re: Plugin Tracker

ddurieux wrote:

c'ets quoi ça : --update_device_process=1 --id=12414 --FK_process=2510932 ?

Aucune idée. Je lance

sh ./tracker_fullsync.sh

et rien d'autre.

Rien à voir (a priori). Lors de l'execution du script agent j'ai le message suivant :

root@vs_linux1:/var/www/html/glpi/plugins/agent> perl tracker_agent.pl
Threads version: 1.07
Perl is compiled with old version of thread, this script is run in degraded mod and can crash often
== Discovery devices ==
The file has been successfully uploaded
A thread exited while 7 threads were running (#1)
    (W threads)(S) When using threaded Perl, a thread (not necessarily the main
    thread) exited while there were still other threads running.
    Usually it's a good idea to first collect the return values of the
    created threads by joining them, and only then exit from the main
    thread.  See threads.

The file has been successfully uploaded
== Query devices ==
The file has been successfully uploaded
The file has been successfully uploaded

Coté core/threads, j'ai 1/10. A priori, rien de conséquent. Je vais diminuer à 5.

Offline

#4 2009-09-08 15:34:53

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Plugin Tracker

pour le serveur passe le à 4 - 5 max

A thread exited while 7 threads were running (#1) : ça c'est pas bon, t'a un thread qui a planté, donc diminue les threads/cores

Offline

#5 2009-09-08 15:49:13

BenLar
Member
From: Lanvallay
Registered: 2009-01-06
Posts: 378

Re: Plugin Tracker

OK.
Serveur => 4 thread
Agent => Decouverte : 2; interrogation : 2

Je vois ce que ça donne

Offline

Board footer

Powered by FluxBB