Slower slower dead


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Slower slower dead
# 1  
Old 09-14-2001
Slower slower dead

I am running RH 7.1 and i am always remotely logged in working on a database. I got php and mysql running and then as the each week goes my rsh, or secure telnet, and any other remote session slows to become extremly choppy. If i am at teh box my i am fine the computer is not bogged down at all, my webpages still load just as fast, but my lose my remote connection. It took 3 minutes just to type in shutdown -r now, but now it is fine.
# 2  
Old 09-14-2001
You may have a process running with a memory leak. So, you need to isolate the leak by finding a way to take periodic snapshots of the process table and write them to a file with a time stamp. Then, when you reboot the machine, you can log in and find the offending process.

ps with right right switches, exeuted from the crontab, and output redirected properly, will do the trick.

On the other hand, you can just login when the system has been running for a while and manually check your processes. You may easily find it that way if you can get in, remotely.
# 3  
Old 09-14-2001
How do I know what is a memory leak?? Is that just where more and more processes open or dont get shut down? How many httpd, and mysql process should be running if i am not even connected to teh servers?

And does this have any thing to do with possible errors. I seem to get this about once a day.

Date: Fri, 14 Sep 2001 04:03:12 -0700
From: Cron Daemon <root@zoe>
To: root@zoe
Subject: Cron <root@zoe> run-parts /etc/cron.daily

/etc/cron.daily/tripwire-check:

**** Error: Tripwire database for zoe not found. ****
**** Run /etc/tripwire/twinstall.sh and/or tripwire --init. ****
# 4  
Old 09-15-2001
Processes that have memory leaks will be using lots of memory and not releasing the memory to other processes. This often occurs when a process allocates memory (sometimes in a branch of the process that is done repeatedly) and the allocation is not released.

If you have your system set up for swap; then you will notice that your system begins to swap, slowing things down. If you don't have enough swap space (or any swap) things will grind to a halt.

Too many processes can also slow things down, but this is not a memory leaks, just too little memory!!!

How much RAM do you have? How much swap space? What are the top memory-hog-processes on your system?
# 5  
Old 09-15-2001
I have 512 in ram and 200 in swap space. And this is my results as off ps -A. This is with few to no one connected to my computer.
PID TTY TIME CMD
1 ? 00:00:04 init
2 ? 00:00:00 keventd
3 ? 00:00:00 kapm-idled
4 ? 00:00:00 kswapd
5 ? 00:00:00 kreclaimd
6 ? 00:00:00 bdflush
7 ? 00:00:00 kupdated
8 ? 00:00:00 mdrecoveryd
447 ? 00:00:00 pump
514 ? 00:00:00 syslogd
519 ? 00:00:00 klogd
533 ? 00:00:00 portmap
548 ? 00:00:00 rpc.statd
632 ? 00:00:00 apmd
681 ? 00:00:00 automount
693 ? 00:00:00 atd
708 ? 00:00:00 sshd
728 ? 00:00:00 xinetd
788 ? 00:00:00 gpm
795 ? 00:00:00 mysqld
810 ? 00:00:00 mysqld
811 ? 00:00:00 mysqld
812 ? 00:00:00 mysqld
813 ? 00:00:00 httpd
825 ? 00:00:00 crond
826 ? 00:00:00 httpd
827 ? 00:00:00 httpd
828 ? 00:00:00 httpd
830 ? 00:00:00 httpd
831 ? 00:00:00 httpd
832 ? 00:00:00 httpd
833 ? 00:00:00 httpd
905 ? 00:00:00 xfs
950 tty1 00:00:00 mingetty
951 tty2 00:00:00 mingetty
952 tty3 00:00:00 mingetty
953 tty4 00:00:00 mingetty
954 tty5 00:00:00 mingetty
955 tty6 00:00:00 mingetty
956 ? 00:00:00 gdm
963 ? 00:00:03 X
964 ? 00:00:00 gdm
975 ? 00:00:00 gdmlogin
1312 ? 00:00:00 mysqld
1313 ? 00:00:00 mysqld
1479 ? 00:00:00 mysqld
1560 ? 00:00:00 mysqld
1562 ? 00:00:00 mysqld
1725 ? 00:00:00 httpd
1731 ? 00:00:00 mysqld
1732 ? 00:00:00 mysqld
1772 ? 00:00:00 in.telnetd
1773 pts/0 00:00:00 login
1774 pts/0 00:00:00 bash
1810 pts/0 00:00:00 su
1811 pts/0 00:00:00 bash
1850 ? 00:00:00 crond
1851 ? 00:00:00 run-parts
1861 ? 00:00:00 awk
1862 ? 00:00:00 sa1
1864 ? 00:00:00 sadc
1865 pts/0 00:00:00 ps
# 6  
Old 09-15-2001
ps -A does not show the correcg memory usage stats. Please check the man page for ps for the right switches.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Job Run Slower using Autosys than running through terminal

Hi All, We run Many jobs evryday using Autosys. Sometimes due to various reason we got to run the job from terminal as well (using nohup). We observed that the job running through terminal(nohup) takes much less time then the autosys (for same job). What can be the possible reason for such... (1 Reply)
Discussion started by: kg_gaurav
1 Replies

2. Shell Programming and Scripting

sed is dead

Hello everybody, I'm new to bash scripting (and scripting in general) but I'm making decent progress in the hands-on solutions I need... I've encountered a problem that seemed very simple to me at first, but had me going on for hours. Maybe you can help me. Say I have an input text file like... (2 Replies)
Discussion started by: origamisven
2 Replies

3. What is on Your Mind?

Usenet is dead

On servers i check there seems to be no news at all. (3 Replies)
Discussion started by: Action
3 Replies

4. Linux

GCC compiles a lot slower than it should

Hello everyone, i'm having a problem compiling an application i'm developing. For a month, while developing, i did lots of compilations to test it. While compiling, i noticed gcc did it pretty slow, but gave it no importance. I'm using ubuntu 10.04 32bits, and my pc has: - Dual core intel... (1 Reply)
Discussion started by: adadon
1 Replies

5. UNIX for Advanced & Expert Users

Why is cut slower than awk?

Hi all, for test reasons I tried the following two one-liners: time awk '{print $4}' T_64xSC_128RW_K500.dat > /dev/nulland time cut -d" " -f6 T_64xSC_128RW_K500.dat > /dev/nullThe file contains approx. 250k lines. awk does it in 0.15 secs (real), cut in 0.44. The user time has about the... (3 Replies)
Discussion started by: BandGap
3 Replies

6. Solaris

Why is restore slower than backup?

After my big disaster, I'm restoring from tape on my Sun box. This is the second time I've used 'ufsrestore' with this DEC TZ88 SCSI DLT drive. The last time was for a migration from one box to another. Both the last time and this time, the restore has taken a hell of a lot longer than the... (4 Replies)
Discussion started by: deckard
4 Replies

7. UNIX for Advanced & Expert Users

TCP/IP Connection getting slower...

Hi, We have developed a server program using TCP/IP Communication to communicate with another client program. After running for some days we find the TCP/IP connection from the server program is getting slower. What i mean to say is since the send() function in the server program (it is... (2 Replies)
Discussion started by: rajesh_puru
2 Replies

8. Programming

TCP/IP send getting slower

Hi, We have developed a server program using TCP/IP Communication to communicate with another client program. After running for some days we find the TCP/IP connection from the server program is getting slower ie, the messages are not send quickly to the client. What i mean to say is since the... (0 Replies)
Discussion started by: rajesh_puru
0 Replies
Login or Register to Ask a Question