Out of memory issue in perl


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Out of memory issue in perl
# 1  
Old 12-15-2014
Out of memory issue in perl

I am getting a out of memory issue while executing the perl program.

Code:
Per version  : /opt/acc_perl/lib/site_perl/5.14.2
 
Read in 54973 total records
Read in 54973 table records from table.
Out of memory!


so the job get failed due to out of memory. need to get rid of the out of memory issue.

Moderator's Comments:
Mod Comment edit by bakunin: please use CODE-tags where they are due. Thank you.

Last edited by bakunin; 12-15-2014 at 12:43 PM..
# 2  
Old 12-15-2014
Quote:
Originally Posted by ramkumar15
so the job get failed due to out of memory. need to get rid of the out of memory issue.
Quite simple: install more.

Alternatively you might examine the failing script, find out why it needs so much memory (my suspicion is that it tries to do everything in RAM) and change the algorithm to some less demanding one. Use temp files to store intermediate data, etc..

I hope this helps.

bakunin
# 3  
Old 02-23-2015
out of memory

I am getting memory issue in the below area. whether it can be modified in the hash area.
Code:
{
Function () :

#####################################################################
  # Return a sorted list of hash references for the dimension
  # May be scoped to certain types
  #####################################################################
  my $self = shift;
  my ($ret, $scope);
            $scope  = 'prod'    unless @_;
            $scope  = $_[0]     if (@_ == 1);
     ($ret, $scope) = @_        if (@_ == 2);
  return @{$self->{NEW_ITEM}}   if ($scope =~ /^new_?items?$/i);
  return @{$self->{GEOG_NO}}    if ($scope =~ /^geog_?no$/i);
  return @{$self->{PRODBYLVL}}  if ($scope =~ /^prodbylvl/i);

# 4  
Old 02-23-2015
That does not appear related. Please post the rest of the program.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

RHEL Memory issue

Friends, I have 8CPU/24gb RAM in my Linux servers around 30+. All the servers are running with Java based application with NFS mounted. The problem what I have is, When I reboot servers the server memory looks decent. But after some time the "cached" memory increasing and "free" memory... (5 Replies)
Discussion started by: baluchen
5 Replies

2. Linux

Swap memory issue

Hi, In our production box i can see the Swap space using the below command free total used free shared buffers cached Mem: 65963232 41041084 24922148 0 877160 35936292 -/+ buffers/cache: 4227632 61735600 Swap: 4192880 ... (6 Replies)
Discussion started by: ratheeshjulk
6 Replies

3. Red Hat

Memory Issue

I could not find what is consuming the memory, generated DSET reports and NO hardware wise memory issue. 64 GB RAM on a server yet all I could see is a very limited memory available. I am not sure if I am reading this correct or not. I have used free -t -m and cat /proc/meminfo (results below)... (3 Replies)
Discussion started by: rsheikh01
3 Replies

4. AIX

Memory issue

I have a server with 300Gb allocated to it. Some times I observed in topas Comp% 73 and Non comp 35% and client is also 35% and my paging is showing 92%. If my physical memory utilized only 70% then why paging is so high. And what is relation between Comp, noncomp and client? If the memory... (1 Reply)
Discussion started by: powerAIX
1 Replies

5. SuSE

Memory utilization issue

I have parallels container running on Suse. From top command, I am not able to see, what is eating up so big amount of memory. top - 07:44:24 up 172 days, 18:52, 1 user, load average: 0.01, 0.02, 0.00 Tasks: 44 total, 1 running, 43 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, ... (1 Reply)
Discussion started by: solaris_1977
1 Replies

6. Solaris

Locked memory issue

One of our project has exceeded its assigned max-memory-locked by 3 times .. The said project is using around 9 gigs as described by rss parameter in prstat -J .. and the max-project-memory parameter has been defined as 3gigs .. is it normal or we are monitoring the project memory usage in wrong... (2 Replies)
Discussion started by: fugitive
2 Replies

7. Linux

Virtual Memory issue

Hi all, I was compiling my glibc 2.6.1 source files on a new kernel 2.66.22.6 and it seems that i am running into issues with the Virtual Memory. It displays the error message: virtual memory exhausted: Cannot allocate memory‏ I saw an article on how to adjust the parameters but i can't... (5 Replies)
Discussion started by: scriptingmani
5 Replies

8. AIX

Shared memory issue

Hi friends.. Help to solve this issue... Is there any parameter setting to control or limit the size of the shared memory a process can attach for the below specified environment? The man pages says it can attach upto segments of size 2GB. But when our process (which also connects to... (0 Replies)
Discussion started by: sdspawankumar
0 Replies

9. Linux

Memory issue while diff !!!

Hi All Any idea? why am I having this memory issue? perforce@ixca-pforce-bak:/home/p4-demo-root$ diff checkpoint_offline ../p4-demo-root2/checkpoint.1150 diff: memory exhausted Thanks a lot C Saha (0 Replies)
Discussion started by: csaha
0 Replies

10. Windows & DOS: Issues & Discussions

Memory Issue

Hi There, I have upgraded the DELL poweredge 2600 server memory from 2GB to 4GB. However, the memory only showed at 2GB of utilization. How to make sure that the server is full utilize of 4GB of memory. Is there the Virtual memory need to be reconfigure as this server is run on windows 2000 and... (2 Replies)
Discussion started by: vestro
2 Replies
Login or Register to Ask a Question