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 2016-11-18 18:05:20

KKAdmin
Guest
From: Germany
Registered: 2010-03-05
Posts: 535

Performance Error Message

If i activate debug mode i got in Home- Setup -General - performance following error.

PHP Notice: Undefined index: num_hits in /var/www/glpi/inc/config.class.php at line 1558
PHP Notice: Undefined index: num_misses in /var/www/glpi/inc/config.class.php at line 1559
PHP Warning: Division by zero in /var/www/glpi/inc/config.class.php at line 1561
PHP opcode cache
The "Zend OPcache" extension is installed     7.0.3FE         Zend OPcache
Memory     63.95 MB / 64 MB   
100%
    Zend OPcache
Hits rate     6481 / 7310   
89%
    Zend OPcache
Out of memory restart     0        Zend OPcache
    Reset
User data cache
The "APCu" extension is installed     4.0.2         APCu
Memory     436.17 kB / 32 MB   
1%
    APCu
Hits rate     / 0   
0%
    APCu
    Reset
AJAX DEBUG    Display only tab for debug





Information about system installation and configuration

 
GLPI 9.1.1 (/glpi => /var/www/glpi)

Server

 
Operating system: Linux inventar01 3.13.0-85-generic #129-Ubuntu SMP Thu Mar 17 20:50:41 UTC 2016 i686
PHP 5.5.9-1ubuntu4.20 apache2handler (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apc, apcu,
    bcmath, bz2, calendar, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, json,
    ldap, libxml, mbstring, mhash, mysql, mysqli, openssl, pcre, pdo_mysql, posix, readline, session, shmop, soap, sockets,
    standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, zlib)
Setup: max_execution_time="180" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files"
    upload_max_filesize="50M" 
Software: Apache/2.4.7 (Ubuntu) (Apache/2.4.7 (Ubuntu) Server at ticket01 Port 80)
    Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Server Software: (Ubuntu)
    Server Version: 5.5.49-0ubuntu0.14.04.1
    Server SQL Mode: 
    Parameters: [email protected]/glpidb
    Host info: Localhost via UNIX socket
    
OK/var/www/glpi/config : OK
OK/var/www/glpi/files : OK
OK/var/www/glpi/files/_dumps : OK
OK/var/www/glpi/files/_sessions : OK
OK/var/www/glpi/files/_cron : OK
OK/var/www/glpi/files/_graphs : OK
OK/var/www/glpi/files/_lock : OK
OK/var/www/glpi/files/_plugins : OK
OK/var/www/glpi/files/_tmp : OK
OK/var/www/glpi/files/_rss : OK
OK/var/www/glpi/files/_uploads : OK
OK/var/www/glpi/files/_pictures : OK
OK/var/www/glpi/files/_log : OK
Web access to the files directory, should not be allowed
Check the .htaccess file and the web server configuration.

Libraries

 
htmLawed version 1.1.21 in (/var/www/glpi/lib/htmlawed)
phpCas version 1.3.4 in (/var/www/glpi/vendor/jasig/phpcas/source)
PHPMailer version 5.2.16 in (/var/www/glpi/vendor/phpmailer/phpmailer)
Zend Framework in (/var/www/glpi/vendor/zendframework/zend-loader/src)
zetacomponents/graph in (/var/www/glpi/vendor/zetacomponents/graph/src)
SimplePie version 1.4.1 in (/var/www/glpi/vendor/simplepie/simplepie/library)
TCPDF version 6.2.12 in (/var/www/glpi/vendor/tecnickcom/tcpdf)
michelf/php-markdown in (/var/www/glpi/vendor/michelf/php-markdown/Michelf)
true/punycode in (/var/www/glpi/vendor/true/punycode/src)
iacaml/autolink in (/var/www/glpi/vendor/iamcal/lib_autolink)
sabre/vobject in (/var/www/glpi/vendor/sabre/vobject/lib)



Plugins list

 
    news                 Name: Alarme                         Version: 0.90-1.3.1 State: Not activated
    barcode              Name: Barcode                        Version: 0.90+1.0   State: Not activated
    reports              Name: Berichte                       Version: 1.7.2      State: Not activated
    dashboard            Name: Dashboard                      Version: 0.7.7      State: Not activated
    datainjection        Name: File injection                 Version: 2.3.1      State: Not activated
    formcreator          Name: Formulare                      Version: 0.90-1.4-beta4 State: Enabled
    addressing           Name: IP Adressierung                Version: 2.3.0      State: Not activated
    pdf                  Name: PDF-Ausgabe                    Version: 1.0.2      State: Not activated

You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.1.2 /Ubuntu 14.04.4 LTS
Apache/2.4.7 (Ubuntu) - PHP 5.5.9-1ubuntu4.16 - MySQL: 5.5.49-0ubuntu0.14.04.1

Offline

#2 2017-01-10 18:04:00

ecanton
Guest
Registered: 2016-10-18
Posts: 55

Re: Performance Error Message

What was your solution??

Offline

#3 2017-01-10 20:19:35

KKAdmin
Guest
From: Germany
Registered: 2010-03-05
Posts: 535

Re: Performance Error Message

I got no response and i have no solution.


You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.1.2 /Ubuntu 14.04.4 LTS
Apache/2.4.7 (Ubuntu) - PHP 5.5.9-1ubuntu4.16 - MySQL: 5.5.49-0ubuntu0.14.04.1

Offline

#4 2017-01-11 09:35:18

ecanton
Guest
Registered: 2016-10-18
Posts: 55

Re: Performance Error Message

Ok, ok. I'm finding solution for this: "Web access to the files directory, should not be allowed
Check the .htaccess file and the web server configuration"

Regards

Offline

#5 2017-02-17 22:18:45

guillermohaad
Guest
Registered: 2016-01-14
Posts: 6

Re: Performance Error Message

Hi, friends

I have the same problem, does anyone have the solution?
It seems that this is becoming common, and it would be important that it be resolved.

Offline

#6 2017-02-20 09:49:06

ecanton
Guest
Registered: 2016-10-18
Posts: 55

Re: Performance Error Message

Install php and php-apcu

/etc/php/version/mods-available modify apcu.ini

apc.enabled=1
apc.shm_size=2M
apc.mmap_file_mask=/tmp/apc.XXXXXX

Same for opcache: install php-opcache add to file opcache.ini on same place it:

opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1


Restart apache.

Offline

#7 2017-02-20 12:53:46

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 13,879

Re: Performance Error Message

Change message for apc_cache not activated: https://github.com/glpi-project/glpi/issues/1844


CentOS 6.5 - CentOS 7
PHP 5.6 - PHP 7 - MySQL 5.6  + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#8 2017-02-24 12:31:37

KKAdmin
Guest
From: Germany
Registered: 2010-03-05
Posts: 535

Re: Performance Error Message

@yllen
thanks for acknowledging the bug.

@ecanton
i think this only change settings but i get the same error.


You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.1.2 /Ubuntu 14.04.4 LTS
Apache/2.4.7 (Ubuntu) - PHP 5.5.9-1ubuntu4.16 - MySQL: 5.5.49-0ubuntu0.14.04.1

Offline

#9 2017-08-17 21:58:14

alor
Guest
Registered: 2017-08-17
Posts: 1

Re: Performance Error Message

Hello, I'm installing GLPI in Ubuntu and I get the same error. I have tried to solve it but I have not found anything.

I hope someone tells us how to fix it.

Greetings.

Error:

Error:
Zend OPcache extension test     Zend OPcache extension is not present
apcu-bc extension test                      apcu-bc extension is not present

Offline

#10 2017-08-18 11:40:06

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 13,879

Re: Performance Error Message

KKAdmin: with the correction you always have the error?


CentOS 6.5 - CentOS 7
PHP 5.6 - PHP 7 - MySQL 5.6  + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#11 2017-08-22 22:30:39

KKAdmin
Guest
From: Germany
Registered: 2010-03-05
Posts: 535

Re: Performance Error Message

No, not on my test-system clone from production.
GLPI 9.1.6 /Ubuntu 14.04.4 LTS

Clean / fresh only empty glpi on Ubuntu 16.10 no problem


You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.1.2 /Ubuntu 14.04.4 LTS
Apache/2.4.7 (Ubuntu) - PHP 5.5.9-1ubuntu4.16 - MySQL: 5.5.49-0ubuntu0.14.04.1

Offline

#12 2017-08-22 22:44:07

KKAdmin
Guest
From: Germany
Registered: 2010-03-05
Posts: 535

Re: Performance Error Message

on test-system clone - i think the plugin works but response in glpi is wrong
https://i.imgur.com/J2jpgzM.png


start_time	Mon, 21 Aug 17 06:39:16 +0200
last_restart_time	Tue, 22 Aug 17 21:20:06 +0200
oom_restarts	1

Last edited by KKAdmin (2017-08-22 22:46:29)


You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.1.2 /Ubuntu 14.04.4 LTS
Apache/2.4.7 (Ubuntu) - PHP 5.5.9-1ubuntu4.16 - MySQL: 5.5.49-0ubuntu0.14.04.1

Offline

Board footer

Powered by FluxBB