Giter Club home page Giter Club logo

Comments (5)

iipeace avatar iipeace commented on June 3, 2024

@sattishv

-g option is used to specify PIDs and COMMs in top mode.

 $ guider top -g PID1, PID2, COMM

If you want to distinguish each node process,
What do you think about using -e NG option to show NAMESPACE and CGROUP info.

 $ guider top -g node -e NG

==========================================================================================================================================================
           Process ( PID/PPID/  Nr/ Pri)| CPU(Usr/Ker/Dly)| VSS( RSS/Txt/Shr/Swp)| Blk(  RD/  WR/NrFlt)| SID | USER | FD | LifeTime|       Parent        |
----------------------------------------------------------------------------------------------------------------------------------------------------------
              node (2385/2384/   1/C  0)|  99( 33/ 65/  -)|   6(   1/  0/  0/  0)|   0(   -/   -/    0)| 1941|  root|  64| 00:01:27|             sh(2384)|
                              NAMESPACE | net:4026531992, uts:4026532191, ipc:4026532192, pid:4026532193, user:4026531837, mnt:4026532190, cgroup:4026531835
                                 CGROUP | cpu:/test
----------------------------------------------------------------------------------------------------------------------------------------------------------

from guider.

sattishv avatar sattishv commented on June 3, 2024

Thanks @LiPeace for the quick response. Will try specifying the NG option. Does guider differ in providing details when installed outside the container(inside host) compared to inside the container. Do we have any difference in the way in collects data (inside or outside the conatiner). Also does guider support java applications

from guider.

iipeace avatar iipeace commented on June 3, 2024

@sattishv
the NG option means a mix of N option and G option.
N option means showing namespace, G option means showing cgroups for each process.

all processes inside container can't see all processes, directories and files, and specific resources in host.
it's about linux namespace not guider's implementation.

Guider supports java for function tracing and monitoring, but it requires some preparations to see java symbols for target process.

from guider.

sattishv avatar sattishv commented on June 3, 2024

from guider.

iipeace avatar iipeace commented on June 3, 2024

please check below instructions about function profiling for various language.

    - Monitor native and JIT-compiled function calls for specific threads
        * Qt:
            - run the target with "QV4_PROFILE_WRITE_PERF_MAP=1" environment variable (version >= 5.6.0)
        * Node:
            - run the target with "--perf-basic-prof" option (version >= 0.11.13, map file growth endlessly)
            - run the target with "--perf-basic-prof-only-functions" option (version >= 4.4.0)
        * Java:
            1. install perf-map-agent
            2. run the target with "-XX:+PreserveFramePointer -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints" option
            3. set environment with "export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")" command
            4. create a map file with "perf-map-agent/bin/create-java-perf-map.sh PID" command
        * Mono:
            - run the target with "--jitmap" option
        * .NET Core:
            - run the target with "COMPlus_PerfMapEnabled=1" environment variable
                
        # ./guider utop -g [TID|COMM] -q JITSYM -H

from guider.

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.