0

如果有人问这个问题,我很抱歉,但我不确定这个问题会如何措辞。我正在为我目前在 freehostia.com 上托管的 16 名学生创建一个网站,当我用 1-2 台计算机测试该网站时,它运行良好。但是当我有 16 个人同时使用它时,图像无法加载,有时连接完全失败。是我遗漏了什么还是服务器问题?

我在错误日志中一遍又一遍的唯一消息是:

[2015 年 9 月 1 日星期二 01:17:52] [错误] [客户端 xx.xxx.xxx.xx] 文件不存在:/services/users/zfh1p1/miclug/www/mathexp.org/favicon.ico

我已经用谷歌搜索并添加了一个 favicon.ico 文件,但怀疑这是我遇到的问题。提前谢谢!

4

1 回答 1

0

Depending on the resources the page loaded is linked and how your connection to the internet is configured, you would hit the maximum number of connection per hosts ( and unlikely the maximum number of connection to the server ) or even the bandwidth limit in a few second of time.

Try to make your page link to less resources, consider using a CDN, or multiple host, and if you can consider using a proxy server for the classroom.

Way to reduce the number of connection to the server :

  • Inline you javascript (include your JS into your HTML )
  • If inlining is difficult, of scruipt are shred between page consider concatenating the shared scripts into one file
  • minify you javascript
  • inline your CSS ( same as above with the CSS )
  • same strategies as the ones used for javascript
  • reduce the number of image linked in one page
  • resize you image to be of the size displayed in the page
于 2015-09-01T02:10:26.900 回答