Tagged articles
26 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Feb 12, 2025 · Operations

How to Show Per‑Process Memory Usage in MB/GB Using awk and ps

This guide explains three practical ways to list each Linux process's memory consumption, converting the RSS value from kilobytes to megabytes or gigabytes with ps and awk, and provides detailed command explanations and formatting options for clear output.

LinuxMemory UsageShell scripting
0 likes · 6 min read
How to Show Per‑Process Memory Usage in MB/GB Using awk and ps
Architect
Architect
Jan 2, 2024 · Fundamentals

Should try‑catch Live Inside or Outside a Loop? A Detailed Java Analysis

This article compares placing a try‑catch block inside versus outside a Java for‑loop, showing concrete code examples, execution results, memory‑usage measurements, and practical recommendations based on how exceptions affect loop termination and performance.

Exception HandlingJavaMemory Usage
0 likes · 7 min read
Should try‑catch Live Inside or Outside a Loop? A Detailed Java Analysis
Python Programming Learning Circle
Python Programming Learning Circle
Nov 28, 2023 · Fundamentals

15 Concise Python Tips for More Efficient Coding

This article presents fifteen practical Python techniques—including multi‑key sorting, data classes, list comprehensions, memory inspection, frequency analysis, dictionary merging, multiple return values, filter/map/zip usage, list reversal, element existence checks, flattening nested lists, and uniqueness verification—to help developers write cleaner, faster, and more readable code.

Data ClassesMAPMemory Usage
0 likes · 9 min read
15 Concise Python Tips for More Efficient Coding
MaGe Linux Operations
MaGe Linux Operations
Dec 22, 2022 · Operations

Essential System Performance Metrics and Linux Server Monitoring Guide

This article explains key system performance testing metrics such as response time, concurrency, click‑through rate, throughput, TPS/QPS, PV/UV, and details essential Linux server indicators like CPU usage, memory utilization, load average, and disk I/O, providing formulas, interpretation guidelines, and useful command‑line tools.

CPU usageLinux monitoringLoad Average
0 likes · 17 min read
Essential System Performance Metrics and Linux Server Monitoring Guide
Liangxu Linux
Liangxu Linux
Sep 19, 2022 · Operations

Build a Simple Bash Script to Monitor CPU, Memory, and Disk Usage on Linux

This tutorial walks you through creating a Bash script that periodically captures and displays memory, disk, and CPU utilization on a Linux server, explains the underlying commands, shows how to run the script in a timed loop, and demonstrates adding a stress test for load generation.

CPU usageMemory Usagedisk usage
0 likes · 9 min read
Build a Simple Bash Script to Monitor CPU, Memory, and Disk Usage on Linux
Programmer DD
Programmer DD
Feb 9, 2022 · Databases

Why Full Table Scans Won’t Exhaust MySQL Server Memory

Even when scanning a 200 GB InnoDB table on a server with only 100 GB RAM, MySQL streams results using a small net buffer and an optimized InnoDB buffer‑pool LRU, so the server’s memory never blows up, though I/O load remains high.

Full Table ScanInnoDBLRU algorithm
0 likes · 11 min read
Why Full Table Scans Won’t Exhaust MySQL Server Memory
FunTester
FunTester
Jul 27, 2021 · Operations

How I Boosted FunTester QPS by 14% and Halved Memory Usage

After a weekend of code refactoring, asynchronous processing, and removing unnecessary statistics, the author increased FunTester's QPS from 104,375 to 118,904 (≈13.9% gain), reduced memory consumption by over 57%, and documented detailed performance impacts of various optimizations with code samples and benchmark tables.

BenchmarkingFunTesterJava
0 likes · 13 min read
How I Boosted FunTester QPS by 14% and Halved Memory Usage
ELab Team
ELab Team
Mar 24, 2021 · Frontend Development

Why Your Images Eat Memory: Understanding Pixels, DPR, and Performance

This article explores image‑related concepts such as CSS pixels, device pixels, device‑independent pixels, DPR and PPI, explains how to calculate image memory usage, compares img tag, background‑image and canvas rendering performance, and offers practical optimization directions for web developers.

CanvasMemory UsagedevicePixelRatio
0 likes · 17 min read
Why Your Images Eat Memory: Understanding Pixels, DPR, and Performance
Aikesheng Open Source Community
Aikesheng Open Source Community
Mar 27, 2020 · Databases

Measuring Memory Usage of MySQL Internal Temporary Tables

Through a series of experiments using MySQL's performance_schema and explicit MEMORY tables, this article demonstrates how internal temporary tables consume memory, reveals that they allocate significantly more space than raw data size, and discusses the implications for accurate memory estimation.

Memory Usagemysqlperformance_schema
0 likes · 4 min read
Measuring Memory Usage of MySQL Internal Temporary Tables
21CTO
21CTO
Nov 20, 2017 · Backend Development

How to Measure and Optimize PHP Memory Usage When Reading Large Files

This article explains how to monitor PHP memory and CPU usage, demonstrates functions for measuring peak memory, shows line‑by‑line and generator‑based file reading techniques, and compares traditional copying with stream‑based piping to reduce memory consumption on large files.

File ReadingGeneratorsMemory Usage
0 likes · 8 min read
How to Measure and Optimize PHP Memory Usage When Reading Large Files
Alibaba Cloud Developer
Alibaba Cloud Developer
Sep 20, 2017 · Mobile Development

Why a Single Warning Can Cause Xcode to Eat 6GB RAM – A Real‑World iOS Debugging Tale

An iOS team discovered that Xcode’s memory usage jumped from 2 GB to nearly 7 GB after a codebase upgrade, traced the surge to hundreds of nonnull warnings embedded in header files that inflated .dia cache files, and resolved the issue by removing the warnings, highlighting the hidden cost of ignored compiler warnings.

Memory UsageXcodecache files
0 likes · 8 min read
Why a Single Warning Can Cause Xcode to Eat 6GB RAM – A Real‑World iOS Debugging Tale
Efficient Ops
Efficient Ops
Aug 7, 2017 · Backend Development

How Adjusting PHP‑FPM max_requests Stabilizes CPU and Memory Usage

This article explains how tuning the PHP‑FPM max_requests setting and modifying its source code can eliminate periodic CPU_IDLE and MEM_USED fluctuations in high‑traffic web services, resulting in smoother resource utilization and more reliable performance.

Backend PerformanceCPU optimizationMemory Usage
0 likes · 6 min read
How Adjusting PHP‑FPM max_requests Stabilizes CPU and Memory Usage
Hujiang Technology
Hujiang Technology
Jun 23, 2017 · Mobile Development

Implementing iOS Performance Monitoring: CPU, Memory, FPS, Startup Time, and Power Consumption

This article details the design and implementation of an iOS performance‑monitoring SDK that captures fundamental metrics such as CPU usage, memory consumption, frame rate, cold and hot startup times, and power draw, explains the underlying Mach APIs, provides sample Objective‑C code, and discusses practical considerations for accurate measurement and troubleshooting.

CPU usageMemory UsagePerformance Monitoring
0 likes · 26 min read
Implementing iOS Performance Monitoring: CPU, Memory, FPS, Startup Time, and Power Consumption
MaGe Linux Operations
MaGe Linux Operations
Jul 31, 2014 · Operations

Master Linux Performance Monitoring with sar: A Complete Guide

This article explains how to use the sar (System Activity Reporter) tool on Linux to collect and analyze performance data, covering past and real‑time statistics, CPU, memory, I/O and swap metrics, installation steps, and a full list of command‑line options.

CPU usageLinux performanceMemory Usage
0 likes · 9 min read
Master Linux Performance Monitoring with sar: A Complete Guide