[FreeNX-kNX] freenx: nxagent forks ad infinitum

Sébastien Kunz-Jacques kunzjacq at yahoo.fr
Sun May 14 09:50:23 UTC 2006


I am trying to use freenx 0.5.0 on a gentoo box. I try to connect from a 
windows machine, using nomachine client 1.5.0-138. I had freenx 0.4.0 
working before. I tried various ways to set up the server, and lastly I 
followed the howto of http://gentoo-wiki.com/HOWTO_FreeNX_Server.
 From the windows machine, the connection timeouts. If I perform a "ps 
augx" on the server while the client is connecting, I get many (several 
hundred) lines like the ones below :

seb      31123  0.0  0.4   2528  1068 ?        S    10:00   0:00 
/bin/bash /usr/NX/bin/nxagent -persistent -name NX - seb at vassili:1003 - 
vassili (GPL Edition) -option 
/home/seb/.nx/C-vassili-1003-892DA1FF9E2B0CE55D74877FF9100919/options 
-kbtype pc102/fr -geometry 1920x1140 -bs never :1003
seb      31124  0.0  0.4   2532  1068 ?        S    10:00   0:00 
/bin/bash /usr/NX/bin/nxagent -persistent -name NX - seb at vassili:1003 - 
vassili (GPL Edition) -option 
/home/seb/.nx/C-vassili-1003-892DA1FF9E2B0CE55D74877FF9100919/options 
-kbtype pc102/fr -geometry 1920x1140 -bs never :1003
seb      31125  0.0  0.4   2528  1068 ?        S    10:00   0:00 
/bin/bash /usr/NX/bin/nxagent -persistent -name NX - seb at vassili:1003 - 
vassili (GPL Edition) -option 
/home/seb/.nx/C-vassili-1003-892DA1FF9E2B0CE55D74877FF9100919/options 
-kbtype pc102/fr -geometry 1920x1140 -bs never :1003
seb      31126  0.0  0.4   2532  1068 ?        S    10:00   0:00 
/bin/bash /usr/NX/bin/nxagent -persistent -name NX - seb at vassili:1003 - 
vassili (GPL Edition) -option 
/home/seb/.nx/C-vassili-1003-892DA1FF9E2B0CE55D74877FF9100919/options 
-kbtype pc102/fr -geometry 1920x1140 -bs never :1003
seb      31127  0.0  0.4   2532  1064 ?        S    10:00   0:00 
/bin/bash /usr/NX/bin/nxagent -persistent -name NX - seb at vassili:1003 - 
vassili (GPL Edition) -option 
/home/seb/.nx/C-vassili-1003-892DA1FF9E2B0CE55D74877FF9100919/options 
-kbtype pc102/fr -geometry 1920x1140 -bs never :1003
seb      31128  0.0  0.4   2532  1072 ?        S    10:00   0:00 
/bin/bash /usr/NX/bin/nxagent -persistent -name NX - seb at vassili:1003 - 
vassili (GPL Edition) -option 
/home/seb/.nx/C-vassili-1003-892DA1FF9E2B0CE55D74877FF9100919/options 
-kbtype pc102/fr -geometry 1920x1140 -bs never :1003
seb      31129  0.0  0.4   2528  1068 ?        S    10:00   0:00 
/bin/bash /usr/NX/bin/nxagent -persistent -name NX - seb at vassili:1003 - 
vassili (GPL Edition) -option 
/home/seb/.nx/C-vassili-1003-892DA1FF9E2B0CE55D74877FF9100919/options 
-kbtype pc102/fr -geometry 1920x1140 -bs never :1003
seb      31130  0.0  0.4   2532  1072 ?        S    10:00   0:00 
/bin/bash /usr/NX/bin/nxagent -persistent -name NX - seb at vassili:1003 - 
vassili (GPL Edition) -option 
/home/seb/.nx/C-vassili-1003-892DA1FF9E2B0CE55D74877FF9100919/options 
-kbtype pc102/fr -geometry 1920x1140 -bs never :1003
seb      31131  0.0  0.4   2528  1064 ?        S    10:00   0:00 
/bin/bash /usr/NX/bin/nxagent -persistent -name NX - seb at vassili:1003 - 
vassili (GPL Edition) -option 
/home/seb/.nx/C-vassili-1003-892DA1FF9E2B0CE55D74877FF9100919/options 
-kbtype pc102/fr -geometry 1920x1140 -bs never :1003
seb      31132  0.0  0.4   2532  1068 ?        S    10:00   0:00 
/bin/bash /usr/NX/bin/nxagent -persistent -name NX - seb at vassili:1003 - 
vassili (GPL Edition) -option 
/home/seb/.nx/C-vassili-1003-892DA1FF9E2B0CE55D74877FF9100919/options 
-kbtype pc102/fr -geometry 1920x1140 -bs never :1003
seb      31133  0.0  0.4   2532  1072 ?        S    10:00   0:00 
/bin/bash /usr/NX/bin/nxagent -persistent -name NX - seb at vassili:1003 - 
vassili (GPL Edition) -option 
/home/seb/.nx/C-vassili-1003-892DA1FF9E2B0CE55D74877FF9100919/options 
-kbtype pc102/fr -geometry 1920x1140 -bs never :1003
seb      31134  0.0  0.4   2532  1064 ?        R    10:00   0:00 
/bin/bash /usr/NX/bin/nxagent -persistent -name NX - seb at vassili:1003 - 
vassili (GPL Edition) -option 
/home/seb/.nx/C-vassili-1003-892DA1FF9E2B0CE55D74877FF9100919/options 
-kbtype pc102/fr -geometry 1920x1140 -bs never :1003
seb      31135  0.0  0.4   2528  1056 ?        R    10:00   0:00 
/bin/bash /usr/NX/bin/nxagent -persistent -name NX - seb at vassili:1003 - 
vassili (GPL Edition) -option 
/home/seb/.nx/C-vassili-1003-892DA1FF9E2B0CE55D74877FF9100919/options 
-kbtype pc102/fr -geometry 1920x1140 -bs never :1003
seb      31136  0.0  0.4   2528  1060 ?        R    10:00   0:00 
/bin/bash /usr/NX/bin/nxagent -persistent -name NX - seb at vassili:1003 - 
vassili (GPL Edition) -option 
/home/seb/.nx/C-vassili-1003-892DA1FF9E2B0CE55D74877FF9100919/options 
-kbtype pc102/fr -geometry 1920x1140 -bs never :1003
seb      31137  0.0  0.4   2532  1056 ?        R    10:00   0:00 
/bin/bash /usr/NX/bin/nxagent -persistent -name NX - seb at vassili:1003 - 
vassili (GPL Edition) -option 
/home/seb/.nx/C-vassili-1003-892DA1FF9E2B0CE55D74877FF9100919/options 
-kbtype pc102/fr -geometry 1920x1140 -bs never :1003
seb      31138  0.0  0.0   1236   184 ?        R    10:00   0:00 
/bin/bash /usr/NX/bin/nxagent -persistent -name NX - seb at vassili:1003 - 
vassili (GPL Edition) -option 
/home/seb/.nx/C-vassili-1003-892DA1FF9E2B0CE55D74877FF9100919/options 
-kbtype pc102/fr -geometry 1920x1140 -bs never :1003

or, in tree form:

 6983  2425  2425  2425 ?           -1 Ss       0   0:00  \_ sshd: nx [priv]
 2425  2430  2425  2425 ?           -1 S      102   0:00  |   \_ sshd: 
nx at notty
 2430  2431  2431  2431 ?           -1 Ss     102   0:00  |       \_ 
/bin/bash /usr/NX/bin/nxserver -c /usr/NX/bin/nxserver
 2431  2551  2431  2431 ?           -1 S      102   0:00  |           \_ 
/bin/bash /usr/NX/bin/nxserver -c /usr/NX/bin/nxserver
 2551  2558  2431  2431 ?           -1 S      102   0:00  |           
|   \_ sleep 60
 2431  2552  2431  2431 ?           -1 S      102   0:00  |           \_ 
/bin/bash /usr/NX/bin/nxserver -c /usr/NX/bin/nxserver
 2552  2553  2431  2431 ?           -1 S      102   0:00  
|               \_ /bin/bash /usr/NX/bin/nxserver -c /usr/NX/bin/nxserver
 2553  2571  2431  2431 ?           -1 S      102   0:00  
|               |   \_ ssh -l seb 127.0.0.1 -p 22 -x -2 -i 
/usr/NX/etc/users.id_dsa -o PubkeyAuthentication yes -o 
RSAAuthentication yes -o RhostsAuthentication no -o 
PasswordAuthentication no -o RhostsRSAAuthentication no -o 
StrictHostKeyChecking no /usr/NX
 2553  2572  2431  2431 ?           -1 S      102   0:00  
|               |   \_ cat -
 2552  2557  2431  2431 ?           -1 S      102   0:00  
|               \_ /bin/bash /usr/NX/bin/nxserver -c /usr/NX/bin/nxserver
 6983  2573  2573  2573 ?           -1 Ss       0   0:00  \_ sshd: seb 
[priv]
 2573  2578  2573  2573 ?           -1 S     1001   0:00      \_ sshd: 
seb at notty
 2578  2579  2579  2579 ?           -1 Ss    1001   0:00          \_ 
/bin/bash /usr/NX/bin/nxnode --startsession
 2579  2713  2579  2579 ?           -1 S     1001   0:00              \_ 
/bin/bash /usr/NX/bin/nxnode --startsession
 2713  2714  2579  2579 ?           -1 S     1001   0:00              
|   \_ tail -n1 -f 
/home/seb/.nx/C-vassili-1004-0652A44E1DDFD9E7B92BF86B3BC8D238/session
 2713  2715  2579  2579 ?           -1 S     1001   0:00              
|   \_ /bin/bash /usr/NX/bin/nxnode --startsession
 2715  2726  2579  2579 ?           -1 S     1001   0:00              
|       \_ /bin/bash /usr/NX/bin/nxnode --startsession
 2726  2733  2579  2579 ?           -1 S     1001   0:00              
|           \_ sleep 60
 2579  2720  2579  2579 ?           -1 S     1001   0:00              \_ 
/bin/bash /usr/NX/bin/nxnode --startsession
 2720  2721  2579  2579 ?           -1 S     1001   0:00              
|   \_ /bin/bash /usr/NX/bin/nxagent -persistent -name NX - 
seb at vassili:1004 - vassili (GPL Edition) -option 
/home/seb/.nx/C-vassili-1004-0652A44E1DDFD9E7B92BF86B3BC8D238/options 
-kbtype pc102/fr -geometry 1920x1140 -bs when_requested :1004 -co /
 2721  2722  2579  2579 ?           -1 S     1001   0:00              
|       \_ /bin/bash /usr/NX/bin/nxagent (...)
 2722  2727  2579  2579 ?           -1 S     1001   0:00              
|           \_ /bin/bash /usr/NX/bin/nxagent (...)
 2727  2728  2579  2579 ?           -1 S     1001   0:00              
|               \_ /bin/bash /usr/NX/bin/nxagent (...)
 2728  2729  2579  2579 ?           -1 S     1001   0:00              
|                   \_ /bin/bash /usr/NX/bin/nxagent (...)
 2729  2730  2579  2579 ?           -1 S     1001   0:00              
|                       \_ /bin/bash /usr/NX/bin/nxagent (...)
 2730  2731  2579  2579 ?           -1 S     1001   0:00              
|                           \_ /bin/bash /usr/NX/bin/nxagent (...)
 2731  2735  2579  2579 ?           -1 S     1001   0:00              
|                               \_ /bin/bash /usr/NX/bin/nxagent (...)
 2735  2736  2579  2579 ?           -1 S     1001   0:00              
|                                   \_ /bin/bash /usr/NX/bin/nxagent (...)
(...)

After a while, it seems the maximum number of processes per user is 
reached and I get in the "session" file in  the .nx folder of  the user 
account I am trying to connect to:
 
/usr/NX/bin/nxagent: fork: Resource temporarily unavailable

My node.conf has very few options ; apart from logging options, I only use

ENABLE_1_5_0_BACKEND="1"

and

AGENT_EXTRA_OPTIONS_X="-co /usr/share/X11/rgb -fp 
/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1"

because I use the modular X implementation (Xorg 7), which has different 
paths for fonts and such. (I tried to disable the above option, just in 
case; the results are the same).

and despite having set

NX_LOG_LEVEL=7
NX_LOGFILE=/var/log/nxserver.log
SESSION_LOG_CLEAN=0

I get no /var/log/nxserver.log file.

the results above were obtained with last gentoo ebuild; same results 
(fork exhaustion) were obtained using svn rev 204 of freenx.

Any idea on this ?

Sébastien Kunz-Jacques




	

	
		
___________________________________________________________________________ 
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. 
Rendez-vous sur http://fr.yahoo.com/set



More information about the FreeNX-kNX mailing list