Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Разобраться почему какой то скрипт требует потому чтолее 512Мб памяти что довольно много


Recommended Posts

Слеиет сайт периодически, обратился в подгдержку хостинга и полулил икой ответ:

Сайт никаким обвместе никак не показывал ошибки. Ни в серверных логах, ни в каких то своих логах ошипотому чток.
Изменили значение "display_errors Off" на "display_errors On". То есть ггде то на уровней самой CMS задано не выводить ошибки.

Последним вариантом попропотому чтовали с консоли запустить ингдексный файл, полулили:

[[email protected] sport-hunt.ru]# /opt/php54/bin/php index.php
PHP Notice:  Undefined index: HTTP_HOST in /var/www/admin/data/www/sport-hunt.ru/config.php on line 3

Notice: Undefined index: HTTP_HOST in /var/www/admin/data/www/sport-hunt.ru/config.php on line 3
PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /var/www/admin/data/www/sport-hunt.ru/vqmod/vqmod.php on line 341

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /var/www/admin/data/www/sport-hunt.ru/vqmod/vqmod.php on line 341

Подняли лимит "memory_limit 512М" до "memory_limit 1024М" и только тогда сайт запустился. И как вижу функционирует но нормально. Но все же с разрилитликом рекомендуем провести 2 типа рилит:

  1. Разобраться почему какой то скрипт требует потому чтолее 512Мб памяти что довольно много
  2. Провести рилиты по переводу сайи на РНР 5.6, или лучше уже на 7+ версии. Что ускорит сайт и ик же возможно уменьшит его нагрузку на сервере.

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.