LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Delay in SSH login & find apache server configure option (https://www.linuxquestions.org/questions/linux-server-73/delay-in-ssh-login-and-find-apache-server-configure-option-653715/)

tanveer 07-05-2008 06:01 AM

Delay in SSH login & find apache server configure option
 
Hi all,
I have a server in which it takes long time like 10/15 seconds to get the ssh login prompt. But on the same ip block of that server I can login on others instantly. The server is running java based applications like tomcat and squid with a routing of two different networks; one for internal lan and other for external.

And one more thing how to find out with what options apache was configured on default installation of apache with redhat?
Like with squid -v we can with what options squid was configured, phpinfo() function for php.
With httpd -V it gives
PHP Code:

Server compiled with....
 -
D APACHE_MPM_DIR="server/mpm/prefork"
 
-D APR_HAS_SENDFILE
 
-D APR_HAS_MMAP
 
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -
D APR_USE_SYSVSEM_SERIALIZE
 
-D APR_USE_PTHREAD_SERIALIZE
 
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 
-D APR_HAS_OTHER_CHILD
 
-D AP_HAVE_RELIABLE_PIPED_LOGS
 
-D DYNAMIC_MODULE_LIMIT=128
 
-D HTTPD_ROOT="/etc/httpd"
 
-D SUEXEC_BIN="/usr/sbin/suexec"
 
-D DEFAULT_PIDLOG="logs/httpd.pid"
 
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 
-D DEFAULT_LOCKFILE="logs/accept.lock"
 
-D DEFAULT_ERRORLOG="logs/error_log"
 
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
 
-D SERVER_CONFIG_FILE="conf/httpd.conf" 

I wanted the configure option that we use to configure when compile manually.

Thanks.

estabroo 07-05-2008 09:42 AM

Make sure your /etc/resolv.conf is pointing to real dns servers

apnicservices 07-06-2008 11:32 AM

This is nothing to do with httpd or ssh, it's your DNS config. As posted above make sure that your /etc/resolv.conf contains real working name servers and also make sure that the host can resolve it's own name, either through valid DNS lookup or preferably through /etc/hosts

tanveer 07-07-2008 06:00 AM

On that same IP block there are other servers too which have the same resolv.conf as like that one. But only this is taking around 20 secs to login after entering password in ssh.


All times are GMT -5. The time now is 04:55 AM.