English Magento Help section

Is anybody can share server's hardware and php memory consumpution?
I use 128G Memory which use nginx/php-fpm , while eache php-fpm VIRT memory to 500M.Is it normal? The top command info:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
20146 apache 20 0 549.9m 83.2m 50.4m S 16.6 0.1 3:49.66 php-fpm
20141 apache 20 0 533.7m 77.8m 47.7m S 16.2 0.1 3:28.52 php-fpm
20124 apache 20 0 534.3m 77.3m 47.1m S 14.9 0.1 3:42.36 php-fpm
20161 apache 20 0 553.7m 90.9m 53.0m S 5.3 0.1 3:42.87 php-fpm
20180 apache 20 0 548.4m 81.0m 49.8m S 4.0 0.1 3:01.53 php-fpm
20176 apache 20 0 547.4m 82.3m 52.1m S 2.6 0.1 3:24.80 php-fpm
20177 apache 20 0 552.3m 86.3m 51.3m S 2.3 0.1 3:07.62 php-fpm
20231 apache 20 0 546.2m 82.2m 51.1m S 2.3 0.1 2:55.96 php-fpm

And I use lesti-fpc with redis,there is one problem the redis would use much memory(because there is more than 50000 products/each store) and the redis would not release the occupied memory after flushed redis database.Currently,I flush redis every several hours to prevent this.Is any better solution?
 
Is anybody can share server's hardware and php memory consumpution?
I use 128G Memory which use nginx/php-fpm , while eache php-fpm VIRT memory to 500M.Is it normal? The top command info:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
20146 apache 20 0 549.9m 83.2m 50.4m S 16.6 0.1 3:49.66 php-fpm
20141 apache 20 0 533.7m 77.8m 47.7m S 16.2 0.1 3:28.52 php-fpm
20124 apache 20 0 534.3m 77.3m 47.1m S 14.9 0.1 3:42.36 php-fpm
20161 apache 20 0 553.7m 90.9m 53.0m S 5.3 0.1 3:42.87 php-fpm
20180 apache 20 0 548.4m 81.0m 49.8m S 4.0 0.1 3:01.53 php-fpm
20176 apache 20 0 547.4m 82.3m 52.1m S 2.6 0.1 3:24.80 php-fpm
20177 apache 20 0 552.3m 86.3m 51.3m S 2.3 0.1 3:07.62 php-fpm
20231 apache 20 0 546.2m 82.2m 51.1m S 2.3 0.1 2:55.96 php-fpm

And I use lesti-fpc with redis,there is one problem the redis would use much memory(because there is more than 50000 products/each store) and the redis would not release the occupied memory after flushed redis database.Currently,I flush redis every several hours to prevent this.Is any better solution?
server with 128GB can easily handle about 3.5 mln products (redis just using 125MB for caching)
 
@hieveryone Did you start fixing the syntax on the shipping module?
 

Вложения

  • Websoft.zip
    53,5 KB · Просмотры: 3

I am getting this error now.
Код:
FastCGI: server "/usr/lib/cgi-bin/php5-fcgi" stderr: PHP message: PHP Fatal error:  Call to a member function startSetup() on a non-object in /var/www/html/magento/app/code/community/Websoft/Dpd/sql/ws_dpd_setup/mysql4-upgrade-0.0.7-0.0.8.php on line 14
and line 14 is
Код:
$installer->startSetup(  );
Код:
$installer->startSetup(  );

Still same error, Do i need to have ioncube installed even if its nulled?
 
Последнее редактирование модератором:
I am getting this error now.
Код:
FastCGI: server "/usr/lib/cgi-bin/php5-fcgi" stderr: PHP message: PHP Fatal error:  Call to a member function startSetup() on a non-object in /var/www/html/magento/app/code/community/Websoft/Dpd/sql/ws_dpd_setup/mysql4-upgrade-0.0.7-0.0.8.php on line 14
update files in setup folder and check...

Still same error, Do i need to have ioncube installed even if its nulled?
clear cache... no need of ioncube
 

Вложения

  • ws_dpd_setup.zip
    3,9 KB · Просмотры: 5
Последнее редактирование модератором:
server with 128GB can easily handle about 3.5 mln products (redis just using 125MB for caching)
I also use redis for full page cache which would easily use more than 12G memory(and more,because also I use 5 stores with other languages) if do not flush it every 4 hours.
I am wondering whether to set up a new server for redis,and should consider the influence about the network latency.
 
I went ahead and compiled my own deb for nginx to support http2 and pagespeed. I just get a couple of warnings and wanted to know if they are safe to ignore.

2016/03/03 21:55:34 [info] 1288#1288: [ngx_pagespeed 1.10.33.6-0] No threading detected. Own threads: 1 Rewrite, 1 Expensive Rewrite.
2016/03/03 21:55:34 [info] 1288#1288: pagespeed: rollback gzip, explicit configuration in /etc/nginx/nginx.conf:42

Has anyone here tried to compile nginx with pagespeed?

If you upgrade to magento 1.9.2.4. You can use php 5.6 and that will give you a little boost in performance.
 
Последнее редактирование модератором:
Is anybody can share server's hardware and php memory consumpution?
I use 128G Memory which use nginx/php-fpm , while eache php-fpm VIRT memory to 500M.Is it normal? The top command info:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
Apache 20146 20 0 549.9m 83.2m 50.4m S 16.6 0.1 3: 49.66 php-fpm
Apache 20141 20 0 533.7m 77.8m 47.7m S 16.2 0.1 3: 28.52 php-fpm
Apache 20124 20 0 534.3m 77.3m 47.1m S 14.9 0.1 3: 42.36 php-fpm
Apache 20161 20 0 553.7m 90.9m 53.0m S 5.3 0.1 3: 42.87 php-fpm
Apache 20180 20 0 548.4m 81.0m 49.8m S 4.0 0.1 3: 1:53 php-fpm
Apache 20176 20 0 547.4m 82.3m 52.1m S 2.6 0.1 3: 24.80 php-fpm
Apache 20177 20 0 552.3m 86.3m 51.3m S 2.3 0.1 3: 07.62 php-fpm
Apache 20231 20 0 546.2m 82.2m 51.1m 2.3 0.1 S 2: 55.96 php-fpm

And I use lesti-fpc with redis,there is one problem the redis would use much memory(because there is more than 50000 products/each store) and the redis would not release the occupied memory after flushed redis database.Currently,I flush redis every several hours to prevent this.Is any better solution?


I think it is ok, you should not worry so much about virtual memory usage, but only real memory usage which is ~50m in your case which is absolutely fine. I have sometimes up to 700m virtual memory usage per php-fpm process an never ran into any problems. I think it would be a good idea to change apache to nginx which has smaller memory footprint and is fast in general.

I think the second warning says that GZIP in pagespeed is not enabled or that it is already explicitly enabled in your nginx.conf. You can check this by looking at the headers.

Use PHP 7 instead of php 5.x, it will give you a huge performance improvement nearly equal to HHVM but without the hassle. Magento 1.9.x is more secure than 1.7 but no big changes regarding performance. The deadlock in your checkout process is probably because of your database/server config.
 
Последнее редактирование модератором:
I think it is ok, you should not worry so much about virtual memory usage, but only real memory usage which is ~50m in your case which is absolutely fine. I have sometimes up to 700m virtual memory usage per php-fpm process an never ran into any problems. I think it would be a good idea to change apache to nginx which has smaller memory footprint and is fast in general.
Thanks for your reply.I used Apache before,which use much memory ,so I changed to php-fpm/nginx.Currently,I use magento 1.7 not upgrade to 1.9 and 2,because I setup the demos,and no great performance improvement for 1.9(Maybe I missed to tune something.),2.0 version is not stable.The another problem is deadlock when I save one product and customer do checkout process.Tried the waiting and redo transcation patch as github/stackoverflow provided,still existing the problem.I searched the mysql log,the problem is caused by markQuotesRecollect which lock the sales_quote table,while checkout process insert one row to it.I am not sure whether any one have this deadlock too.
 
Назад
Сверху