Forum Moderators: bakedjake

Message Too Old, No Replies

Command line operation running slow.

Linux

         

mack

10:16 pm on May 17, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I have a systen running linux and all seams to be running perfect until I use a console.

Log in as: root
[20 seconds later]
root@1xx.1x8.1.x's password

If I start apache using...

apachectl start

it works almost right away
if I start mysql using...
safe_mysqld --user=root &&

it stalls.. then if i
cd
it responds by telling me it is starting the mysql database.

This has happened pretty recently. Within KDE everything seams to be running pefectly well

I an almost ready to do a re-install at least that way I knwo it will solve the issue.

Does anyone have any other ideas what may be cauing this?

Thanks in advance

Mack.

Sharper

11:20 pm on May 17, 2004 (gmt 0)

10+ Year Member



It is slow between letters, or between lines? If letters, then perhaps the tty definition for your console is messed up somehow and is running at a much slower baud rate?

Is this a physical keyboard/monitor console or a serial console attached to something else or a network console? If one of the latter, could it be an issue with that device or the communications to it?

Is everything perfectly ok when you are using SSH? Conversely, if you log in as a user other than root from the console, does it still act slow?

If SSH is also slow, is your reverse DNS working correctly so that the delay isn't from ident?

More info, please. :)

outrun

7:21 am on May 18, 2004 (gmt 0)

10+ Year Member



Its been awhile since I have done this but isnt the correct way to start mysql

safe_mysqld --user=root &

as opposed to

safe_mysqld --user=root &&

regards,
Mark

py9jmas

8:10 am on May 18, 2004 (gmt 0)

10+ Year Member



Could this not be a DNS issue? The pause for the login prompt would be login trying to resolve your IP number (a private 192.168.x.x by any chance?) to your host name. MySQL probably tries to resolve IPs/hostname on startup as well.

Not sure why Apache starts quickly, check its error_log to see if it's complaining about resolving things there.

The fix would be to check /etc/resolv.conf for the proper DNS servers and to add

1xx.1x8.1.x host.example.com host

to /etc/hosts

Jon.

mack

8:36 am on May 18, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



It's not slow between letters, just commands.

The commands are being issed through putty on a WinXP machine in another room.

Lan set us is as follows...

Router to up link port of 4 port hub, other three ports to go computers. 2 goto linux systems, one goes to winxp box.

The plot thickens... the same problem now exists on both linux boxes! This makes me think that either the hub or router is at fault. But if I disconnect all network equipment, the problem is still there, using direct shell through console.

I will try a clean re-install on both systems and see how it works out this time.

Mack.