Giter VIP home page Giter VIP logo

Comments (4)

alozovskoy avatar alozovskoy commented on May 22, 2024

Can you show the result of calling the corresponding functions in manual mode? It's like

./app/server/linux_json_api.sh MODULE_NAME

where MODULE_NAME is

  • "ram_intensive_processes" for RAM process
  • "cpu_intensive_processes" for CPU process
  • "swap" for swap
  • "docker_processes" for docker process

Maybe it really depends on some unusual packages of your distributive, but it's easiest to check by results of module call.

from linux-dash.

barbz127 avatar barbz127 commented on May 22, 2024

Nothing super descriptive sorry

`bash-4.3$ ./app/server/linux_json_api.sh ram_intensive_processes
/bin/ps: unrecognized option: sort
BusyBox v1.27.1 (2017-08-05 22:04:53 GMT) multi-call binary.

Usage: ps [-o COL1,COL2=HEADER]

Show list of processes

    -o COL1,COL2=HEADER     Select columns for display

[ ]bash-4.3$ ./app/server/linux_json_api.sh swap
[]bash-4.3$ ./app/server/linux_json_api.sh docker_processes
./app/server/linux_json_api.sh: line 171: docker: command not found
[ ]bash-4.3$ ./app/server/linux_json_api.sh cpu_intensive_processes
/bin/ps: unrecognized option: sort
BusyBox v1.27.1 (2017-08-05 22:04:53 GMT) multi-call binary.

Usage: ps [-o COL1,COL2=HEADER]

Show list of processes

    -o COL1,COL2=HEADER     Select columns for display

[ ]bash-4.3$`

from linux-dash.

alozovskoy avatar alozovskoy commented on May 22, 2024

OK, thanks for this information!
So, a "ps" on busybox actualy support not of all options from "big" ps, f.e. it's not show memory usage by process in percent, do not supoprt sorting and so on. It, not big deal as for me - we can calculate memory by data getting from /proc, sorting is not problem too and so on, but i need some time for PR realisation. After it, information about process by ram and by cpu usage should be displayed well.

Swap - do you really have it? "cat /proc/swaps" or "free -m" does show something about it? Can you posting a results of this command run?

And same question about docker - is it really exist on you host? If yes, how you work with it? Module cant find an docker binary, maybe it on not-PATH location or something like that?

from linux-dash.

barbz127 avatar barbz127 commented on May 22, 2024

sorry - turns out there isnt a swap file.

docker is installed - paths are setup and user creating the container has docker rights.

user@docker [ ~ ]$ cat /proc/swaps Filename Type Size Used Priority user@docker [ ~ ]$ docker --version Docker version 18.06.2, build 6d37f41

from linux-dash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.