All Products 
Username / Customer#
Password
Log In
 Hi,  |  Log Out
  • Site Search
  • Domain Search
  • WHOIS Domain Check
24/7 Support: (480) 505-8877
Hablamos Español
9 AM to 9 PM IST
7 days a week
Go Daddy Support

Search help articles, forums, and discussion groups

Out of memory error processing a file

Viewing post 1 to 8 (8 total posts)
Profile picture of franztini

franztini said 10 months, 3 weeks ago:

I have a script that parses a large file (approximately 250mb) and I keep getting out of memory errors. I have manually run the process and watched my server utilization and it does not even spike. free -m shows 1722 free; I was going to create a virtual memory partition but searched this forum and it looks like it might be something that the server team should look into

Profile picture of Gary A

GoDaddy Expert Gary A said 10 months, 3 weeks ago:

@franztini

The error is likely related to the type of script. If it is a php script processed through a browser, you will want to ensure that your PHP configuration allows enough memory to PHP.

If you would like our Server Support team to investigate your server, you can submit a Trouble Ticket for your server. Information on creating a Trouble Ticket can be found here:

http://support.godaddy.com/help/article/4596/creating-trouble-tickets-for-your-server

-Gary

Profile picture of franztini

franztini said 10 months, 3 weeks ago:

@Gary,
It is a perl script that parses the XML files. The perl script successfully processes multiple files except the one large one, however the next largest file is only 20mgs. Any thoughts?

Profile picture of Gary A

GoDaddy Expert Gary A said 10 months, 3 weeks ago:

@franztini

I am not familiar with Perl scripting, so I am not sure how it allocates memory. Perhaps another member with experience in Perl will be able to offer a solution. You may also want to check you issue on a Perl specific site to see if you are able to find additional information relating to this.

-Gary

Profile picture of franztini

franztini said 10 months, 2 weeks ago:

@Gary,
Hope you had a great 4th! After researching other sites, perl uses all available memory – RAM and swap partition/files. Our current server has similar specs as this VM (2gb RAM), but it also has 2gb of virtual memory. Our current VM does not have any swap partition/file and I would like to create one. However, in researching whether you can create a swap partition/file in a VM, I am getting conflicting information. So, can I add a swap partition (using this command dd if=/dev/zero of=/path/to/swapfile count=$NUMBER_OF_MB_REQUIRED bs=1M) within my VM and not break it?

Profile picture of Gary A

GoDaddy Expert Gary A said 10 months, 2 weeks ago:

@franztini

You should be able to create a swap file without any issues on a Virtual Dedicated server. You will want to keep in mind that it will take up space of your available storage space.

-Gary

Profile picture of franztini

franztini said 10 months, 2 weeks ago:

@Gary
Great – hopefully this will solve my problem. Thanks for the quick response.

Profile picture of Gary A

GoDaddy Expert Gary A said 10 months, 2 weeks ago:

@franztini

Glad I could help. If you have any other questions, please feel free to post them on the Forums.

-Gary

Add a reply:

You will auto join this group when you reply to this topic.

When posting about a technical issue, please be sure to include as many details as possible, such as your domain name, related URLs and other pertinent information. This consideration will allow us to better understand the situation and quickly assist you.