Shows the top control groups of the local Linux control group hierarchy, ordered by their CPU, memory, or disk I/O load.
The display is refreshed in regular intervals (by default every 1s). If a control group path is specified, shows only the services of the specified control group.
Recursively shows the contents of the selected Linux control group hierarchy in a tree.
If arguments are specified, shows all member processes of the specified control groups plus all their subgroups and their members.
systemd-cgls memory
You can use the command systemctl list-unit-files --type=service
to list all services and status. So, you can change the configuration of service, inputing limitations. Example:
[Service]
CPUShares=1500