Fedora Linux Support Community & Resources Center
  #1  
Old 19th May 2006, 05:43 PM
dunadan67 Offline
Registered User
 
Join Date: May 2006
Posts: 3
FC5: Problem Slow PGSQL Connection, SSH connection

First time posting here, my apologies for any ambiguities.

I have an installation of Fedora Core 5, 2.6.16.-1.2111_FC5, and I am running an httpd webserver as well as a postgresql database server.

If using the server machine, I use a webbrowser (i.e. Firefox) to connect to any site, such as google.com, it connects very slowly.
If from a different computer, I load a standard html webpage hosted on my server, it loads very quickly.
If I load a webpage that uses php to connect to the pgsql server from a different computer, it loads extremely slowly.
Additionally, if I use ssh to remotely log-in to my server, it is very slow.

If I boot into Windows on the machine (it is set up as dual boot), there is absolutely no slow-down with loading google.com or other websites.

The server is located on the university network which is pretty speedy. It acquires its DNS info, etc., using DHCP as required by the campus computing people.

--

The server is a relatively new Dell desktop, with 1 gig of ram.

--

Let me know what more information you might need if you think you can help me troubleshoot this, thanks!
Reply With Quote
  #2  
Old 19th May 2006, 06:05 PM
SHtRO Offline
Registered User
 
Join Date: Jul 2005
Posts: 178
This sounds like your server is under load. Some things to look at:

uptime
ps -eal
top

"top" can sort by CPU and memory. Also run a system-monitor from the desktop to look at the various guages in real time (you can see swap vs. shared vs. free RAM for instance). I'm leaning to RAM usage or a similar problem because of your complaint of PHP being slow, but thrashing (excessive memory page swaps) can cause this as well. Though having 1GB sort of calls this into question.

I have this problem with a busy server, since there is a lot of overhead in running a browser.
__________________
Imagination is more important than knowledge.
--Albert Einstein
Reply With Quote
  #3  
Old 19th May 2006, 08:51 PM
dunadan67 Offline
Registered User
 
Join Date: May 2006
Posts: 3
I ran the command top.

top - up 8 days, 1 user, load average: 0.00, 0.00, 0.00
Tasks: 78 total, 2 running, 76 sleeping, 0 stopped, 0 zombie.
Cpu(s): 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 1034412k total, 896484k used, 137928k free, 134276 buffers
Swap: 3558356k total, 0k used, 3558256k free, 583828k cached

I noticed that a lot of my memory is being used: ~900000k out of 1034412k

I have 3558356k total swap space, of which 0k is being used.

Why isn't my swap space being used?
Reply With Quote
  #4  
Old 19th May 2006, 09:04 PM
SHtRO Offline
Registered User
 
Join Date: Jul 2005
Posts: 178
Linux optimizes shared memory usage. It is normal to have a lot of memory used with no swap. This is an indication of low load, since it doesn't use any swap space. Typically 0% swap with 90% utilization of RAM is normal except under load. Linux will keep shared libs around for a while once loaded so they don't have to reload (why some apps start restart faster than their first run).

So your problem is neither CPU nor memory at the moment. I would run top on the server console and watch it while you do your other (slow-type) activiteis and see if you notice anything odd from a utilitzation standpoint. If the machine is fast and not under load, and there is nothing odd, then you might checkout your network for collisions or routing local requests via net instead of (localhost) 127.0.0.1 (which uses unix domain sockets instead of TCP/IP, typically, and is much faster).

I suggest looking at the network for efficiency problems because the activities you say impose slowness are (mostly) using network communications.
__________________
Imagination is more important than knowledge.
--Albert Einstein
Reply With Quote
  #5  
Old 5th June 2006, 09:42 PM
dunadan67 Offline
Registered User
 
Join Date: May 2006
Posts: 3
Update

I did a clean install of FC5, same problems. I noticed that boot was pretty slow too, as well as running any application, such as firefox, opening a terminal, etc. Also, the fact it ran fine in Windows still bugged me.

So, I unplugged my network cable, and rebooted.

Boot was much much faster. Once booted, application load speed was much faster.

If I plug the ethernet cable in, everything is laggy as before.

Is this a network card problem?

I am running a Dell Optiplex GX260, with an Intel Gigabit Integrated Network Card.
Reply With Quote
Reply

Tags
connection, fc5, pgsql, problem, slow, ssh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH slow connection satyajit.r Using Fedora 2 13th October 2008 05:44 AM
Internet connection slow, LAN connection fine tameboy Servers & Networking 45 19th July 2008 07:10 PM
[newbie] myodbc problem (slow connection from clients) Ministry Servers & Networking 0 12th December 2007 12:29 PM
Slow connection wodefey Servers & Networking 2 18th September 2006 01:38 AM
slow 56k connection toru Using Fedora 2 4th July 2004 11:03 PM


Current GMT-time: 23:50 (Wednesday, 16-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat