Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: javet@di.epfl.ch (Christian Javet)
Subject: [Q] RPC, does that work under OSF1 V2.0 ? got problems
Date: 21 Aug 1994 15:21:40 GMT	[thread overview]
Message-ID: <337re4$qkn@disuns2.epfl.ch> (raw)

   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<MAX_STRING> 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 <stdio.h>
#include <rpcsvc/rstat.h>

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/   #
###################################################################



                 reply	other threads:[~1994-08-21 15:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox