Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-17-2002, 04:19 AM
|
#1
|
Member
Registered: Nov 2001
Location: Sweden
Distribution: GNU/Linux since -97
Posts: 149
Rep:
|
Memory Leak
Hi
I have a big problem.
My serve is leaking a lot of memory
I have 384MB of RAM
The server consumes this memory in 24H and then i crashes.
Sure , I can kill a process and it will free some memory , but the new released memory will also be used and then it crashes again.
Seems strange to me, does anyone know how I can fix this problem ??
I do not want to use cron to restart the server every night :-(
|
|
|
09-17-2002, 04:20 AM
|
#2
|
Member
Registered: Nov 2001
Location: Sweden
Distribution: GNU/Linux since -97
Posts: 149
Original Poster
Rep:
|
The ps or top doesn't show me anything strange either
Is there a way to find out where the memory is used ??
384MB in 1 day ??
Last edited by FredrikN; 09-17-2002 at 04:22 AM.
|
|
|
09-17-2002, 08:36 AM
|
#3
|
Moderator
Registered: May 2001
Posts: 29,417
|
For a global view you can use periodically dumping output from free, (at)sar/sa. Finer grained stats you could gain from lsof, (a)top, or ps (like /bin/ps ax -eo vsz,pid,args) but then you would have to transmogrify the data a bit. I like atop, because it can also show VM in/decreases per app.
Any finer grained and you're at the level where you would zoom in on suspects, test different configs, assess add-ons (like httpd cgi's) or use a preloaded lib or binary recompiled with a debugging lib like dmalloc.
|
|
|
09-17-2002, 12:20 PM
|
#4
|
Member
Registered: Nov 2001
Location: Sweden
Distribution: GNU/Linux since -97
Posts: 149
Original Poster
Rep:
|
Ok, thanks 4 your tips :-)
|
|
|
09-17-2002, 03:16 PM
|
#5
|
Member
Registered: Mar 2002
Location: Elyria, Ohio
Distribution: Debian, Nothing else required
Posts: 141
Rep:
|
You might also check on whether 1. swap was configured on installation, #2 whether you have a swap line in /etc/fstab, 3. is the swap actually in use. As far as item item 3 is concerned, when I installed my system, although a swap space was configured, swapon was never called on boot to turn it on, so I was running without a swap. Hope this helps. -mk
|
|
|
All times are GMT -5. The time now is 07:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|