Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A small tool for FreeBSD systems - lists RAM, CPU and disk space usage of the jails running in the host system.

NotificationsYou must be signed in to change notification settings

ozgurkazancci/jstats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 

Repository files navigation

Jstats is a tiny resource monitor for jails, small tool that I wrote for FreeBSD systems - lists RAM, CPU and disk space usage of the jails running in the host system.

Tested On: FreeBSD 13.1 with standard jails defined within/etc/jail.conf file.

I like raw, homemade jails, digging around in config files. I don't use any jail management tool/package, being a minimal&analogue guy with a try-to-do-it-yourself spirit, I never tested jstats with jails created by jail management packages, such as; BastilleBSD, iocage, cbsd, et cetera.

But while it's all in the kernel, it shouldn't matter which jail manager you use;jstats should work.

Usage and a sample run:

[root@ozgur:~]#chmod +x jstats.sh[root@ozgur:~]#./jstats.sh#Alternatively you might wish to move it somewhere inside $PATH for easier access;[root@ozgur:~]#chmod +x jstats.sh[root@ozgur:~]#mv jstats.sh /usr/local/bin/jstats[root@ozgur:~]#jstats============================== jstats 0.1 by Ozgur Kazancci  https://ozgurkazancci.com==============================------------Jails Found:------------nginxsrv 10.10.10.2phpserver 10.10.10.3sqlserver 10.10.10.4------------------Jails - RAM usage:[kB] - [MB] - [GB]------------------nginxsrv: 2.1%42908 kB - 42.908 MB - 0.042908 GBphpserver: 2.2%45540 kB - 45.54 MB - 0.04554 GBsqlserver: 5.6%112416 kB - 112.416 MB - 0.112416 GBTotal RAM usage: 9.9%------------------Jails - CPU usage:------------------nginxsrv: 2.1%phpserver: 3.3%sqlserver: 7.5%Total CPU usage: 12.9%-------------------------Jails - Disk space usage:This might take a while..-------------------------1.3G    /jails/nginxsrv1.7G    /jails/phpserver1.4G    /jails/sqlserver[root@ozgur:~]#

About

A small tool for FreeBSD systems - lists RAM, CPU and disk space usage of the jails running in the host system.

Topics

Resources

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp