Use prstat to display processes ordered by memory used, and show a summary output of memory consumption by user.
#prstat -a -s rss
if you want to see what procs are using most memory, use this command so u have a sorted list of procs.
#prstat -s size
Use prtconf to display the total physical memory installed on the machine
#prtconf -v | head -3
Use memstat to have a peek at what the kernel memory usage is
#echo "::memstat" |mdb -k
If you’re using ZFS check how much is being used by the ARCcache.
# kstat -m zfs |grep size
Am I swapping? watch the swap in/out columns; if they’re not 0, you need more RAM
#vmstat 3
#swap -l
#df -kh swap
use sar to reports kernel memory allocation (KMA) activities:
#sar -k 1 5
TAHAP I - INSTALL NGINX ns@ubuntu:~$ sudo apt install nginx TEST INSTALLASI NGINX ns@ubuntu:~$ curl http://ip_localhost TAHAP II - INSTALL MYSQL ans@ubuntu:~$ sudo apt install mysql-server ans@ubuntu:~$ sudo mysql_secure_installation Set password untuk mySql secure connection ans@ubuntu:~$ sudo mysql mysql> SELECT user,authentication_string,plugin,host FROM mysql.user; mysql>ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; dimana 'password' di set sesuai keperluan lalu cek lagi, mysql> SELECT user,authentication_string,plugin,host FROM mysql.user; TAHAP III - INSTALL PHP ans@ubuntu:~$ sudo apt install php-fpm php-mysql ubah cgi.fix_pathinfo dari 1 menjadi 0 di file php.ini ans@ubuntu:~$ sudo nano /etc/php/7.2/fpm/php.ini cgi.fix_pathinfo=0 restart service php: ans@ubuntu:~$ sudo systemctl restart php7.2-fpm KONFIG AGAR NGINX MENGGUNAKAN PHP PROCESSOR edit file def
Comments