Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : Excessive memory use on CLI import utility



Normal Mode | Print  

 Excessive memory use on CLI import utility (2 Replies, Read 4102 times)
easyint
Group: NOC
Post Group: Newbie
Posts: 2
Status:
Hi folks,

I'm trying to import script installations from Fantastico using the CLI import utility at /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/import.cmd.php but it's dying after processing only 10 users or so.

It appears to be memory based as if I increase the memory limit it's able to process more users - a 400MB limit allowed an import of 19 accounts.

There are a few thousand users to import on this machine so it's not going to be possible to import them with the memory usage as it is.

I have also tried the Import feature on the WHM side but it's too slow for the number of users we have - I'd like to leave the CLI script running in screen and come back to it later.

If I run strace on the CLI script I can see that, for each user it processes, it's causing an lstat64() on all files in /var/cpanel/users - perhaps the results of this are being cached or just leaked?

Is there a way to run import.cmd.php and import one user at a time? We can cope with the high memory usage for each iteration and just run it in a loop.

Thanks
Tom
IP: --   


Threads
 easyint   Excessive memory use on CLI import utility (2 Replies, Read 4102 times)
    |--  Brijesh   Hi, There is...   on February 29, 2012, 3:22 pm
    |--  easyint   Thanks, I will...   on February 29, 2012, 3:30 pm

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is May 3, 2025, 10:16 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.034