实时的显示各个进程的内存使用情况. Reported memory usage information includes %MEM (percent of physical memory used), VSZ (total amount of virtual memory used), and RSS (total amount of physical memory used). 你可以使用 “–sort”选项对进程进行排序,例如按RSS进行排序:
$ ps aux --sort -rss
一个快速查看内存使用情况的方法,它是对 /proc/meminfo 收集到的信息的一个概述
$ cat /proc/meminfo
$ free -h
实时推送消息,减少网络流量,实质是一个tcp
的长连接.
一般本地开发,不是http
的协议,所以使用的websocket
是以ws://
协议形式的.
当放到生产,若开启了https
,则应该是以wss://
形式的协议.
但是仅仅更改这个协议头是不行的.错误的websocket
地址可能会导致如下报错:
WebSocket connection to ‘wss://example.com:8088/websocket’ failed: Error in connection establishment: net::ERR_SSL_PROTOCOL_ERROR