Hi All,
I have a guestions about my service setup. Now I run my service in local server.
Server hardware spec:
OS: Windows Server 2008 R2 Standard
CPU:
RAM:16G
Due to the server os is Windows, so I use HyperV, then install a Ubuntu14.04 vm on HyperV. Then arrange 8G memory to Hyper VM.
My VM:
I set service successfully.
Then I get those issue.
1.Screen freeze
2.Request Timed Out
3.Server Error
Then I check console and nginx’s error log, I found a lot of internal server error and connection timed out.
Console:
Nginx Error Log:
2017/09/28 14:19:52 [error] 21467#0: *1297596 upstream timed out (110: Connection timed out) while connecting to upstream, client: 192.168.1.1, server: 127.0.0.1, request: “GET /api/method/frappe.async.get_user_info?sid=9750a396da733403e2a8874167c576d1f7cdeb568b622dc843f45240 HTTP/1.1”, upstream: “http://127.0.0.1:8000/api/method/frappe.async.get_user_info?sid=9750a396da733403e2a8874167c576d1f7cdeb568b622dc843f45240”, host: “60.250.63.115:8088”
2017/09/28 14:19:52 [error] 21467#0: *1297604 upstream timed out (110: Connection timed out) while connecting to upstream, client: 192.168.1.11, server: 127.0.0.1, request: “GET /api/method/frappe.async.get_user_info?sid=ba9de32c0692eb975a177f4c4eff7f92757e4422388913dce8b472b5 HTTP/1.1”, upstream: “http://127.0.0.1:8000/api/method/frappe.async.get_user_info?sid=ba9de32c0692eb975a177f4c4eff7f92757e4422388913dce8b472b5”, host: “192.168.1.11:8088”
2017/09/28 14:19:52 [error] 21467#0: *1297607 upstream timed out (110: Connection timed out) while connecting to upstream, client: 192.168.1.11, server: 127.0.0.1, request: “GET /api/method/frappe.async.get_user_info?sid=6e0967ef03e9d323ef1b6a622f0d79bb536c890b53f305c67b258d85 HTTP/1.1”, upstream: “http://127.0.0.1:8000/api/method/frappe.async.get_user_info?sid=6e0967ef03e9d323ef1b6a622f0d79bb536c890b53f305c67b258d85”, host: “192.168.1.11:8088”
2017/09/28 14:19:52 [crit] 21467#0: accept4() failed (24: Too many open files)
2017/09/28 14:19:52 [alert] 21467#0: *1300932 socket() failed (24: Too many open files) while connecting to upstream, client: 192.168.1.11, server: 127.0.0.1, request: “GET /api/method/frappe.async.get_user_info?sid=ba9de32c0692eb975a177f4c4eff7f92757e4422388913dce8b472b5 HTTP/1.1”, upstream: “http://127.0.0.1:8000/api/method/frappe.async.get_user_info?sid=ba9de32c0692eb975a177f4c4eff7f92757e4422388913dce8b472b5”, host: “192.168.1.11:8088”
2017/09/28 14:19:52 [error] 21467#0: *1298244 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.11, server: 127.0.0.1, request: “GET /api/method/frappe.async.get_user_info?sid=ba9de32c0692eb975a177f4c4eff7f92757e4422388913dce8b472b5 HTTP/1.1”, upstream: “http://127.0.0.1:8000/api/method/frappe.async.get_user_info?sid=ba9de32c0692eb975a177f4c4eff7f92757e4422388913dce8b472b5”, host: “192.168.1.11:8088”
2017/09/28 14:19:52 [alert] 21467#0: *1300954 socket() failed (24: Too many open files) while connecting to upstream, client: 192.168.1.11, server: 127.0.0.1, request: “GET /api/method/frappe.async.get_user_info?sid=ba9de32c0692eb975a177f4c4eff7f92757e4422388913dce8b472b5 HTTP/1.1”, upstream: “http://127.0.0.1:8000/api/method/frappe.async.get_user_info?sid=ba9de32c0692eb975a177f4c4eff7f92757e4422388913dce8b472b5”, host: “192.168.1.11:8088”
2017/09/28 14:19:52 [crit] 21467#0: accept4() failed (24: Too many open files)
So the reason is the bad network or my hardware can’t afford the client access or use HyperV have the compute performance concern or something should I try or set?
Sorry to bother all, any advise will appreciate.