为了服务器的正常运行,保证不会因为一个账户过多占用系统资源进而影响到其他用户的使用,Hostgator主机会对每个账户进行系统资源使用的限制。不过,对于这个限制,网上流传了很多说法,但经过小鳄鱼的查询及确认,终于在HostGator官网上找到了关于文件上限的官方解释,点击这里查看

HostGator对虚拟主机,VPS和独立主机有不同的文件数要求:

1.虚拟主机(包括转售主机)最多允许存放250000(25万)个文件,此外,当存放文件数量达到10万个之后,HostGator不再对主机进行每周备份,切记!

2.VPS,文件数限制为1,000,000(100万)个。

3.独立主机无文件数限制。

如果你用的是主流的PHP程序的话(请注意Hostgator不支持ASP程序),那么大多数你的数据都存在在数据库里,并不占用文件数,只有图片附件才占用这个数字,所以一般是不太容易超过的,例如,Wordpress安装完后,大概会有800个左右的文件,搞上10个小型站群也不过8000个文件数(不考虑图片的情况下)。有的朋友就会说,那这个限制和官方说的无限空间不是冲突了吗?其实是不冲突的,Hostgator只说限制了你的文件数,没有限制你的文件大小,你弄个几G的文件上去也只算一个的:

For example, a DVD image (say, 4.5gb) only counts as one inode, or file.

另外就是系统限制。不能用25%或者超过25%的系统资源超过90秒以上,这个限制如果不是提供下载(在虚拟主机上提供下载是相当危险的)的话,最大的可能原因是某个脚本过度运行或者卡死,这种情况多出现在采集过程中——在瞬间进行采、写、发的过程。正常情况下这么大的限制——25%,一个网站是很难到达的,所以推荐你使用已经很成熟的网站程序如joomla、worpdress等,然后最好不要采集。
Hostgator还给用户一些建议:

User may not:
1) Use 25% or more of system resources for longer then 90 seconds. There are numerous activities that could cause such problems; these include: CGI scripts, FTP, PHP, HTTP, etc.
2) Run stand-alone, unattended server-side processes at any point in time on the server. This includes any and all daemons, such as IRCD.
3) Run any type of web spider or indexer (including Google Cash / AdSpy) on shared servers.
4) Run any software that interfaces with an IRC (Internet Relay Chat) network.
5) Run any bit torrent application, tracker, or client. You may link to legal torrents off-site, but may not host or store them on our shared servers.
6) Participate in any file-sharing/peer-to-peer activities
7) Run any gaming servers such as counter-strike, half-life, battlefield1942, etc
8) Run cron entries with intervals of less than 15 minutes.

Users are strongly recommended to:
9) When using PHP include functions for including a local file, include the local file rather than the URL. Instead of include(“http://yourdomain.com/include.php”) use include(“include.php”)
10) To help reduce usage, do not force html to handle server-side code (like php and shtml).
11) Only use https protocol when necessary; encrypting and decrypting communications is noticeably more CPU-intensive than unencrypted communications.

总的来说,尽量减少网站对系统资源的使用就是了。

访问Hostgator官方网站