Complete suite for port management on macOS with advanced monitoring, multiple range support, and integrated benchmarking.
- Features
- Quick Installation
- Usage
- Benchmark Suite
- Documentation
- Troubleshooting
- Contributing
- License
- π― Single port or multiple ranges - Flexible port management
- π Advanced monitoring - Detailed visualization of listening processes
- β‘ Optimized performance - Fast and efficient operations
- π Integrated benchmarking - Complete performance testing suite
- π Conda integration - Native support for conda environments
- π¨ Colored output - Clear and readable terminal interface
- π‘οΈ Robust error handling - Complete checks and informative messages
- π Detailed logging - Full operation tracking
- macOS 10.15 or higher
- Zsh or Bash
- Python 3.10+
- Conda/Miniconda (optional but recommended)
- Homebrew
- killport project by jkfran
# Clone the repository
git clone https://github.com/AntonioDEM/killport-advanced.git
cd killport-advanced
# Run the installation script
bash install_killport.sh
# Load the functions in your shell
source killport_zshrc_function.shIf you prefer to install manually, add to your ~/.zshrc or ~/.bashrc:
# Add the path to functions
source /path/to/killport-advanced/killport_zshrc_function.shThen reload the configuration:
source ~/.zshrc # for Zsh
# or
source ~/.bashrc # for Bash# Kill a single port
killport 8080
# Kill multiple ranges
killport 3000-3005 8080-8085
# Monitor listening ports
monitor_ports
# Show help
killport --help# Kill multiple specific ports
killport 3000 3001 8080 9000
# Combination of single ports and ranges
killport 3000 5000-5005 8080-8090
# Monitoring with filtering
monitor_ports | grep pythonThe tool automatically detects the active conda environment and manages it optimally:
# Activate environment
conda activate myenv
# Use killport normally
killport 8080
# The conda environment is preservedThe integrated benchmark suite allows you to test system performance.
# Go to the benchmark folder
cd benchmark
# Run the original benchmark
bash benchmark_original.sh
# View the results
bash benchmark_visualizer_original.shBenchmarks automatically generate:
- π CSV files with detailed results
- π Performance charts
- π Complete markdown reports
- π Comparative analysis
Results are saved in:
benchmark/
βββ benchmark_results_YYYYMMDD_HHMMSS.csv
βββ benchmark_results_YYYYMMDD_HHMMSS.txt
βββ benchmark_charts_YYYYMMDD_HHMMSS.txt
βββ benchmark_report_YYYYMMDD_HHMMSS.md
For detailed documentation, see:
- BENCHMARK_GUIDE.md - Complete benchmark guide
- CONTRIBUTING.md - How to contribute to the project
- LICENSE - MIT License
Error: Port 8080 is already in useSolution: Use killport to terminate the process:
killport 8080Error: Permission deniedSolution: Some processes require elevated privileges:
sudo killport 8080command not found: killportSolution: Reload the shell functions:
source killport_zshrc_function.shIf the conda environment is not detected correctly:
# Reinitialize conda
conda init zsh # or bash
# Reload shell
source ~/.zshrcContributions, issues, and feature requests are welcome!
See CONTRIBUTING.md for guidelines.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Antonio Demarcus
- GitHub: @AntonioDEM
- Repository: killport-advanced
- Inspired by the killport project by jkfran
- Open source community for support
- All project contributors
β If you find this project useful, leave a star! β
Made with β€οΈ by Antonio Demarcus