Page 1 of 1

Reducing number of twonky processes

Posted: Wed Mar 09, 2011 9:50 pm
by wernimaniac
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.

Re: Reducing number of twonky processes

Posted: Mon Mar 14, 2011 7:44 pm
by 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?

Re: Reducing number of twonky processes

Posted: Mon Mar 14, 2011 8:07 pm
by wernimaniac
[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.

Re: Reducing number of twonky processes

Posted: Tue Mar 15, 2011 12:07 am
by DaemonBeetle
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).

Re: Reducing number of twonky processes

Posted: Tue Mar 15, 2011 9:18 am
by wernimaniac
It seems to be that you're right. They are only threads but why the number of threads increases continuously?

Re: Reducing number of twonky processes

Posted: Tue Mar 15, 2011 7:45 pm
by DaemonBeetle
I've no idea - but given that they share memory space etc it shouldn't matter.