Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Mar 06, 2015 5:45 am 
Offline

Joined: Fri Mar 06, 2015 5:39 am
Posts: 1
Ok so I have created a WordPress plugin which imports a bunch of CSV entries and converts them into WordPress posts. The script sets memory limit to -1 and max_execution_time to 0. I am trying to run this on a 1024 MB node provided by Linode. The node has VirtualMin installed and PHP is configured to run as FCGId. I have added the following to /etc/apache2/mods-available/fcgid.conf:

FcgidBusyTimeout 604800
FcgidIdleTimeout 999999999
FcgidMaxRequestsPerProcess 999999999
MaxRequestsPerProcess 999999999
IdleTimeout 999999999999999
FcgidMaxRequestsPerProcess 999999999
FcgidIOTimeout 999999999

I am trying to import a CSV file with over 20k entries but the script dies after importing around 4k entries.

I would like to know if whether this could be because of a setting related to MySQL/Apache/PHP or is it related to the amount of resources available like memory etc?

When the script dies, the error_log makes no mention of anything related to this.

The script runs for around 3 or 4 minutes before it dies but I know this isn't related to the amount of time it's allotted because I have successfully run a test script I created to run for 15 minutes in which it sleeps every second and then writes to a file. It ran fine without any problem.


Top
   
PostPosted: Fri Mar 06, 2015 6:09 am 
Offline
Senior Newbie

Joined: Mon Aug 12, 2013 8:58 am
Posts: 14
Haven't got an answer for you, but, to discount the plugin being the issue, have you successfully used it on another host (perhaps a local machine) with same/more RAM- same results, or different?

Also, worth just running 'top' or something similar in a terminal on your Linode while you try the plugin, sort my memory, or by cpu, see how that goes.

Perhaps you've already tried these things, mentioning them just in case you haven't.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group