郭新华 php,PHP常驻进程编程需知 郭新华 PHPCON2019

展开查看详情

1.PHP

2.PHPCon PPT

https://github.com/ThinkDevelopers/PHPConChina

PPT PHPCon

3.PHP

https://segmentfault.com/a/1190000012028295

4. PHP

PHP is a popular general-purpose scripting language that is especially suited to web development.

5.PHP

/C/C++

nginx

java/c#/go

service

AI

PHP

or

6. PHPer

1.

2.

3.

4.

5.

7.1.

8.PHP

vars

tmps

args

str_repeat

vars

tmps

args

foo

9.1

2

3

10.PHP

or opcache

11.PHP

unset null

12. $var

0

refcount

0

• composer gc_disable() 10000

• gc

• gc_disable()

13.FPM —php_request_shutdown

array object string heap/stack

zval function class_entry extensio

PHP

emalloc/efree*

RSHUTDOWN=>

php_request_shutdown

zend MM

emalloc*(ext efree gc_disable() )

operate system

14. php_request_shutdown

1.max_request

(1) (base )

(2)

(3)

(4) (opcache,ext minits)

2. unset

15.• unset

16.

17.

18.—

19.—FPM swoole

20. 2.

mysql

PHP (e.g php7_warpper)

:

21. —FPM

FPM

worker

accept

worker

worker

master

prefork

worker

worker

worker

close

22. —Swoole

swoole(base)

accept

worker

worker

worker

master

prefork

worker

reactor

worker

worker

close

23.

24. strace -p 123456

lsof -p 123456

fd

strace

PHP

25.swoole/FPM

ptrace

26.mysql

27.profile —Xhprof

28. profile

profile

PHP

PHP

29.c profile —callgrind

https://www.bo56.com

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值