System Requirements
Before installing Memory Monitor, ensure your system meets these requirements:- Operating System: Linux (any distribution)
- Python Version: Python 3.x
- Access: Read permissions for
/procfilesystem - Dependencies: None (uses only Python standard library)
Memory Monitor is specifically designed for Linux systems as it reads from the
/proc filesystem. It will not work on Windows or macOS.Installation Steps
Verify Python Installation
First, check that you have Python 3.x installed on your system:You should see output like
Python 3.x.x. If Python is not installed, install it using your distribution’s package manager:Clone the Repository
Clone the Memory Monitor repository to your local machine:Alternatively, if you received the source files directly, extract them to a directory:
Verify File Structure
Ensure all three required Python files are present in your directory:You should see:
main.py- The entry point that runs the monitoring toolmemory_info.py- Contains theInformationMemory()functionprocess_analyzer.py- Contains theListDirectory()function
Verify Installation
Test that Memory Monitor works by running it:If successful, you’ll see memory statistics and the process with highest memory usage. See the Quickstart guide for details on interpreting the output.
Optional: Make It Executable
For convenience, you can make the script executable and add it to your PATH:Permissions
Memory Monitor reads from the/proc filesystem, which typically requires:
- System memory info (
/proc/meminfo) - Readable by all users - Process information (
/proc/[pid]/status) - Some processes may require root access
If you see permission errors for certain processes, this is normal. Memory Monitor will skip those processes and continue analyzing others. Run with
sudo if you need complete access to all process information.Troubleshooting
Python command not found
Python command not found
Python 3 is not installed or not in your PATH. Install Python 3 using your distribution’s package manager (see Step 1).
Module import errors
Module import errors
Ensure all three files (
main.py, memory_info.py, process_analyzer.py) are in the same directory. Memory Monitor uses relative imports.Permission denied errors
Permission denied errors
Some process directories in
/proc require elevated privileges. This is expected behavior - the tool will skip those processes. Run with sudo python3 main.py if you need access to all processes.