Memory leak with XMLRPC and Perl...

F

findingAri

Hello,
I wrote a program in Perl (using version 5.8.4), that using XMLRPC to
communicate between the client and the server. The call from the
client to the server sitting in a infinite loop that can be run in
random inteval time.
After sometime that the client is running the perl's proccess taking
~70MB of ram and ~100% of the CPU usage.
May you know why?
TNX.
 
X

xhoster

Hello,
I wrote a program in Perl (using version 5.8.4), that using XMLRPC to
communicate between the client and the server. The call from the
client to the server sitting in a infinite loop that can be run in
random inteval time.
After sometime that the client is running the perl's proccess taking
~70MB of ram and ~100% of the CPU usage.

Sounds more like a CPU leak than a memory leak.
May you know why?

Not without seeing some code.
I'd strace it.

Xho
 
4

490

Sounds more like a CPU leak than a memory leak.


Not without seeing some code.
I'd strace it.

Xho

I'll try and explain myself.
I am writing a program in Perl that is bulit of a Server and a Client
that connect via XML-RPC.
The client has a infinite loop ( while(1) ), which inside it i call
the server.
After every call i make, the program goes to sleep for a minute (sleep
60;) then i make the call and so on and so on...
Thats why it is a infinite loop.
After sometime (dont know if its a day or more) that the client is
running the perl's proccess takes ~70MB of ram and ~100% of the CPU
usage.

Dose this help you to understand me more?

thanks alot,
490!
 
J

John Bokma

490 said:
I'll try and explain myself.

Without seeing actual code you can tell what the program does 1000 times,
but still we can only guess what's going wrong.

Reduce the program to the smallest possible version that still has the
problem. Sometimes when doing this you'll find the answer yourself.
Otherwise, you will end up with a very short program people can have a
look at, or even run on their own systems and see if they can reproduce
the issue.
 

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

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,661
Latest member
sxarexu

Latest Threads

Top