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 2006-04-12 11:33:37

glyph
Member
Registered: 2006-04-12
Posts: 10

Glpi 0.65 hangs.

Hello.
I'm using glpi 0.65, php5.1, mysql 5.0, apache 2, freebsd 5.4
Everything goes smooth for 10-15 minutes. Then glpi hangs - apache consumes almost 100% CPU. It is definetely glpi - lsof shows open files and dirs from alpi folder.
After apachectl restart everything goes well.
Is there a workaround?

Offline

#2 2006-04-12 12:02:41

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Glpi 0.65 hangs.

I've never seen a things like that !

Are sure that this hang is due to GLPI ??


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#3 2006-04-12 12:11:25

glyph
Member
Registered: 2006-04-12
Posts: 10

Re: Glpi 0.65 hangs.

Don't know if it is of glpi itself. May be the reason is somewhere else, may be some lock in DB?
The diagnosis was as follows: first httpd was monitored with 'top', then lsof -p HTTPD_PID was used to get a list of files. There I saw a socket connection to mysql. Then I've logged to mysql and saw that connection with an 'glpi_user_name'.
Can you give me a glue how to pinpoint the problem?

Offline

#4 2006-04-12 14:07:03

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Glpi 0.65 hangs.

There is other applications on your server  ?


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#5 2006-04-12 14:32:09

glyph
Member
Registered: 2006-04-12
Posts: 10

Re: Glpi 0.65 hangs.

Yes. Three scripts in two virtual hosts. But they are working well even despite that strange hangup.
Also I've noted that it hangs after form submit and the data is really getting into database...

Offline

#6 2006-04-12 16:25:29

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Glpi 0.65 hangs.

If you active in GLPI the mode debug , do you see something ?


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#7 2006-04-13 08:24:34

glyph
Member
Registered: 2006-04-12
Posts: 10

Re: Glpi 0.65 hangs.

Yes, when it works I see all the queries and so. When I press "Submit" nothing happens. It waits for the server responce.
Also I've noted there are two apache processes in lockf state. Does glpi use some kind of file locking as a sync method?
I can provide all the necessary information if you wish.

--
Sorry for my English. And my French is even worse.

Offline

#8 2006-04-13 10:04:04

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Glpi 0.65 hangs.

Does glpi use some kind of file locking as a sync method?

No

What is your memory_limit in your php.ini ?


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#9 2006-04-13 10:10:30

glyph
Member
Registered: 2006-04-12
Posts: 10

Re: Glpi 0.65 hangs.

memory_limit = 32M

Offline

#10 2006-04-13 11:32:40

glyph
Member
Registered: 2006-04-12
Posts: 10

Re: Glpi 0.65 hangs.

root@gate: /var#lsof /var/tmp/sess_i6o0q9m4qqamfuinrk6hhfv7l2
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF  NODE NAME
httpd   25640  www   76u  VREG   4,16      368 17775 /var/tmp/sess_i6o0q9m4qqamfuinrk6hhfv7l2
httpd   25643  www   76u  VREG   4,16      368 17775 /var/tmp/sess_i6o0q9m4qqamfuinrk6hhfv7l2
httpd   25661  www   76u  VREG   4,16      368 17775 /var/tmp/sess_i6o0q9m4qqamfuinrk6hhfv7l2
httpd   25867  www   76uW VREG   4,16      368 17775 /var/tmp/sess_i6o0q9m4qqamfuinrk6hhfv7l2

It seems there is an exclusive write lock on a session file. And all the rest sessions are working fine.

Offline

#11 2006-04-13 11:47:16

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Glpi 0.65 hangs.

Do you use a particular configuration for your sessions ?


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#12 2006-04-13 13:34:06

glyph
Member
Registered: 2006-04-12
Posts: 10

Re: Glpi 0.65 hangs.

I use default settings for sessions handling. What settings can affect it?

Last edited by glyph (2006-04-13 13:53:59)

Offline

#13 2006-04-13 14:48:42

glyph
Member
Registered: 2006-04-12
Posts: 10

Re: Glpi 0.65 hangs.

http://www.sitepoint.com/blogs/2006/02/ … onditions/ -- seems I'm facing something like this.

Offline

#14 2006-04-13 17:37:18

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Glpi 0.65 hangs.

yes it is possible...


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#15 2006-04-14 09:00:55

glyph
Member
Registered: 2006-04-12
Posts: 10

Re: Glpi 0.65 hangs.

MoYo wrote:

yes it is possible...

What should I do? Can I help tracking this bug?
Will downgrade help me?

Offline

#16 2006-04-17 15:45:51

glyph
Member
Registered: 2006-04-12
Posts: 10

Re: Glpi 0.65 hangs.

Reinstalled glpi on another machine - Windows (no comments), php4, mysql4. Works fine. Will follow up this later. Any help is highly welcome.

Last edited by glyph (2006-04-17 15:46:12)

Offline

Board footer

Powered by FluxBB