web browsers slow, little memory free, pleae review output from top
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
web browsers slow, little memory free, pleae review output from top
I'm trying to get to the bottom of why firefox, mozilla, konqueror, and epiphany are ALL loading webpages rather slowly. For instance, I can hit the same link on both my Mandrake 10 box running firefox (r any of the others) and at the same time click the link on my windows box running firefox. Well, the windows box returns the page in all of 6 to 7 seconds, while the Mandrake box takes roughly 40 to 50 seconds. It is not loading bit sof the page at a time or anything, it just takes that long until the page appears at all. So, I thought I'd try to find out what services I have running, and then hopefully decide which I do not need and how to stop them from starting at boot again. Kinda flying blind in my venture, but I noticed many many instances of kdeinit from the "top" command, and of my 512M of RAM I usually have 480-500M of it being used at any given time. Here is the top portion from "top"... what's with all the kdeinit and httpd2 entries? I'm running a webserver, but is it normal to have that many instances?
Until someone smarter comes along - this sounds rather like a DNS resolution issue. Have you checked how those names are resolved?
For instance, in Slack if I configure the network during the install, it requires me to enter a domain name, but my ISP doesn't use this. So whatever I enter is put into the /etc/resolv.conf file as a domain to search, before the actual nameserver(s). If that search isn't the proper domain, it's going to cause a delay while your browser searches before it goes to the nameserver. I only post this because I had the same issue until I removed that domain name, and now that I only have the 2 proper nameserver ip addresses, it begins to load immediately.
No good. I did in fact have an entry in there, and removed it, leaving only the nameserver entries. They are my loopback address first, then two others that I believe to be correct, I think they're 207.69.188.185 and .186
Originally posted by jeffreybluml Thanks for replying.
No good. I did in fact have an entry in there, and removed it, leaving only the nameserver entries. They are my loopback address first,
Anything other ideas?
I am not the expert here, but I don't think you need your loopback address. Since you know how to change the file, comment it out and try without it. Don't forget to restart your services before checking. Then you can uncomment it back in if you want.
Quote:
then two others that I believe to be correct, I think they're 207.69.188.185 and .186
Does this sound correct?
Code:
bash-2.05b$ whois 207.69.188.185
OrgName: EarthLink, Inc.
OrgID: ERMS
Address: 1375 PEACHTREE ST, LEVEL A
City: ATLANTA
StateProv: GA
PostalCode: 30309
Country: US
NetRange: 207.69.0.0 - 207.69.255.255
CIDR: 207.69.0.0/16
NetName: EARTHLINK2000-D
NetHandle: NET-207-69-0-0-1
Parent: NET-207-0-0-0-0
NetType: Direct Allocation
NameServer: ITCHY.MINDSPRING.NET
NameServer: SCRATCHY.MINDSPRING.NET
Comment:
RegDate: 2000-04-20
Updated: 2000-04-20
TechHandle: DAE4-ARIN
TechName: Domain Administrator, Administrator
TechPhone: +1-404-815-0770
TechEmail: arinpoc@corp.earthlink.net
OrgAbuseHandle: ABUSE60-ARIN
OrgAbuseName: ABUSE TEAM
OrgAbusePhone: +1-404-815-0770
OrgAbuseEmail: abuse@abuse.earthlink.net
OrgTechHandle: ELNK-ORG-ARIN
OrgTechName: EarthLink, Inc.
OrgTechPhone: +1-404-815-0770
OrgTechEmail: arin_tech@lists.corp.earthlink.net
# ARIN WHOIS database, last updated 2004-06-25 19:10
# Enter ? for additional hints on searching ARIN's WHOIS database.
You tell us if this is the correct nameserver...
If you got a Windoze box running you can issue
C:\> ipconfig /all
and that will show your nameservers. Sorry I don't know how to do it from *nix...
Last edited by Bruce Hill; 06-26-2004 at 07:41 PM.
Well, I may or may not have fixed mine, it turns out. Still trying to decide. SOme of the sites are faster now, but others are still rather slow. For instance, fox news just took 29 seconds to load on the linux box, 8 seconds on the win box. Perhaps it's just foxnews.com, as ti does have lots of flash ads and java crap to load. I don't know, some of you kind people shuold go there and tell me how quickly yours loads.
One thing I noticed, no matter how I try to remove the loopback address from my /etc/resolv.conf, if I delete it or comment it out, it gets re-written to it as soon as I restart my services. Why?
Another thing, I was mistaken in what I entered into /etc/resolv.conf. Rather than...
domainserver 192.168.1.1
it was
domain 192.168.1.1
Now, to help robby737 get this far...
Please do the following. Open a terminal and change to root if you can. If you don't know how to do this, you just type "su" and then hit enter, and then enter the root password when prompted and hit enter...
Perform the following:
# vi /etc/resolv.conf
Move your cursor (with the arrow keys) to the line that says "nameserver 127.0.0.1" and hit the "d" key twice to delete the line. Now, hit the "i" key to begin insert mode, hit enter to create a new line, up arrow to get cursor to this new line, and typr the following...
domain 192.168.1.1
Now, this only applies if the LAN IP of your router (assuming you have a router) is 192.168.1.1. Many are, but certainly not all. Lets try this (only way I can figure out how) to get your info. Open a new terminal and type:
In the second line of that, you see the "inet addr:192.168.1.101." That is the ip assigned by my router. YOur routers ip will be the first three sets of numbers, with the final set being 1. Just as my ip is 192.168.1.101, router 192.168.1.1...get it? There are of course exceptions to this rule, but you'll just have to let us know if you're one of them.
Now that youve got your routers ip, replace the numbers after "domain" that you just added to /etc/resolv.conf in the other terminal. Once you've got that line made, hit the esc key, then type a colon ( and wq, like this
:wq
and hit enter. This writes the file and quits the editor. now, as root, type
service -R
and hit enter. If you get command not found, type
/sbin/service -R
this will restart all of your services. Might want to watch this process, to see if any fail to start.
Now see if your internet is better. PLEASE let us know if this worked for you. I'm still skeptical as to whether or not mine is better or not...it may just be that I"m impossible to satisfy...
Thanks for helping folks, let me know if you try getting to foxnews.com and how quick it is/isnt
Okay, after re-reading the reply from Chinaman, I pulled my head out of my rear and got this right.
The very first line in my /etc/resolv.conf was:
search earthlink.net local
Well, I changed this to read:
search 207.69.188.185
and foxnews, as well as all other sites, comes up in under 8 seconds. That is the IP of earthlink's nameserver, and was the first in the list of nameservers in this file, but adding it to the search line seems to have fixed things.
Might I add that in your post describing how to edit the file you suggest the editor vi, which to me is hard for a newbie. Maybe something like kedit, gedit, pico, or nano will be easier for newbies to start with. If vi gives you problems, just insert one of those where you previously had vi and see which you like better.
Ok I did what you said and I have a fealing I dont have a router set up. With your precise instructions vi seamed ok to use. when I did # vi /etc/resolv.conf there was no 127.0.0.1 there was 2 lines of nameserver 65.38.xxx.x then 16 lines of #nameserver 65.38.xxx.x #temp entry then 2 lines similar to the top 2 lines.
With # ifconfig -a I got the following:
link encap: local loopback (on fisrt line)
inet add: 127.0.0.0 mask 255.0.0.0 (on second line)
I dont think I have the dial up set up right. When in the configuration for the internet connection where it asks for dial up IP parameters and has 2 selections for auto and manual I put it in auto because I dont know what it is. Also there is another window for gateway I also selected auto not manual here as well becuase I dont know what it is. I do have the dns server addresses, username and passwords in there thats pretty easy. There is a check box in the setup that says set host name from IP. I dont know what to do with that either.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.