Lua 级别 CPU 火焰图简介

2020-10-08
阅读 10 分钟
4.4k
在 OpenResty 或 Nginx 服务器中运行 Lua 代码如今已经变得越来越常见,因为人们希望他们的非阻塞的 Web 服务器能够兼具超高的性能和很大的灵活性。有些人使用 Lua 完成一些非常简单的任务,比如检查和修改某些请求头和响应体数据,而有些人则利用Lua 创建非常复杂的 Web 应用、 CDN 软件和 API 网关等等。Lua 以简单、...

Introduction to Lua-Land CPU Flame Graphs

2020-09-02
阅读 19 分钟
2.6k
Lua code running inside OpenResty or Nginx servers is very common nowadays since people want both performance and flexibility out of their nonblocking web servers. Some people use Lua for very simple tasks like modifying and checking certain request headers and response bodies while other people ...

Memory Fragmentation in OpenResty and Nginx Shared Memory Zones

2020-08-25
阅读 10 分钟
2.6k
Memory fragmentation is a common problem in computer systems though many clever algorithms have emerged to tackle it. Memory fragmentation wastes free memory blocks scattered in a memory region and these free blocks cannot be merged as a whole to serve future requests for large memory blocks or c...

OpenResty 与 Nginx 共享内存区的内存碎片问题

2020-08-24
阅读 5 分钟
2.6k
内存碎片是计算机系统中的一个常见问题,尽管已经存在许多解决这个问题的巧妙算法。内存碎片会浪费内存区中空闲的内存块。这些空闲的内存块无法合并成更大的内存区以满足应用未来对较大内存块的申请,也无法重新释放到操作系统用于其他用途1。这会导致内存泄露现象,因为对大块的内存申请越来越多,满足这些请求所需要的...

OpenResty 和 Nginx 的共享内存区是如何消耗物理内存的

2020-08-12
阅读 7 分钟
9.3k
OpenResty 和 Nginx 服务器通常会配置共享内存区,用于储存在所有工作进程之间共享的数据。例如,Nginx 标准模块 ngx_http_limit_req 和 ngx_http_limit_conn 使用共享内存区储存状态数据,以限制所有工作进程中的用户请求速率和用户请求的并发度。OpenResty 的 ngx_lua 模块通过 lua_shared_dict,向用户 Lua 代码提供...

How OpenResty and Nginx Shared Memory Zones Consume RAM

2020-08-11
阅读 15 分钟
4.6k
OpenResty and Nginx servers are often configured with shared memory zones which can hold data that is shared among all their worker processes. For example, Nginx's standard modules ngx_http_limit_req and ngx_http_limit_conn use shared memory zones to hold state data to limit the client request ra...

The Wonderland of Dynamic Tracing (Part 4 of 7)

2020-07-18
阅读 8 分钟
1.5k
This is Part 4 of the series "The Wonderland of Dynamic Tracing" which consists of 7 parts. I will keep updating this series to reflect the state of art of the dynamic tracing world.

The Wonderland of Dynamic Tracing (Part 3 of 7)

2020-07-17
阅读 11 分钟
2k
This is Part 3 of the series "The Wonderland of Dynamic Tracing" which consists of 7 parts. I will keep updating this series to reflect the state of art of the dynamic tracing world.

The Wonderland of Dynamic Tracing (Part 2 of 7)

2020-07-16
阅读 9 分钟
2k
This is the second part of the 7 part series "The Wonderland of Dynamic Tracing." This series will consist of updates on the state of art of the dynamic tracing world.

The Wonderland of Dynamic Tracing (Part 1 of 7)

2020-07-15
阅读 12 分钟
1.8k
This is the first part of the article "The Wonderland of Dynamic Tracing" which consists of 7 parts. I will keep updating this series to reflect the state of art of the dynamic tracing world.

OpenResty Inc. 锁定四百万融资,领先流量管理软件同时发布实时诊断新品

2020-06-03
阅读 1 分钟
2.3k
OpenResty Inc. 在 2020 年 4 月 20 日完成了 Sphere 5200 领投的 A 轮融资———丝毫没有受到 Covid-19 疫情的影响。OpenResty Inc. 是一个开发针对 web 应用的性能、可靠性和安全性进行智能分析工具的公司。自 2017 年成立以来,已经获得了超过 400 万美元的资金。

动态追踪技术漫谈

2020-02-15
阅读 19 分钟
11.9k
我很高兴能在这里和大家分享动态追踪技术(Dynamic Tracing)这个主题,对我个人来说也是一个很激动人心的话题。那么,什么是动态追踪技术呢?

OpenResty 和 Nginx 如何分配和管理内存

2020-02-02
阅读 5 分钟
12.2k
OpenResty® 开源 Web 平台以 高 性能 和 低 内存占用著称。我们有一些用户甚至在嵌入式系统中运行复杂的 OpenResty 应用,比如机器人。也有一些用户在把他们的应用从其他技术栈(比如 Java,NodeJS 和 PHP)迁移到 OpenResty 之后,观察到内存使用量上的显著下降。然而,有时候我们还是需要优化某些 OpenResty 应用的内...

How OpenResty and Nginx Allocate and Manage Memory

2020-02-02
阅读 11 分钟
4.2k
Our OpenResty® open source web platform is known for its high execution speed and also small memory footprint. We have users running complex OpenResty applications inside embedded system devices like robots. And people have been observing significant memory usage reduction when they migrate appli...