Too many ptyxis instances?!

Hi,

Quick question, can we limit de nr of ptyxis instances?
Why do I need so many?

The same for gnome-software.
Is it possible to configure it to close all it’s instances after using it?

If ptyxis is configured to open a new window instead of a new tab the display you show may be possible. Check the settings in ptyxis (the hamburger menu) to see how it may be configured. By default ctrl-shift-n opens a new window and ctrl-shift-t opens a new tab in the existing window. When I have many tabs open with a single window it only shows one each for the application and for the socket. I even tested with using ctrl-shift-n to open 6 new windows and it still only had the 2 lines listed with the ps command.

For gnome software, it appears you may be opening a new window without closing the older one. What happens if you reboot and then make certain that the gnome software window is closed every time it is used.?

you can only open one instance at a time :slight_smile:

There is nothing on the settings area that you can setup for this matter.
And to be honest, I dont use tabs.
It’s enough to open only one ptyxis and it will open about 10 processes…

$ ps aux | grep ptyxis
jvian       3198  0.6  0.7 2237744 247436 ?      Ssl  Mar23  54:56 /usr/bin/ptyxis --gapplication-service
jvian       3689  0.0  0.0 378084  7048 ?        Ssl  Mar23   0:25 /usr/libexec/ptyxis-agent --socket-fd=3 --rlimit-nofile=1024
jvian     920547  0.0  0.0 231252  2568 pts/4    S+   12:46   0:00 grep --color=auto ptyxis

# ps -ef | grep ptyxis
jvian       3198    2694  0 Mar23 ?        00:54:59 /usr/bin/ptyxis --gapplication-service
jvian       3689    3198  0 Mar23 ?        00:00:25 /usr/libexec/ptyxis-agent --socket-fd=3 --rlimit-nofile=1024
root      921086    5005  0 12:51 pts/0    00:00:00 grep --color=auto ptyxis

Note the 3rd column when using the -ef option. It tells which process is the parent of the current process (2nd column).
If you were to run that command then copy & paste the result as preformatted text we can see how the tree you show in the image is created. Maybe then the solution can be found.

Preformatted text is shown by placing a (```) on the line preceding the pasted text and on the line following the text. (Or by highlighting the pasted text and clicking the </> button on the toolbar of the text entry window)

I just counted 17 processes of ptyxis :slight_smile:

OK, now I have more questions :slight_smile:
htop is showing:

but ps is showing only 2 lines.

liviu@bobdenaut:~$ ps aux | grep ptyxis
liviu      30684  3.2  0.5 4071284 173816 ?      Ssl  18:07   3:38 /usr/bin/ptyxis --gapplication-service
liviu      30708  0.0  0.0 377896  5364 ?        Ssl  18:07   0:02 /usr/libexec/ptyxis-agent --socket-fd=3 --rlimit-nofile=1024
liviu      77437  0.0  0.0   6500  1328 pts/1    S+   19:58   0:00 grep --color=auto ptyxis
liviu@bobdenaut:~$ ps -ef | grep ptyxis
liviu      30684    5082  3 18:07 ?        00:03:39 /usr/bin/ptyxis --gapplication-service
liviu      30708   30684  0 18:07 ?        00:00:02 /usr/libexec/ptyxis-agent --socket-fd=3 --rlimit-nofile=1024
liviu      77502   77396  0 19:58 pts/1    00:00:00 grep --color=auto ptyxis
liviu@bobdenaut:~$

htop has nothing to do with how many processes may be running. It is related to time consumed per time period. Thus it is not anything to be an issue unless there is a major slowdown of the system that can be related to the one process stated.

Note that processes running are shown by the ps command.

CPU time is shown by the various top commands and may be a single line or many depending upon how many different times that process is polled in the given time period
My htop display for ptyxis is


and in tree view it shows

I believe you are concerned about nothing of importance.

1 Like

Yeah, right but I wasn’t concerned in a bad way, I just didn’t understand why I see so many processes but now switching to tree on htop I see it’s one main process with other sub-processes?!
OK, I appreciate your time, man!

1 Like