Linux常用指令---系统管理

时间:2023-03-09 00:24:08
Linux常用指令---系统管理

四、linux服务器" 【have no space】"
开发机dev2上不管是upa/upc上传文件时,会挂载在/目录下,而此时这里只有3G空间,通过df -h显示各大挂载点使用情况;
java上传默认会先上传到tmp临时目录,这里如果/目录空间不足,可以考虑将上传使用其他目录,eg:tmp

命令 top(查看线程) || free m (以M为单位显示内存情况) || df -h/M(显示各大挂载点文件系统) || /proc/sys/vm/overcommit_memory

【java.io.IOException: Cannot run program "sh": java.io.IOException: error=, Cannot allocate memory】
[root@dev2 upa_upload]# free -m
total used free shared buffers cached
Mem:
-/+ buffers/cache:
Swap:

只要不用swap的交换空间,就不用担心自己的内存太少。如果常常 swap用很多,可能你就要考虑加物理内存了