From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6c5ea468ea2d685,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-08-21 08:50:36 PST Path: bga.com!news.sprintlink.net!uunet!usc!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!epflnews!disuns2.epfl.ch!javet From: javet@di.epfl.ch (Christian Javet) Newsgroups: comp.unix.osf.osf1 Subject: [Q] RPC, does that work under OSF1 V2.0 ? got problems Date: 21 Aug 1994 15:21:40 GMT Organization: Ecole Polytechnique Federale de Lausanne Message-ID: <337re4$qkn@disuns2.epfl.ch> NNTP-Posting-Host: didec27.epfl.ch Hello, I have tried to use the RPC system on OSF1, but have bad suprises : I used that system to monitor 30 Alpha running OSF1. When I send integers through the net, no problems, but as soon as I send strings (form like string users in my .x file) I have memory leacks... As I send a message to the 30 stations each 10 seconds, the memory leacks is very huge (about 200K each 10 seconds) ... I used the function clnt_freeres() without any effect... This is not good for my application that should stay up for hours ... so I tried to use the rpc.rstatd (distributed in the 2.0 version) and I got the following surprise: the results are absurds ... the following program gives nothing interesting: #include #include main() { struct statstime stat; for(;;) { rstat("didec30.epfl.ch",&stat); printf("%ld,%ld,%ld\n",stat.avenrun[0],stat.avenrun[1],stat.avenrun[2]); sleep(1); } } and compiled with: cc -o foo foo.c -lrpcsvc Now my surprise grows bigger when I got the result of rusers (/usr/bin/rusers) that gives as first person logged on: LOGIN (the first line of finger) [QUESTION] Is RPC supported by OSF1 V2.0 ? if the answer is YES, please tell me where I can get bug free versions of rpc.rstatd / rpc.rusersd and a library of rpc that haven't the memory leack .... Chris. ################################################################### # Christian Javet # (e-mail) javet@di.epfl.ch # # Chemin des Vignerons 9 # -------------------------------- # # 1807 - BLONAY # WWW home page: # # (021) 943 19 66 # http://diwww.epfl.ch/~javet/ # ###################################################################