在 Debian 下使用 Postman 卡顿,通常和运行环境、硬件加速、系统依赖或资源占用有关。下面按「常见 → 进阶」给你一套排查和解决思路。
Postman 基于 Electron,GPU 加速在 Linux 上经常翻车。
方法:
postman --disable-gpu
或永久生效:
.desktop 文件:Exec=/opt/Postman/Postman --disable-gpu
✅ 很多人这一步就解决了卡顿
--no-sandbox(虚拟机/容器常见)如果你在:
尝试:
postman --no-sandbox
Snap 在 Debian 上经常卡、IO 慢。
✅ 推荐:
下载:
https://www.postman.com/downloads/
解压后直接运行:
./Postman/Postman
sudo apt install -y \
libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 \
libcups2 libdrm2 libxkbcommon0 libxcomposite1 \
libxdamage1 libxfixes3 libxrandr2 libgbm1 \
libpango-1.0-0 libcairo2 libasound2
cat /proc/sys/vm/swappiness
如果是 60:
sudo sysctl vm.swappiness=10
永久:
echo 'vm.swappiness=10' | sudo tee -a /etc/sysctl.conf
Automatically follow redirects(按需)SSL certificate verification(仅测试环境)如果 Postman 只是做接口测试:
你可以顺手看一眼:
top
# 或
htop
如果你愿意,可以告诉我:
我可以给你更精准的一组参数。