LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   web browsers slow, little memory free, pleae review output from top (http://www.linuxquestions.org/questions/linux-newbie-8/web-browsers-slow-little-memory-free-pleae-review-output-from-top-198095/)

jeffreybluml 06-26-2004 06:19 PM

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?


PLEASE ADVISE!!!!!!!


top - 18:12:05 up 9:14, 3 users, load average: 0.09, 0.16, 0.13
Tasks: 110 total, 1 running, 109 sleeping, 0 stopped, 0 zombie
Cpu(s): 3.0% us, 0.7% sy, 0.0% ni, 96.0% id, 0.0% wa, 0.3% hi, 0.0% si
Mem: 515632k total, 471908k used, 43724k free, 34788k buffers
Swap: 511520k total, 32k used, 511488k free, 257504k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6096 jeff 15 0 92328 29m 27m S 0.0 5.9 0:14.22 firefox-bin
1920 root 15 0 96200 27m 75m S 1.3 5.4 7:26.17 X
3052 jeff 16 0 28088 25m 4308 S 0.0 5.0 0:01.52 gconfd-2
4335 jeff 15 0 39680 25m 35m S 0.0 5.0 0:07.44 kdeinit
4369 jeff 15 0 97252 25m 25m S 0.0 5.0 0:06.85 evolution
4370 jeff 15 0 36260 24m 30m S 0.0 5.0 0:09.55 kdeinit
4338 jeff 15 0 40332 23m 36m S 0.3 4.7 0:08.44 kdeinit
4375 jeff 16 0 34912 23m 30m S 0.0 4.7 0:00.99 kdeinit
4329 jeff 15 0 37964 20m 34m S 0.0 4.1 0:01.06 kdeinit
4374 jeff 15 0 34068 20m 30m S 0.3 4.0 0:02.55 kdeinit
4371 jeff 15 0 33884 19m 30m S 1.0 3.9 0:00.81 kdeinit
4383 jeff 16 0 33508 19m 30m S 0.0 3.9 0:01.20 korgac
4333 jeff 15 0 31932 18m 28m S 0.0 3.7 0:02.92 kdeinit
4314 jeff 15 0 33076 18m 29m S 0.0 3.7 0:01.81 kdeinit
4744 jeff 16 0 32124 18m 28m S 0.0 3.7 0:00.19 kdeinit
4365 jeff 15 0 31256 17m 28m S 0.0 3.5 0:00.91 kdeinit
4358 jeff 16 0 30868 16m 27m S 0.0 3.3 0:01.54 kweatherservice
4332 jeff 16 0 30916 16m 27m S 0.0 3.3 0:00.17 kdeinit
4327 jeff 16 0 30616 16m 27m S 0.0 3.2 0:00.16 kdeinit
4311 jeff 16 0 30496 15m 28m S 0.0 3.1 0:00.12 kdeinit
6156 jeff 16 0 30208 14m 28m S 0.0 3.0 0:00.02 kdeinit
4950 jeff 16 0 29964 14m 28m S 0.0 2.9 0:00.01 kdeinit
4309 jeff 16 0 28688 13m 27m S 0.0 2.8 0:00.31 kdeinit
4306 jeff 17 0 28784 13m 27m S 0.0 2.7 0:00.17 kdeinit
5957 jeff 16 0 21748 10m 20m S 0.0 2.1 0:00.00 kdesud
2706 apache 16 0 11792 8460 8600 S 0.0 1.6 0:00.30 httpd2
3185 apache 15 0 11780 8448 8600 S 0.0 1.6 0:00.31 httpd2
3190 apache 16 0 11360 7784 8600 S 0.0 1.5 0:00.33 httpd2
2703 apache 16 0 11360 7780 8600 S 0.0 1.5 0:00.29 httpd2
2704 apache 15 0 11360 7776 8600 S 0.0 1.5 0:00.28 httpd2
2702 apache 15 0 11360 7772 8600 S 0.0 1.5 0:00.26 httpd2
2705 apache 15 0 11360 7756 8600 S 0.0 1.5 0:00.24 httpd2
3430 apache 16 0 11360 7756 8600 S 0.0 1.5 0:00.19 httpd2
4050 apache 16 0 11360 7740 8600 S 0.0 1.5 0:00.14 httpd2
4368 jeff 16 0 22176 7716 16m S 0.0 1.5 0:00.40 evolution-alarm
6146 apache 16 0 11360 7584 8600 S 0.0 1.5 0:00.00 httpd2
2694 root 16 0 11360 7544 8600 S 0.0 1.5 0:00.24 httpd2
4325 jeff 15 0 12436 7332 11m S 0.0 1.4 0:00.79 artsd
3140 jeff 16 0 25180 6728 20m S 0.0 1.3 0:00.22 evolution-womba
4285 jeff 16 0 14492 6148 13m S 0.0 1.2 0:05.66 magicdev
1772 xfs 16 0 5348 3800 2512 S 0.0 0.7 0:00.09 xfs
2516 root 16 0 8276 3064 6652 S 0.0 0.6 0:00.00 smbd
3059 jeff 16 0 5012 2656 4528 S 0.0 0.5 0:00.13 bonobo-activati
2077 root 16 0 5504 2340 3552 S 0.0 0.5 0:00.14 cupsd
5549 jeff 15 0 6436 2240 5844 S 0.0 0.4 0:00.02 sshd
2701 root 17 0 4024 2200 3012 S 0.0 0.4 0:00.02 advxsplitlogfil
2448 nobody 16 0 4516 2180 3808 S 0.0 0.4 0:00.00 proftpd
4315 jeff 16 0 3496 2012 2648 S 0.0 0.4 0:07.81 fam
2526 root 16 0 6140 2008 5000 S 0.0 0.4 0:00.14 nmbd
5547 root 16 0 6304 1984 5844 S 0.0 0.4 0:00.01 sshd
1807 root 15 0 5996 1900 4724 S 0.0 0.4 0:00.00 mount.smbfs
4130 root 18 0 3600 1700 3148 S 0.0 0.3 0:00.03 mdkkdm
4384 jeff 15 0 2752 1600 2344 S 0.0 0.3 0:00.04 bash
4872 root 15 0 2752 1600 2344 S 0.0 0.3 0:00.07 bash



All comments and suggestions appreciated!!!!

Bruce Hill 06-26-2004 07:03 PM

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.

jeffreybluml 06-26-2004 07:27 PM

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, then two others that I believe to be correct, I think they're 207.69.188.185 and .186

Does this sound correct?

Anything other ideas?

Bruce Hill 06-26-2004 07:40 PM

Quote:

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...

jeffreybluml 06-26-2004 11:42 PM

Okay, got it fixed. I added the following to /etc/resolv.conf:

domainserver 192.168.1.1

and everything is as it should be!!

Guess I needed to set my router to be my domainserver...

Thanks for the help!!!!!

robby737 06-27-2004 10:07 AM

ive got the same problem with a stand alone box. I am a newbie and would have to be taken step by step. How do I fix mine

jeffreybluml 06-27-2004 11:08 AM

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:

# ifconfig -a

and look for the lines that resemble this:

eth0 Link encap:Ethernet HWaddr 00:50:2C:02:4E:1D
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:2cff:fe02:4e1d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:71956 errors:0 dropped:0 overruns:0 frame:0
TX packets:73023 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:43869027 (41.8 Mb) TX bytes:18851310 (17.9 Mb)
Interrupt:11 Base address:0xe800


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

Thanks

robby737 06-27-2004 01:11 PM

Thank you very much. I will try this tonight when I get home and will let you know how it turned out

robby737 06-27-2004 01:21 PM

Oh yeah, dumb question to follow, do I type the "#" at the beginning as shown and what does it mean

jeffreybluml 06-27-2004 01:44 PM

no, the # just means that you are root when entering the commands. You do not type it...


Good luck,

robby737 06-27-2004 03:28 PM

Thanks again. I will update tommorrow

gtzpower 06-27-2004 04:47 PM

I have noticed that resolving hosts on mdk10 has been slow for me too. I will give this a shot when i get home and post the results.

jeffreybluml 06-27-2004 05:01 PM

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.

Good luck everybody!!!!

Bruce Hill 06-27-2004 05:23 PM

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.

robby737 06-28-2004 10:03 AM

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.

Thanks for all the help


All times are GMT -5. The time now is 01:09 PM.