[Orca-users] Re: Memory leak under Linux?

B.Schopp at gmx.de B.Schopp at gmx.de
Wed Jun 25 07:12:04 PDT 2003


Jenny Williams wrote:
> 
> Any similar experiences, suggestions?  For one, can someone suggest a back
> version that would successfully run in daemon mode?  or a version of Perl
> under which this configuration is known to run?

Actually, i'm running orca as server-process on 4 Linux-boxes for about 154
days without interruption and any problems. I used Perl 5.8.0 from CPAN and 
compiled a version to use with orca only, to make it easier to distribute it
to 
other boxes. The orca-version i used was 0.27 (Downloaded it in Jan.).
In the following i grapped the output from an ps i started on all boxes:

calc1:~ # ps -eo pid,user,rss,rsz,sz,args | grep orca
 6533 root     1124 1124   915 /usr/bin/perl -w
/opt/DRGorca/bin/procallator.pl
17209 root     40632 40632 11426 /opt/DRGorca/perl/bin/perl -w # -*- perl
-*- 
/opt/DRGorca/bin/orca /opt/DRGorca/lib/orca1.cfg
calc2:~ # ps -eo pid,user,rss,rsz,sz,args | grep orca
29432 root     1124 1124   915 /usr/bin/perl -w
/opt/DRGorca/bin/procallator.pl
12894 root     29756 29756 8300 /opt/DRGorca/perl/bin/perl -w # -*- perl -*-

/opt/DRGorca/bin/orca /opt/DRGorca/lib/orca2.cfg
calc3:~ # ps -eo pid,user,rss,rsz,sz,args | grep orca
29679 root     1124 1124   915 /usr/bin/perl -w
/opt/DRGorca/bin/procallator.pl
23353 root     18208 18208 4907 /opt/DRGorca/perl/bin/perl -w # -*- perl -*-

/opt/DRGorca/bin/orca /opt/DRGorca/lib/orca3.cfg
calc5:~ # ps -eo pid,user,rss,rsz,sz,args | grep orca
22804 root     2036 2036   919 /usr/bin/perl -w
/opt/DRGorca/bin/procallator.pl
15999 root     11556 11556 3231 /opt/DRGorca/perl/bin/perl -w # -*- perl -*-

/opt/DRGorca/bin/orca /opt/DRGorca/lib/procallator.cfg

Nearly all orca-processes are running for about 154 days now except 1, where

i inserted web-monitoring into procallator.cfg after my procallator-addon
for
webmonitoring was ready. this one is running on calc5 for about 30 days. The
differences between the single process-sizes results in the fact, that the
single
processes calculate data for a different number of hosts with a different
number
of graphs generated. System calc1 and calc2 monitor the same # of hosts with
the difference that calc1 monitors an E10K with 10 qfe cards and about 8
other 
hosts with at least 1 qfe-card and many reconfigurations to the mounted
volumes.
Calc2  doesn't have this problems with the changed volumes and no qfe's to 
calculate, so that the # of calculated graphs is much lower in comparison to
calc1.
As i asume on these values the memorysize depends at least on the number of
calculated graphs: calc1 calculates about 34% more graphs than calc2, 250%
more than calc3 and about 500% more than calc5.

Here i got the output of /opt/DRGorca/perl/bin/perl -V:
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.4.19-4gb, archname=i686-linux-64int
    uname='linux orca-serv 2.4.19-4gb #1 fri sep 13 13:14:56 utc 2002 i686
unknown '
    config_args='-Uinstallusrbinperl -Dcc=gcc -Dprefix=/opt/DRGorca/perl'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
    optimize='-O3',
    cppflags='-fno-strict-aliasing'
    ccversion='', gccversion='3.2', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/share/lib /usr/lib
    libs=-lnsl -ldl -lm -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.2.5'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
 
Characteristics of this binary (from libperl): 
  Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
  Built under linux
  Compiled at Jan  7 2003 19:44:58
  @INC:
    /opt/DRGorca/perl/lib/5.8.0/i686-linux-64int
    /opt/DRGorca/perl/lib/5.8.0
    /opt/DRGorca/perl/lib/site_perl/5.8.0/i686-linux-64int
    /opt/DRGorca/perl/lib/site_perl/5.8.0
    /opt/DRGorca/perl/lib/site_perl


Maybe you have to compile your own perl for your 2-CPU box to use it
with orca. I'm sorry that i don't have access to an x86 multi-CPU box to 
verify this issue. 

Hope, you suceed with this!
Burkhardt

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!




More information about the Orca-users mailing list