What is this shell doing and how to find it out?

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite
1












Today my server slowed down greatly. Most resource-consuming are - surprisingly - two shells. Two ZSH processes on TTY 0 (what does that mean?).



> ps axjf
12474 8947 16532 16532 ? -1 Sl 1000 0:34 _ /usr/bin/xfce4
-terminal
8947 8953 16532 16532 ? -1 S 1000 0:00 | _ gnome-pty-
helper
8947 24044 24044 24044 ? -1 Rs 1000 87:01 | _ zsh
8947 24176 24176 24176 ? -1 Rs 1000 86:45 | _ zsh
8947 31137 31137 31137 pts/2 2313 Ss 1000 0:00 | _ zsh
31137 2313 2313 31137 pts/2 2313 R+ 1000 0:00 | _ ps


htop reports



Before I kill these, how to find out what are they doing?



Running:



  1. Ubuntu 16.04.3 LTS

  2. ZSH (version says zsh 5.1.1 (x86_64-ubuntu-linux-gnu)) with Oh-My-ZSH

  3. Kernel, dm, etc.
    inxi -S -xxx
    System: Host: T420s Kernel: 4.4.0-104-generic x86_64 (64 bit gcc: 5.4.0) Desktop: Xfce 4.12.3 (Gtk 2.24.28) info: xfce4-panel dm: lightdm Distro: Ubuntu 16.04 xenial






share|improve this question
















  • 2




    Uninstall OMZ and your problems will magically disappear...
    – jasonwryan
    Jan 23 at 17:58














up vote
1
down vote

favorite
1












Today my server slowed down greatly. Most resource-consuming are - surprisingly - two shells. Two ZSH processes on TTY 0 (what does that mean?).



> ps axjf
12474 8947 16532 16532 ? -1 Sl 1000 0:34 _ /usr/bin/xfce4
-terminal
8947 8953 16532 16532 ? -1 S 1000 0:00 | _ gnome-pty-
helper
8947 24044 24044 24044 ? -1 Rs 1000 87:01 | _ zsh
8947 24176 24176 24176 ? -1 Rs 1000 86:45 | _ zsh
8947 31137 31137 31137 pts/2 2313 Ss 1000 0:00 | _ zsh
31137 2313 2313 31137 pts/2 2313 R+ 1000 0:00 | _ ps


htop reports



Before I kill these, how to find out what are they doing?



Running:



  1. Ubuntu 16.04.3 LTS

  2. ZSH (version says zsh 5.1.1 (x86_64-ubuntu-linux-gnu)) with Oh-My-ZSH

  3. Kernel, dm, etc.
    inxi -S -xxx
    System: Host: T420s Kernel: 4.4.0-104-generic x86_64 (64 bit gcc: 5.4.0) Desktop: Xfce 4.12.3 (Gtk 2.24.28) info: xfce4-panel dm: lightdm Distro: Ubuntu 16.04 xenial






share|improve this question
















  • 2




    Uninstall OMZ and your problems will magically disappear...
    – jasonwryan
    Jan 23 at 17:58












up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





Today my server slowed down greatly. Most resource-consuming are - surprisingly - two shells. Two ZSH processes on TTY 0 (what does that mean?).



> ps axjf
12474 8947 16532 16532 ? -1 Sl 1000 0:34 _ /usr/bin/xfce4
-terminal
8947 8953 16532 16532 ? -1 S 1000 0:00 | _ gnome-pty-
helper
8947 24044 24044 24044 ? -1 Rs 1000 87:01 | _ zsh
8947 24176 24176 24176 ? -1 Rs 1000 86:45 | _ zsh
8947 31137 31137 31137 pts/2 2313 Ss 1000 0:00 | _ zsh
31137 2313 2313 31137 pts/2 2313 R+ 1000 0:00 | _ ps


htop reports



Before I kill these, how to find out what are they doing?



Running:



  1. Ubuntu 16.04.3 LTS

  2. ZSH (version says zsh 5.1.1 (x86_64-ubuntu-linux-gnu)) with Oh-My-ZSH

  3. Kernel, dm, etc.
    inxi -S -xxx
    System: Host: T420s Kernel: 4.4.0-104-generic x86_64 (64 bit gcc: 5.4.0) Desktop: Xfce 4.12.3 (Gtk 2.24.28) info: xfce4-panel dm: lightdm Distro: Ubuntu 16.04 xenial






share|improve this question












Today my server slowed down greatly. Most resource-consuming are - surprisingly - two shells. Two ZSH processes on TTY 0 (what does that mean?).



> ps axjf
12474 8947 16532 16532 ? -1 Sl 1000 0:34 _ /usr/bin/xfce4
-terminal
8947 8953 16532 16532 ? -1 S 1000 0:00 | _ gnome-pty-
helper
8947 24044 24044 24044 ? -1 Rs 1000 87:01 | _ zsh
8947 24176 24176 24176 ? -1 Rs 1000 86:45 | _ zsh
8947 31137 31137 31137 pts/2 2313 Ss 1000 0:00 | _ zsh
31137 2313 2313 31137 pts/2 2313 R+ 1000 0:00 | _ ps


htop reports



Before I kill these, how to find out what are they doing?



Running:



  1. Ubuntu 16.04.3 LTS

  2. ZSH (version says zsh 5.1.1 (x86_64-ubuntu-linux-gnu)) with Oh-My-ZSH

  3. Kernel, dm, etc.
    inxi -S -xxx
    System: Host: T420s Kernel: 4.4.0-104-generic x86_64 (64 bit gcc: 5.4.0) Desktop: Xfce 4.12.3 (Gtk 2.24.28) info: xfce4-panel dm: lightdm Distro: Ubuntu 16.04 xenial








share|improve this question











share|improve this question




share|improve this question










asked Jan 23 at 17:57









LIttle Ancient Forest Kami

273213




273213







  • 2




    Uninstall OMZ and your problems will magically disappear...
    – jasonwryan
    Jan 23 at 17:58












  • 2




    Uninstall OMZ and your problems will magically disappear...
    – jasonwryan
    Jan 23 at 17:58







2




2




Uninstall OMZ and your problems will magically disappear...
– jasonwryan
Jan 23 at 17:58




Uninstall OMZ and your problems will magically disappear...
– jasonwryan
Jan 23 at 17:58










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted











Before I kill these, how to find out what are they doing?




strace them, for starters. In a pinch, use a debugger.




what does that mean?




It means that they have no controlling terminal. Given that they are children of XFCE Terminal (right there as /usr/bin/xfce4-terminal in your process tree), you should also look to the terminal emulator sessions on your GUI.






share|improve this answer






















  • I thought as much but I'm only using Terminator and I closed down ALL it's windows. Additionally, when I did echo $$ in them, I got different PIDs. Unless I misunderstand "terminal emulator sessions". Am following up on strace now, thank you.
    – LIttle Ancient Forest Kami
    Jan 24 at 8:47










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f419149%2fwhat-is-this-shell-doing-and-how-to-find-it-out%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted











Before I kill these, how to find out what are they doing?




strace them, for starters. In a pinch, use a debugger.




what does that mean?




It means that they have no controlling terminal. Given that they are children of XFCE Terminal (right there as /usr/bin/xfce4-terminal in your process tree), you should also look to the terminal emulator sessions on your GUI.






share|improve this answer






















  • I thought as much but I'm only using Terminator and I closed down ALL it's windows. Additionally, when I did echo $$ in them, I got different PIDs. Unless I misunderstand "terminal emulator sessions". Am following up on strace now, thank you.
    – LIttle Ancient Forest Kami
    Jan 24 at 8:47














up vote
1
down vote



accepted











Before I kill these, how to find out what are they doing?




strace them, for starters. In a pinch, use a debugger.




what does that mean?




It means that they have no controlling terminal. Given that they are children of XFCE Terminal (right there as /usr/bin/xfce4-terminal in your process tree), you should also look to the terminal emulator sessions on your GUI.






share|improve this answer






















  • I thought as much but I'm only using Terminator and I closed down ALL it's windows. Additionally, when I did echo $$ in them, I got different PIDs. Unless I misunderstand "terminal emulator sessions". Am following up on strace now, thank you.
    – LIttle Ancient Forest Kami
    Jan 24 at 8:47












up vote
1
down vote



accepted







up vote
1
down vote



accepted







Before I kill these, how to find out what are they doing?




strace them, for starters. In a pinch, use a debugger.




what does that mean?




It means that they have no controlling terminal. Given that they are children of XFCE Terminal (right there as /usr/bin/xfce4-terminal in your process tree), you should also look to the terminal emulator sessions on your GUI.






share|improve this answer















Before I kill these, how to find out what are they doing?




strace them, for starters. In a pinch, use a debugger.




what does that mean?




It means that they have no controlling terminal. Given that they are children of XFCE Terminal (right there as /usr/bin/xfce4-terminal in your process tree), you should also look to the terminal emulator sessions on your GUI.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 25 at 10:10

























answered Jan 23 at 18:28









JdeBP

28.6k459134




28.6k459134











  • I thought as much but I'm only using Terminator and I closed down ALL it's windows. Additionally, when I did echo $$ in them, I got different PIDs. Unless I misunderstand "terminal emulator sessions". Am following up on strace now, thank you.
    – LIttle Ancient Forest Kami
    Jan 24 at 8:47
















  • I thought as much but I'm only using Terminator and I closed down ALL it's windows. Additionally, when I did echo $$ in them, I got different PIDs. Unless I misunderstand "terminal emulator sessions". Am following up on strace now, thank you.
    – LIttle Ancient Forest Kami
    Jan 24 at 8:47















I thought as much but I'm only using Terminator and I closed down ALL it's windows. Additionally, when I did echo $$ in them, I got different PIDs. Unless I misunderstand "terminal emulator sessions". Am following up on strace now, thank you.
– LIttle Ancient Forest Kami
Jan 24 at 8:47




I thought as much but I'm only using Terminator and I closed down ALL it's windows. Additionally, when I did echo $$ in them, I got different PIDs. Unless I misunderstand "terminal emulator sessions". Am following up on strace now, thank you.
– LIttle Ancient Forest Kami
Jan 24 at 8:47












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f419149%2fwhat-is-this-shell-doing-and-how-to-find-it-out%23new-answer', 'question_page');

);

Post as a guest













































































W0,faPSiPFO,6OGLS3rJoPPL,i,m0odv4I 8AZt,IHE9HW,3YDC7WXbv uLbON,xc7,QDJVTJ,WL8ULvT
F G,a 5G3Ym utMCrAZBY V0 SnlB,wKb8l1

Popular posts from this blog

How to check contact read email or not when send email to Individual?

How many registers does an x86_64 CPU actually have?

Displaying single band from multi-band raster using QGIS