LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-04-2010, 03:29 AM   #1
Geert86
Member
 
Registered: Jul 2008
Posts: 46

Rep: Reputation: 15
Gnome desktop harming server performance?


Hi all,

On my local apache web server I had installed gnome desktop, because I wanted it to use as a TV. But when I installed the gnome desktop, my requests for web pages became terribly slow (4-5 seconds!). When I deinstalled the gnome desktop, the request where fast again.
But I still want to watch TV on my server, so I wander if people know why the gnome desktop harms the performance of the server?

Best regards,

Geert

PS. with gnome desktop, ping was <1 ms, samba server worked like charm, wget localhost was <1 ms, but for some reason, when tried to get a webpage from my webserver to a remote machine, it took seriously 4-5 seconds to load a page.
 
Old 02-04-2010, 08:04 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
GNOME is a massive load to drop on a server. You haven't specified your hardware, but if you aren't running relatively modern hardware, GNOME is going to be a pain.

Frankly, you shouldn't be trying to use a web server as a media center. You can either do one or the other well, if you are trying to do both on the same machine, performance will suffer.
 
Old 02-04-2010, 08:26 PM   #3
kschmitt
Member
 
Registered: Jul 2009
Location: Chicago Suburbs
Distribution: Crux, CentOS, RHEL, Ubuntu
Posts: 96

Rep: Reputation: 23
Quote:
Originally Posted by Geert86 View Post
Hi all,
PS. with gnome desktop, ping was <1 ms, samba server worked like charm, wget localhost was <1 ms, but for some reason, when tried to get a webpage from my webserver to a remote machine, it took seriously 4-5 seconds to load a page.
That's the interesting part there... Like the previous poster, gnome is a huge thing to dump on a system, but it seems odd. No, maybe not a good idea to try and run gnome on a dedicated server, but at work we have to do it sometimes (in dev environments), and it just doesn't cause that sort of problem. Up until November I had an old P4 server used to compile and test code for developers, and it has 5 constantly running gnome sessions (in VNC). It still delivered pages quick enough for people not to complain. WAY quicker than 4-5 seconds.

So, questions:

Are you saying it took 4-5 seconds to load a static page or a dynamic page?

What distro are you using?

What hardware (just the basics, number of cpus+speed, memory, type of discs your running (ide, sata, scsi)).

Did you switch runlevels to use X, or start X from your standard runlevel? Different distros sometimes use different numbers, but the standards are 3 for multi-user no graphics, 5 for multi-user with graphics.


--Kyle
 
Old 02-05-2010, 03:09 AM   #4
Geert86
Member
 
Registered: Jul 2008
Posts: 46

Original Poster
Rep: Reputation: 15
Ok, I will post my specs, it is exactly the following notbook: http://w3.tue.nl/en/services/dienst_...neration_2004/

In short: Intel Pentium M 1.7 GHz
768 MB Memory
60 GB harddisk IDE

My Distro is debian lenny

It took 4-5 seconds on both static and dynamic pages.

I am not sure about the runlevels. I did not change it myself.

So what do you say about the specs?
 
Old 02-05-2010, 03:19 PM   #5
kschmitt
Member
 
Registered: Jul 2009
Location: Chicago Suburbs
Distribution: Crux, CentOS, RHEL, Ubuntu
Posts: 96

Rep: Reputation: 23
That's powerful enough that this just shouldn't happen.

Create a .xinitrc file with one line that says xterm, then startx. X will come up with an xterm and no controls. No gnome, nothing else.

Now test the response time of your web-server. If it's fine, gnome is the culprit, if not, your X driver.

Check to make sure gnome isn't running some personal-web server, not messing with your /etc/resolv.conf, and not turning on a firewall. Most of the problems with gnome happen when it tries to take over your OS instead of just be a desktop.

If you used the stock debian packages, post your question in a debian forum. Someone else probably ran into this problem before.

Good luck!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure VNC server to load up the complete GNOME desktop? tlawlessrr Linux - Newbie 8 03-21-2014 08:21 AM
[Debian]TightVnc Server Problem-Gnome Remote Desktop dj32 Linux - Newbie 2 12-28-2009 03:52 AM
how to install gnome power manager in ubuntu server 9.04 under lxde desktop Ron_Beltran Linux - Laptop and Netbook 2 10-27-2009 08:39 PM
LXer: Changing UIDs and GIDs without harming your server LXer Syndicated Linux News 0 03-07-2008 06:10 PM
vmware performance on a debian gnome desktop mipia Linux - Desktop 2 03-05-2007 08:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration