Xiao Liu Lab
Author

Xiao Liu Lab

An operations lab passionate about server tinkering 🔬 Sharing automation scripts, high-availability architecture, alert optimization, and incident reviews. Using technology to reduce overtime and experience to avoid major pitfalls. Follow me for easier, more reliable operations!

82
Articles
0
Likes
339
Views
0
Comments
Recent Articles

Latest from Xiao Liu Lab

82 recent articles
Xiao Liu Lab
Xiao Liu Lab
Oct 28, 2025 · Operations

How to Safely Optimize Tomcat Memory for Stable Production

This guide walks you through why Tomcat's default JVM settings are insufficient, common pitfalls when manually editing catalina.sh, and the recommended, maintainable approach using setenv.sh to configure heap, Metaspace, and GC options for reliable, high‑performance server operation.

JVMmemory optimizationsetenv.sh
0 likes · 7 min read
How to Safely Optimize Tomcat Memory for Stable Production
Xiao Liu Lab
Xiao Liu Lab
Oct 27, 2025 · Operations

Boost Nginx to 100k+ Concurrent Connections: Essential Linux Kernel Tweaks

This guide explains why the default Linux kernel limits hinder Nginx performance, lists eight crucial sysctl parameters to increase port ranges, file descriptors, and connection queues, and shows how to verify and safely apply the changes for high‑concurrency workloads.

High ConcurrencyLinux kernelSysctl
0 likes · 7 min read
Boost Nginx to 100k+ Concurrent Connections: Essential Linux Kernel Tweaks
Xiao Liu Lab
Xiao Liu Lab
Oct 27, 2025 · Databases

Boost MySQL Performance: 6 Essential Config Tweaks for 5000+ QPS

Even when CPU and memory appear idle, MySQL can suffer connection timeouts, query stalls, and 100% CPU spikes during peak traffic, but by adjusting six key configuration parameters and following solid SQL‑optimization practices you can reliably support thousands of queries per second.

Database ConfigurationMySQLPerformance Tuning
0 likes · 6 min read
Boost MySQL Performance: 6 Essential Config Tweaks for 5000+ QPS
Xiao Liu Lab
Xiao Liu Lab
Oct 27, 2025 · Operations

Why Tcping Beats Ping: Fast Port Probing for Windows and Linux

This guide explains why traditional ping often fails to reveal service issues, introduces Tcping as a reliable TCP‑based port probing tool, and provides step‑by‑step instructions for using it on Windows and Linux, including installation, common parameters, comparison with other utilities, and practical monitoring scripts.

LinuxNetwork TroubleshootingWindows
0 likes · 8 min read
Why Tcping Beats Ping: Fast Port Probing for Windows and Linux
Xiao Liu Lab
Xiao Liu Lab
Oct 24, 2025 · Operations

Why Nginx Caches DNS for Weeks and How to Fix It

In production, Nginx cached DNS lookups for up to a month, causing requests to stale IPs after CDN changes; this article explains the root cause, demonstrates how to configure upstream health checks and the built‑in resolver to ensure timely DNS updates and avoid prolonged outages.

DNSLoad Balancingoperations
0 likes · 6 min read
Why Nginx Caches DNS for Weeks and How to Fix It
Xiao Liu Lab
Xiao Liu Lab
Oct 24, 2025 · Operations

How to Make Nginx Reveal Real Visitor IP Behind CDN in Just 2 Lines

After enabling a CDN or cloud firewall, your server only sees the CDN node’s IP, causing login risk, IP bans, fake logs, and difficulty tracing attacks; this guide shows how to add two Nginx directives to trust the X‑Forwarded‑For header and accurately capture the true client IP, with optional security recommendations.

real-ipserver
0 likes · 6 min read
How to Make Nginx Reveal Real Visitor IP Behind CDN in Just 2 Lines
Xiao Liu Lab
Xiao Liu Lab
Oct 24, 2025 · Information Security

How to Secure Nginx Against Host Header Attacks with Simple Config

This article explains why the HTTP Host header is unsafe, demonstrates how attackers can hijack password‑reset links or launch SSRF by forging it, and provides three practical Nginx configuration methods to strictly validate Host values and block malicious requests.

NginxPassword reset hijackSSRF
0 likes · 7 min read
How to Secure Nginx Against Host Header Attacks with Simple Config