The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Large zip extraction - 10GB+

Discussion in 'General Discussion' started by chetanmadaan, Jan 4, 2017.

  1. chetanmadaan

    chetanmadaan Active Member

    Joined:
    Jun 18, 2010
    Messages:
    33
    Likes Received:
    6
    Trophy Points:
    58
    Hi,

    I have a script that extracts a large zip file (10GB+) on the server in using PHP, it works sometimes and other times it doesn't.

    The zip has around 40,000+ files in the root directory and while the extraction is happening as I see the process in WHM (top). the CPU usage goes high like 80+ or something but the memory usage is down to like 0.5 or something.

    My question is that would adding more CPU (Cores) or RAM Necessary help in extracting the zip file faster?

    The load on the server in most cases is mostly never more than 0.5 or something, server has 16 GB DDR4 Ramn and 8 cores (
    Vendor GenuineIntel
    Namem Intel(R) Xeon(R) CPU E3-1230 v5 @ 3.40GHz
    Speed 1237.148 MHz
    Cache 8192 KB
    )
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,022
    Likes Received:
    1,276
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Is there a particular reason you have to use PHP to extract the zip file? PHP isn't really suited to extract files that large.

    Thank you.
     
  3. chetanmadaan

    chetanmadaan Active Member

    Joined:
    Jun 18, 2010
    Messages:
    33
    Likes Received:
    6
    Trophy Points:
    58
    Well... the script i bought does it.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,022
    Likes Received:
    1,276
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Adding more CPU or RAM could help, but it's difficult to know for sure. It's generally a better idea to find an alternative method of extracting files of that size.

    Thank you.
     
  5. chetanmadaan

    chetanmadaan Active Member

    Joined:
    Jun 18, 2010
    Messages:
    33
    Likes Received:
    6
    Trophy Points:
    58
    Hi, We went ahead and utilized a Ajax extract solution.

    Thank you for your reply.
     
    cPanelMichael likes this.
Loading...

Share This Page