Reducing number of twonky processes

Linux and UNIX specific discussions
Post Reply
wernimaniac
Posts:3
Joined:Wed Mar 09, 2011 9:36 pm
AV Hardware:Noxon
Reducing number of twonky processes

Post by wernimaniac » Wed Mar 09, 2011 9:50 pm

Hey,

I successfully installed twonky server (6.0.30) on my debian server but there is one problem.
On startup there are 27 twonky processes (/usr/local/twonkymedia/twonkymediaserver -D).
This could be okay but as time went on this number increases up to 50 (and maybe more).
After restart all is fine until it increases again.

What could be the reason for this behaviour? I have a noxon radio, no other device.
Maybe twonky forks a new process on every connection?
Is it possible to restrict the number of forked processes by twonky?

Thanks in advance.

User avatar
DaemonBeetle
Posts:305
Joined:Mon Dec 28, 2009 11:05 am
AV Hardware:Plex Media Server, Samsung Smart TV (2009 and 2013)

Re: Reducing number of twonky processes

Post by DaemonBeetle » Mon Mar 14, 2011 7:44 pm

Are you sure they're separate processes and not separate threads? Is it actually causing problems, or do you just not like the way it looks?
No longer running Twonky

wernimaniac
Posts:3
Joined:Wed Mar 09, 2011 9:36 pm
AV Hardware:Noxon

Re: Reducing number of twonky processes

Post by wernimaniac » Mon Mar 14, 2011 8:07 pm

[quote="DaemonBeetle"]Are you sure they're separate processes and not separate threads? Is it actually causing problems, or do you just not like the way it looks?[/quote]

I think they're processes. How I can figure out if they are processes or threads? Today there are 70 processes (the server runs for 5 days).
The main problem is that every process reserves memory. The system is running on a dockstar and it has only 128 MB RAM.

User avatar
DaemonBeetle
Posts:305
Joined:Mon Dec 28, 2009 11:05 am
AV Hardware:Plex Media Server, Samsung Smart TV (2009 and 2013)

Re: Reducing number of twonky processes

Post by DaemonBeetle » Tue Mar 15, 2011 12:07 am

It depends a bit on the version of Linux, and the accompanying tools. For me "ps -ef" shows the processes (one twonkymediaserver) and "ps -efL" shows the threads (28 threads).
No longer running Twonky

wernimaniac
Posts:3
Joined:Wed Mar 09, 2011 9:36 pm
AV Hardware:Noxon

Re: Reducing number of twonky processes

Post by wernimaniac » Tue Mar 15, 2011 9:18 am

It seems to be that you're right. They are only threads but why the number of threads increases continuously?

User avatar
DaemonBeetle
Posts:305
Joined:Mon Dec 28, 2009 11:05 am
AV Hardware:Plex Media Server, Samsung Smart TV (2009 and 2013)

Re: Reducing number of twonky processes

Post by DaemonBeetle » Tue Mar 15, 2011 7:45 pm

I've no idea - but given that they share memory space etc it shouldn't matter.
No longer running Twonky

Post Reply