[Cache] PHP 8.0: JIT > Web/PHP/API

본문 바로가기
사이트 내 전체검색

Web/PHP/API

[Cache] PHP 8.0: JIT

페이지 정보

작성자 sbLAB 댓글 0건 조회 1,905회 작성일 23-06-04 09:11

본문


Configuring JIT

In PHP 8.0, JIT is enabled by default, but turned off. Enabling JIT is easy, and only requires minimal INI configuration similar to this:


------php.ini----------   

[php-fpm 경우 php.ini 경로] =>​/etc/php/8.1/fpm/php.ini



;;;;;;;;;;;;;;;;;;;;;;

; Dynamic Extensions ;

;;;;;;;;;;;;;;;;;;;;;;

zend_extension=opcache       <--------  enable!!


e534c3a331d856b1db4c3ac48b230d66_1687930922_0866.png
 

[opcache]

opcache.enable=1

opcache.enable_cli=1

opcache.jit_buffer_size=256M

opcache.jit=tracing


opcache.validate_timestamps=1  ;(1=on) check for updated scripts every opcache.revalidate_freq seconds.

opcache.revalidate_freq=60      ; defalut value is 2, if developer mode --> opcache.revalidate_freq=0


--------------------------------


 opcache.validate_timestamps bool

If enabled, OPcache will check for updated scripts every opcache.revalidate_freq seconds.
When this directive is disabled, you must reset OPcache manually via
 opcache_reset(), opcache_invalidate() or by restarting the Web server for changes to the filesystem to take effect.


 opcache.revalidate_freq  int

How often to check script timestamps for updates, in seconds. 0 will result in OPcache checking for updates on every request
If opcache.validate_timestamps is disabled(0), This configuration directive is ignored.



-------- Restart Web Server.. ---------


http://localhost/dashboard/phpinfo.php 


db85748d73e2254c6fcc6fc41ddb2e88_1685837413_3731.JPG 



----- Simple OPcache Status Monitor -----------

https://github.com/rlerdorf/opcache-status

copy opcache.php to www(web public folder) in WebServer 

http://localhost/dashboard/opcache.php


db85748d73e2254c6fcc6fc41ddb2e88_1685837497_6374.JPG
 --- end -----



 [Ubuntu Linux + xampp Dir Info] 

WebRoot =>    /opt/lampp/htdocs


php.ini =>      /opt/lampp/etc/php.ini 

------------------------------------

[opcache]

zend_extension=opcache.so


opcache.enable=1

opcache.enable_cli=1

opcache.jit_buffer_size=256M

opcache.jit=tracing


opcache.validate_timestamps=1

opcache.revalidate_freq=60

------------------------------------


systemctl restart xampp



첨부파일

  • favicon.ico (1.1K) 1회 다운로드 | DATE : 2023-06-28 14:40:39

댓글목록

등록된 댓글이 없습니다.

회원로그인

접속자집계

오늘
286
어제
286
최대
1,279
전체
204,231

그누보드5
Copyright © sebom.com All rights reserved.