On Jul 14, 3:11 am, Lukasz Szybalski <[email protected]> wrote: > On Jul 13, 11:53 am, Noah Kantrowitz <[email protected]> wrote: > > > Might help if you gave the full command line, stack trace, etc etc. > > The screen is from a top command, trac is installed via modwsgi with > apache2.
In which case the Trac instances themselves would show as 'apache' or 'httpd'. If using daemon mode you could use display-name option to WSGIDaemonProcess to override name of process and then 'ps' and 'htop' (but not 'top' AFAIK) will show that new name. Thus you can be more confident of which are the Trac processes. > 'Top' command gives me below pid, how can I find out what program is > the pid running? It seem like each process is calling some python > code that then takes a lot of cpu to run, but I'm not sure where to go > from here. Look in the /proc file system for directory corresponding to the process ID. There are various files in there including some which show process environment, command line etc etc. That presumes your UNIX variant has /proc file system. Also look at parent child PID relationships using 'ps' and see if these are a process spawned off the Trac processes for some reason. Graham > > > --Noah > > > On Jul 13, 2010, at 9:50 AM, Lukasz Szybalski wrote: > > > > Hello, > > > Would anybody be able to help me figure out what are these python > > > processes, are they part of trac, and what exactly they are doing > > > taking over 60% of my cpu? > > > > Thanks, > > > Lucas > > > > Tasks: 131 total, 13 running, 118 sleeping, 0 stopped, 0 zombie > > > Cpu(s): 60.1%us, 13.1%sy, 0.7%ni, 26.1%id, 0.0%wa, 0.0%hi, > > > 0.1%si, 0.0%st > > > Mem: 1535568k total, 1413748k used, 121820k free, 45180k > > > buffers > > > Swap: 1466360k total, 68k used, 1466292k free, 520472k > > > cached > > > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > > > 27335 unique 20 0 51936 20m 1740 R 20 1.4 0:00.12 python > > > 27330 unique 20 0 51420 20m 1740 R 16 1.3 0:00.24 python > > > 27337 unique 20 0 46384 15m 1740 R 16 1.0 0:00.10 python > > > 27326 unique 20 0 35032 4424 1740 R 13 0.3 0:00.24 python > > > 27329 unique 20 0 51936 20m 1740 R 13 1.4 0:00.22 python > > > 27331 unique 20 0 51936 20m 1740 R 13 1.4 0:00.14 python > > > 27332 unique 20 0 51936 20m 1740 R 13 1.4 0:00.16 python > > > 27333 unique 20 0 51936 20m 1740 R 13 1.4 0:00.16 python > > > 27338 unique 20 0 44352 13m 1740 R 13 0.9 0:00.08 python > > > 27336 unique 20 0 40620 9740 1740 R 10 0.6 0:00.06 python > > > 27339 unique 20 0 32920 4156 1720 R 7 0.3 0:00.04 python > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Trac Users" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected] > > > . > > > For more options, visit this group > > > athttp://groups.google.com/group/trac-users?hl=en > > > . -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
