Skip to content
This repository has been archived by the owner on Aug 8, 2021. It is now read-only.

server is slow af. #23

Closed
MaerF0x0 opened this issue Aug 17, 2017 · 2 comments
Closed

server is slow af. #23

MaerF0x0 opened this issue Aug 17, 2017 · 2 comments

Comments

@MaerF0x0
Copy link

Any chance you can run on a faster server/ bigger instance? Let me know if I can help. I use this daily and would love to contribute.

@rahulsom
Copy link
Owner

Most URL types seem to be responding reasonably. Its the user scoped requests for random image that are taking too long.

If there are other URL patterns that you think are unusually slow, please add them to this issue. I'll poke around to see what's slowing them down.

$ httpstat http://lgtm.in/i/CfqdWAW9q -H "Accept: application/json"
Connected to 216.239.38.21:80 from 192.168.0.101:60615

HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=VSPsES1uqI9r1EpNaR7UHQ;Path=/
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET
Access-Control-Allow-Credentials: true
X-Cloud-Trace-Context: 3da145f85c2b054c288442e33a618683;o=1
Date: Fri, 18 Aug 2017 05:42:44 GMT
Server: Google Frontend
Content-Length: 690
Cache-Control: private

Body stored in: /var/folders/36/x8ynjcxx4533f_v44b6dxzmm0000gn/T/tmpVisjQ2

  DNS Lookup   TCP Connection   Server Processing   Content Transfer
[     8ms    |      47ms      |       198ms       |        1ms       ]
             |                |                   |                  |
    namelookup:8ms            |                   |                  |
                        connect:55ms              |                  |
                                      starttransfer:253ms            |
                                                                 total:254ms


$ httpstat http://lgtm.in/g -H "Accept: application/json"
Connected to 216.239.38.21:80 from 192.168.0.101:60617

HTTP/1.1 302 Found
Content-Type: text/html; charset=utf-8
Location: http://lgtm.in/i/cYtYqlh3q
X-Cloud-Trace-Context: 40512bce676ab1311a893c1a1f10c81e
Date: Fri, 18 Aug 2017 05:42:47 GMT
Server: Google Frontend
Content-Length: 0

Body stored in: /var/folders/36/x8ynjcxx4533f_v44b6dxzmm0000gn/T/tmpKXLfLR

  DNS Lookup   TCP Connection   Server Processing   Content Transfer
[     5ms    |      46ms      |       336ms       |        1ms       ]
             |                |                   |                  |
    namelookup:5ms            |                   |                  |
                        connect:51ms              |                  |
                                      starttransfer:387ms            |
                                                                 total:388ms


$ httpstat http://lgtm.in/g/rahulsom -H "Accept: application/json"
Connected to 216.239.38.21:80 from 192.168.0.101:60618

HTTP/1.1 302 Found
Content-Type: text/html; charset=utf-8
Location: http://lgtm.in/i/wYcwHPnws
X-Cloud-Trace-Context: bb65abe5e8d298ea7c05006507ad25fa
Date: Fri, 18 Aug 2017 05:42:58 GMT
Server: Google Frontend
Content-Length: 0

Body stored in: /var/folders/36/x8ynjcxx4533f_v44b6dxzmm0000gn/T/tmpJZMTK1

  DNS Lookup   TCP Connection   Server Processing   Content Transfer
[     4ms    |      45ms      |      7642ms       |        1ms       ]
             |                |                   |                  |
    namelookup:4ms            |                   |                  |
                        connect:49ms              |                  |
                                      starttransfer:7691ms           |
                                                                 total:7692ms

@rahulsom
Copy link
Owner

The user scoped random requests have been sped up by this commit - 5b9c6c7

Please let me know if this has improved performance for you.

$ httpstat http://lgtm.in/g/rahulsom -H "Accept: application/json"
Connected to 216.239.38.21:80 from 192.168.0.101:62176

HTTP/1.1 302 Found
Content-Type: text/html; charset=utf-8
Location: http://lgtm.in/i/UqJiuVcfq
X-Cloud-Trace-Context: 16ad0c4edf0e8c7575ee025211a99592;o=1
Date: Fri, 18 Aug 2017 07:12:03 GMT
Server: Google Frontend
Content-Length: 0

Body stored in: /var/folders/36/x8ynjcxx4533f_v44b6dxzmm0000gn/T/tmpvqBCBJ

  DNS Lookup   TCP Connection   Server Processing   Content Transfer
[     4ms    |      47ms      |       313ms       |        0ms       ]
             |                |                   |                  |
    namelookup:4ms            |                   |                  |
                        connect:51ms              |                  |
                                      starttransfer:364ms            |
                                                                 total:364ms

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants