Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Wykorzystanie cache APCU, lub cachec oparty na plikach
netvalue
post 27.09.2016, 10:58:44
Post #1





Grupa: Zarejestrowani
Postów: 199
Pomógł: 2
Dołączył: 9.06.2008

Ostrzeżenie: (0%)
-----


W swojej aplikacji wykorzystuje cache oparty na APCU
problem w tym  że mam ustawiony default_expire na 3600 (1h) a jego ważność kończy się zwykle po kilku minutach... Tak obstawiam że jest to problem z czasem jego ważności
gdyż po kilku minutach aplikacja znów chodzi wolno, tak jak bez używania cachce..

próbowałem też cachce opartym na plikach (framework kohana) sytuacja jest identyczna...

Ktoś wie o co chodzi ?

Ten post edytował netvalue 27.09.2016, 11:01:41
Go to the top of the page
+Quote Post
maly_swd
post 28.09.2016, 11:49:57
Post #2





Grupa: Zarejestrowani
Postów: 744
Pomógł: 118
Dołączył: 14.02.2009
Skąd: poziome

Ostrzeżenie: (0%)
-----


Przepełnia Ci się pewnie cache i "stare" dane są wywalane z cacha.


--------------------
śmieszne obrazki
Kryzys: Ser jem spleśniały, wino piję stare i samochód mam bez dachu..
Go to the top of the page
+Quote Post
netvalue
post 29.09.2016, 08:32:11
Post #3





Grupa: Zarejestrowani
Postów: 199
Pomógł: 2
Dołączył: 9.06.2008

Ostrzeżenie: (0%)
-----


@maly_swd kurcze może być smile.gif
generalnie czasami jak wywali cache i musi wszystko apka od nowa obrobić to wywala nawet błąd że 1gb pamięci to za mało... ale po tym błędzie zrobie odśwież to już za drugim
razem dokończy robote...

w którym kierunku szukać rozwiązania tego tematu... ktoś coś ?
Go to the top of the page
+Quote Post
maly_swd
post 29.09.2016, 13:59:40
Post #4





Grupa: Zarejestrowani
Postów: 744
Pomógł: 118
Dołączył: 14.02.2009
Skąd: poziome

Ostrzeżenie: (0%)
-----


Jeszcze Xdebug może być problemem o którym piszesz (1GB ram)


--------------------
śmieszne obrazki
Kryzys: Ser jem spleśniały, wino piję stare i samochód mam bez dachu..
Go to the top of the page
+Quote Post
netvalue
post 29.09.2016, 18:48:19
Post #5





Grupa: Zarejestrowani
Postów: 199
Pomógł: 2
Dołączył: 9.06.2008

Ostrzeżenie: (0%)
-----


Xdebug mam wyłączony...
Go to the top of the page
+Quote Post
maly_swd
post 29.09.2016, 20:52:34
Post #6





Grupa: Zarejestrowani
Postów: 744
Pomógł: 118
Dołączył: 14.02.2009
Skąd: poziome

Ostrzeżenie: (0%)
-----


To może wklej phpinfo tutaj i konfig acpu?


--------------------
śmieszne obrazki
Kryzys: Ser jem spleśniały, wino piję stare i samochód mam bez dachu..
Go to the top of the page
+Quote Post
netvalue
post 30.09.2016, 08:05:13
Post #7





Grupa: Zarejestrowani
Postów: 199
Pomógł: 2
Dołączył: 9.06.2008

Ostrzeżenie: (0%)
-----


blad ktory zawsze prawie otrzymuje gdy cache "wyparuje"
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 72 bytes) in...



PHP INFO
  1. Configure Command './configure' '--with-apxs2' '--with-config-file-scan-dir=/usr/local/lib/php.conf.d' '--with-curl=/usr/local/lib' '--with-gd' '--enable-gd-native-ttf' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-libxml-dir=/usr/local/lib' '--with-kerberos' '--with-openssl' '--with-mcrypt' '--with-mhash' '--with-mysql=mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=mysqlnd' '--with-pcre-regex=/usr/local' '--with-pdo-mysql=mysqlnd' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-xsl' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-zip' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-sockets' '--enable-soap' '--enable-mbstring' '--with-icu-dir=/usr/local/icu' '--with-mssql=/usr/local/freetds' '--with-unixODBC=/usr' '--with-pdo-odbc=unixODBC' '--enable-intl'
  2. Server API Apache 2.0 Handler
  3. Virtual Directory Support disabled
  4. Configuration File (php.ini) Path /usr/local/lib
  5. Loaded Configuration File /usr/local/lib/php.ini
  6. Scan this dir for additional .ini files /usr/local/lib/php.conf.d
  7. Additional .ini files parsed /usr/local/lib/php.conf.d/50-webapps.ini
  8. PHP API 20131106
  9. PHP Extension 20131226
  10. Zend Extension 220131226
  11. Zend Extension Build API220131226,NTS
  12. PHP Extension Build API20131226,NTS
  13. Debug Build no
  14. Thread Safety disabled
  15. Zend Signal Handling disabled
  16. Zend Memory Manager enabled
  17. Zend Multibyte Support provided by mbstring
  18. IPv6 Support enabled
  19. DTrace Support disabled
  20. Registered PHP Streams https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar, zip
  21. Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls, tlsv1.0, tlsv1.1, tlsv1.2
  22. Registered Stream Filters zlib.*, convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk


[phpl]Core
PHP Version 5.6.4

Directive Local Value Master Value
allow_url_fopen On On
allow_url_include Off Off
always_populate_raw_post_data 0 0
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset UTF-8 UTF-8
default_mimetype text/html text/html
disable_classes no value no value
disable_functions no value no value
display_errors On Off
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl Off Off
enable_post_data_reading On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 24575 24575
exit_on_timeout Off Off
expose_php On On
extension_dir /usr/local/lib/php/extensions/no-debug-non-zts-20131226 /usr/local/lib/php/extensions/no-debug-non-zts-20131226
file_uploads On On
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors Off Off
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/local/lib/php .:/usr/local/lib/php
input_encoding no value no value
internal_encoding no value no value
log_errors On On
log_errors_max_len 1024 1024
mail.add_x_header On On
mail.force_extra_parameters no value no value
mail.log /home/ixx/.php/php-mail.log no value
max_execution_time 900 900
max_file_uploads 20 20
max_input_nesting_level 64 64
max_input_time 60 60
max_input_vars 1000 1000
memory_limit 1024M 512M
open_basedir /home/ixx/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php56/lib/php/:/usr/local/php53/lib/php/ no value
output_buffering 4096 4096
output_encoding no value no value
output_handler no value no value
post_max_size 513M 164M
precision 14 14
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv Off Off
report_memleaks On On
report_zend_debug On On
request_order GP GP
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i -f in@xx.pl /usr/sbin/sendmail -t -i
serialize_precision 17 17
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
sys_temp_dir no value no value
track_errors Off Off
unserialize_callback_func spl_autoload_call no value
upload_max_filesize 513M 100M
upload_tmp_dir no value no value
user_dir no value no value
user_ini.cache_ttl 300 300
user_ini.filename .user.ini .user.ini
variables_order GPCS GPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
zend.detect_unicode On On
zend.enable_gc On On
zend.multibyte Off Off
zend.script_encoding


apc

APC support Emulated
apcu
APCu Support Enabled
Version 4.0.10
APCu Debugging Disabled
MMAP Support Enabled
MMAP File Mask no value
Serialization Support php
Revision $Revision: 328290 $
Build Date Sep 22 2016 21:42:23
Directive Local Value Master Value
apc.coredump_unmap Off Off
apc.enable_cli Off Off
apc.enabled On On
apc.entries_hint 4096 4096
apc.gc_ttl 3600 3600
apc.mmap_file_mask no value no value
apc.preload_path no value no value
apc.rfc1867 Off Off
apc.rfc1867_freq 0 0
apc.rfc1867_name APC_UPLOAD_PROGRESS APC_UPLOAD_PROGRESS
apc.rfc1867_prefix upload_ upload_
apc.rfc1867_ttl 3600 3600
apc.serializer php php
apc.shm_segments 1 1
apc.shm_size 32M 32M
apc.slam_defense On On
apc.smart 0 0
apc.ttl 0 0
apc.use_request_time On On
apc.writable /tmp /tmp[/php]

Ten post edytował netvalue 30.09.2016, 08:07:16
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 25.04.2025 - 08:06