chetanmadaan

Active Member
Jun 18, 2010
41
7
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
)
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
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.