"Perl.exe" consumes 100% CPU

B

Brian Nox

[I apologize if this is an OT]

i've got a MRTG (v2.10.0pre5) running on a W2000 Server box with
Perl.exe (v2.5.6.1) and FireDaemon (v0.09c) on it.

Apparently the "threesome" works fine, but after two weeks on running,
the process Perl.exe gets all the %CPU.

I've followed the "MRTG + FireDaemon HOWTO"
http://www.firedaemon.com/HOWTO/MRTG to ensure an optimal config, but
this fu*#%!* behaviour shocks me.

Any help/ideas will be welcomed.


PS Windows box ==> Win2000 Adv Server SP4; 2x Xeon 3GHz; 2048MB RAM
 
B

Brian Nox

PS Windows box ==> Win2000 Adv Server SP4; 2x Xeon 3GHz; 2048MB RAM

PS 2: #perl -V

Summary of my perl5 (revision 5 version 6 subversion 1) configuration:
Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
usethreads=undef use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='cl', ccflags ='-nologo -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE
-DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX',
optimize='-O1 -MD -DNDEBUG',
cppflags='-DWIN32'
ccversion='', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=4
alignbytes=8, usemymalloc=n, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -release
-libpath:"D:\Perl\lib\CORE" -machine:x86'
libpth="D:\Perl\lib\CORE"
libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib
odbc32.lib odbccp32.lib msvcrt.lib
perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib
winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib
version.lib odbc32.lib odbccp32.lib msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl56.lib
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release
-libpath:"D:\Perl\lib\CORE" -machine:x86'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS PERL_IMPLICIT_CONTEXT
PERL_IMPLICIT_SYS
Locally applied patches:
ActivePerl Build 629
Built under MSWin32
Compiled at Aug 20 2001 12:27:04
@INC:
D:/Perl/lib
D:/Perl/site/lib
 
W

W K

Brian Nox said:
PS 2: #perl -V

Summary of my perl5 (revision 5 version 6 subversion 1) configuration:

.... much as this is interesting, its the script/program that is using up all
the memory.

pretty much any perl will use up all the cpu if you tell it to.

while (1){
# loop wildly for no reason
}

What is running that is written in perl? thats what seems to have the dodgy
loop.
 
S

Sisyphus

Brian said:
[I apologize if this is an OT]

i've got a MRTG (v2.10.0pre5) running on a W2000 Server box with
Perl.exe (v2.5.6.1) and FireDaemon (v0.09c) on it.

Apparently the "threesome" works fine, but after two weeks on running,
the process Perl.exe gets all the %CPU.

Maybe that perl process needs to be run with a lower priority. See
'perldoc Win32::process'. (I think you'll already have that module.)

Cheers,
Rob
 
B

Brian Nox

What is running that is written in perl? thats what seems to have the dodgy

something like that:
#perl.exe mrtg mrtg_cfg_file.cfg

(running as a win32 service with FireDaemon)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top