Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Out of memory error for very small hash

by Rahushi (Initiate)
on Sep 13, 2012 at 21:05 UTC ( #993578=perlquestion: print w/ replies, xml ) Need Help??
Rahushi has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I have a small script to connect to some 11 linux servers using Net::SSH2 and execute the command. After I execute the command at remote machine, I get the output and puts the machine name as key in hash and output as value. My problem is, it does execute successfully for 10 servers, however when I add 11th server, it exits saying out of memory. I am breaking my head over this. Any help would be highly appreciated. I can post sample of my code.

Comment on Out of memory error for very small hash
Re: Out of memory error for very small hash
by Riales (Hermit) on Sep 13, 2012 at 21:15 UTC

    Yep, your code and maybe sample output from one of the machines would be nice. Right now, we have nothing to go off of...

Re: Out of memory error for very small hash
by salva (Monsignor) on Sep 13, 2012 at 21:17 UTC
    I can post sample of my code.

    So do it!

    Or even better, try to reduce it to the minimum piece of code that is still runnable and that makes the "Out of memory" error still happen.

Re: Out of memory error for very small hash
by Anonymous Monk on Sep 14, 2012 at 01:48 UTC
    Put a sample of code in code-tags ... see "Markup in the Monastery" for details.
Re: Out of memory error for very small hash
by Anonymous Monk on Sep 14, 2012 at 02:16 UTC
    Well, check ulimit , maybe you really are running out of memory
      Thanks all for the reply. My probelm is solved. I still do not know what was happening yesterday. Today I am running the same script and it is working fine.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://993578]
Approved by ig
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2014-08-20 16:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (118 votes), past polls