question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

investigate virtualhost.defaultHostname

See original GitHub issue

As far as poking around can tell, SystemInfo.hostname() is invoked only to satisfy when http2 is in use and a client or server didn’t set the authority/hostname key. At the moment, this literally invokes a shell command, slowing server startup, by default.

Ex.

2019-10-21 20:48:57:164 [main] INFO SystemInfo - Hostname: macbook-pro-8.local (from 'hostname' command)

Somewhat similar to #2184, I wonder if this could be revisited, if it is pulling its weight, or if it could be safe to defer if it is.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
codefromthecryptcommented, Oct 21, 2019

PS “1/3 (500-600ms) Armeria” isn’t to say it is spending too much time, almost all of our slim server is armeria. It is an interesting idea to see if zipkin slim could get to 1s, but in this case unless armeria can produce negative startup time, reducing here is not enough.

0reactions
trustincommented, Nov 5, 2019

Nice finding! Let me close it then. 😆

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apache Default/Catch-All Virtual Host? - Server Fault
When using name-based virtual hosts, the first virtual host configuration loaded will be the default (Source: Apache ...
Read more >
Apache default VirtualHost - Stack Overflow
I inherited a strange combination of IP address-based virtual hosts and * vhosts (not assigned/catch all IP addresses) based virtual hosts in this...
Read more >
plone-documentation/manage.po at master - GitHub
"If you want to map Varnish backend directly to Plone-as-a-virtualhost (i.e. " ... "By default, host name is correctly delivered from Apache to...
Read more >
15 Changing Oracle Fusion Middleware Network Configurations
Hosts in DHCP mode should not use the default host name ( localhost.localdomain ). ... If you put the localhost in admin.conf in...
Read more >
CWWKT - IBM
Ensure that the configured defaultHostName value refers to an active network interface. CWWKT0024W: The default virtual host (default_host) can not be disabled.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found