Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache performance ?.. on linux...

Status
Not open for further replies.

itcamefrommars

IS-IT--Management
May 4, 2001
66
US
I am only a beginner with apache on linux.

i am using redhat 7.1 with apache 1.3.19.
running a mysql db with a php interface.



i connect with a windows 2000pro laptop with IE on the local network by putting the ip of the webserver in the address line. that works fine.

using win98 on the same local network... there is a major lag.

anyone have any suggestions on where to start figuring out this performance issue?
 
look in your config files and check the following

MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150

the values here are ok defaults. explanation of these are in the config files and is the most likely cause but i can't see the red-hat defaults being incorrect.

maybe it's a network problem :)
 
the conf file is ok.
i thinkthough thatmy dns and related confs might be screwy.
i can't browse it by thedomain...
unless im outsideof the local net.
on the subnet i have to use the ip.
i don't know where to even start.
any other suggestions?
thanks to mrtom foryour response!
 
It's not a performance issue at all. This lag most likely results from your server trying to do a reverse lookup on the IP address (searching for your machine's hostname), since your internal server probably has no DNS handling the other hosts on the network, it keeps looking for a few seconds, fails, and then gives up and just uses the IP address.

Now on your Linux server, you must have given it a hostname and a domain, even if its not a fully qualified external domain name.

If you look for a file named 'hosts.sam' on your Win98 machine, and open it up in a text editor, you will see something like:
Code:
# Copyright (c) 1998 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP stack for Windows98
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       localhost

Just add another line to this, with your internal server's IP address and hostname. For example, if the hostname is 'myserver', and the internal IP is 10.1.1.50, then you would add
Code:
10.1.1.50       myserver

This means that to surf your local server, you can now just enter ' in the browser window.

On your Linux server, you would just do the reverse in the /etc/hosts file and add an entry for the other local machines on the network. This way, you can refer to all machines by their hostnames, without even worrying about IP addresses or a domain. Since you are just talking about a couple of machines here, this is easier than setting up an internal DNS server. Your system will now seem to respond instantaneously.

HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top