liveBook · Manning

Memory usage

Memory usage is the amount of computer memory occupied, allocated, or required by a program, system, data, or computation.

How 8 Manning books explain it

Fast Python: High performance techniques for large datasets

How it is used
Guides choices that keep data processing in memory, permit more concurrent processes, and control data-frame storage.
How deep it goes
Works through container-aware Python estimates and measured pandas type changes, while qualifying estimates for externally implemented objects.
Examples
Uses a station-file object graph, taxi-trip column measurements, and a CuPy matrix to expose different memory costs.
What you can do after
Apply it via pandas memory measurements and type selection, and diagnose Python container estimates without double-counting shared objects.

Read how Fast Python: High performance techniques for large datasets explains memory usage →

Troubleshooting Java, Second Edition

Memory usage is the amount of runtime memory occupied or allocated by a process or its components.

How it is used
Guides investigation of slow, frozen, or failing Java applications by relating memory consumption to allocation, retention, and garbage collection.
How deep it goes
Explains monitoring, sampling, leak patterns, and heap pressure, while deferring detailed memory instrumentation and GC-log analysis.
Examples
Uses VisualVM widgets, sampled Product objects, large video files, memory graphs, and repeated full-GC log entries.
What you can do after
Diagnose memory pressure with VisualVM sampling and GC graphs, distinguish leaks from insufficient allocation, and identify optimization targets.

Read how Troubleshooting Java, Second Edition explains memory usage →

Pandas Workout: 200 exercises to make you a stronger data analyst

Memory usage is the amount of computer memory occupied by a data structure or computation.

How it is used
Reduces pandas DataFrame resource consumption while preserving the data needed for analysis.
How deep it goes
Demonstrates import-time column selection and reports measured savings, while deferring detailed memory-measurement techniques.
Examples
Uses a 7.6-million-row New York City taxi dataset and a wide 264-column survey dataset.
What you can do after
Operate/configure pandas CSV imports to retain necessary columns and avoid overburdening available memory.

Read how Pandas Workout: 200 exercises to make you a stronger data analyst explains memory usage →

Graph Neural Networks in Action

The amount or proportion of available memory consumed by a computation.

How it is used
Uses memory consumption to identify GNN scaling problems alongside epoch time and convergence time.
How deep it goes
Defines memory usage, identifies graph storage demands, and shows monitoring methods; stops short of a complete memory budget.
Examples
Measures process resident set size with psutil and used NVIDIA GPU memory with pynvml.
What you can do after
Diagnose/debug with psutil and pynvml by measuring memory use before choosing a scaling strategy.

Read how Graph Neural Networks in Action explains memory usage →

The Art of Code

Memory footprint is the amount of system memory occupied by a program and its in-memory data during execution.

How it is used
Guides allocation-conscious coding as part of resource efficiency and green coding.
How deep it goes
Works through imperative and stream-based design choices, then points to profiling; does not establish measured savings for the examples.
Examples
Compares age-tracking and name-sorting implementations using boxed values, primitives, preallocated lists, and stream collectors.
What you can do after
Practice/perform allocation-conscious revisions and use benchmarks or profilers to investigate their resource behavior.

Read how The Art of Code explains memory usage →

Advanced Algorithms and Data Structures

Memory consumption is the amount of memory occupied by a computation or program during execution.

How it is used
Uses memory profiling and space estimates to compare data structures and judge practical trade-offs.
How deep it goes
Develops node-count reasoning, key-size formulas, profiling comparisons, and structural trade-offs without detailing allocator internals.
Examples
Compares BST and treap allocations for integer and string keys, and contrasts trie storage when strings share prefixes or do not.
What you can do after
Evaluate data-structure choices by estimating space from node counts, key lengths, overhead, and measured allocations.

Read how Advanced Algorithms and Data Structures explains memory usage →

AI for Everyday IT

Memory utilization is the proportion of available physical memory occupied by a system or workload.

How it is used
Calculates database memory utilization and identifies configurations exceeding a physical-memory threshold.
How deep it goes
Provides a worked SQL approach with unit conversion, conditional calculation, and threshold filtering rather than database internals.
Examples
Uses a configuration SELECT statement, a sample row, and a two-CTE calculation pattern.
What you can do after
Build it from scratch by prompting for a query that normalizes memory settings and reports utilization above 75%.

Read how AI for Everyday IT explains memory usage →

Troubleshooting Java: Read, debug, and optimize JVM applications

A measure of the memory occupied by a process or application.

How it is used
Investigates whether an application allocates memory efficiently and helps locate resource-related problems.
How deep it goes
Profiles process statistics and analyzes heap contents, while presuming basic Java memory-allocation knowledge.
Examples
Uses VisualVM observations of a producer-consumer app showing little memory use and zero GC activity.
What you can do after
Diagnose allocation problems by profiling memory statistics or inspecting a heap dump when execution cannot be profiled.

Read how Troubleshooting Java: Read, debug, and optimize JVM applications explains memory usage →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.