Email broken


 
Thread Tools Search this Thread
Operating Systems OS X (Apple) Email broken
# 8  
Old 12-16-2010
Can't you help much on this. I know a similar situation from a Linux box which was running out of memory, swapping heavily and to get some more memory free just killed randomly(?) processes, until we noticed something was not responding anymore. When this happened, there were entries in /var/log/messages (no clue on OS/X) which showed all the killing and I think there were also messages about memory problems.
You can either wait if someone with OS/X knowledge hopefully answers here in this thread too - or google if there is any how-tos or something to detect and analyze a memory leak on OS/X.
This User Gave Thanks to zaxxon For This Post:
# 9  
Old 12-16-2010
Ok thanks. I found this leak command and run it on some processes.

Code:
mail:~ timgolding$ ps -ax | grep http
18780  ??  Ss     0:00.62 /usr/sbin/httpd
18781  ??  S      0:00.05 /usr/sbin/httpd
18897  ??  S      0:00.00 /usr/sbin/httpd

Gives the following
Code:
mail:~ timgolding$ sudo leaks 18780
Process 18780: 17422 nodes malloced for 1818 KB
Process 18780: 8 leaks for 336 total leaked bytes.
Leak: 0x02125540  size=128
        0x00103480 0x00103450 0x00000000 0x00000000 
        0x00000000 0x00000000 0x00000000 0x00000000 
        0x00000000 0x00000000 0x00000000 0x00000000 
        0x00000000 0x00000000 0x00000000 0x00000000 
        0x00000000 0x00000000 0x00000000 0x00000000 
        0x00000000 0x00000000 0x00000000 0x00000000 
        0x00000000 0x00000000 0x00000000 0x00000000 
        0x00000000 0x00000000 0x00000000 0x00000000 
Leak: 0x00103450  size=48
        0x00103470 0x00103464 0x00000002 0x00000004 
        0x00103468 0x00000000 0x0010347c 0x00000000 
        0x6c6f6361 0x6c686f73 0x74000000 0x7f000001 
Leak: 0x001f7460  size=32       string 'mail.domainwise.co.uk'
Leak: 0x02125510  size=32       string 'mail.domainwise.co.uk'
Leak: 0x021123b0  size=32       string 'mail.domainwise.co.uk'
Leak: 0x021254b0  size=32
        0x00000000 0x0000003f 0x00000000 0x00000000 
        0x01000000 0x00000000 0x00000000 0x00000000 
Leak: 0x02125530  size=16
        0x00010010 0x02125540 0x00000000 0x00000000 
Leak: 0x00103480  size=16       string 'localhost'

Does that mean apache has memory leaks? If i try it with mysqld i get

Code:
mail:~ timgolding$ leaks mysqld
Process 18782: 40289 nodes malloced for 34878 KB
Process 18782: 0 leaks for 0 total leaked bytes.

---------- Post updated at 08:17 AM ---------- Previous update was at 01:25 AM ----------

I cleaned up some of my code. I think the memory leak was caused by tcpdf. Or might of been because i had too much of my program flow in one script. Either way everything seems to be working today. I made sure i revisited all the web pages i visited yesterday after the clean up and fingers crossed no memory leak. Thanks for your help zaxxon Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Using top command to email if process is exceeding 25% and sending an email alert if so

This is my first time writing a script and Im having some trouble, Im trying to use the top command to monitor processes and the amount of CPU usage they require, my aim is to get an email if a process takes over a certain percentage of CPU usage I tried grep Obviosly that hasnt worked, Any... (8 Replies)
Discussion started by: jay02
8 Replies

2. UNIX for Dummies Questions & Answers

new to ldap, send email to a ou or group, and see a list from email client

hi, i'm running openldap on ubuntu 10.04, creating new items with apache directory studio (windows version). i use the ldap just as an address book to our small office (email clients are windows live mail 2009, 2011, microsoft outlook 2007 and 2010). a. i cant see a list of the contacts,... (0 Replies)
Discussion started by: V4705
0 Replies

3. Debian

[Lenny] I seem to have broken X...

I have been running Debian Lenny on this current PC for about a year. Since installation, I have had no major issues. Last night, I lazily tapped out: $ sudo aptitude update $ sudo aptitude upgrade I quickly scanned what it said would be changed and did not notice anything that may be... (12 Replies)
Discussion started by: Elric of Grans
12 Replies

4. UNIX and Linux Applications

pipe broken

hi i have a server, and i have a web site and i installed apache in the /usr/local/apache/logs i have a file and i have this problem (32)Broken pipe: core_output_filter: writing data to the network plz help me how i can resolve this plz it's urgent th (1 Reply)
Discussion started by: abir2
1 Replies

5. UNIX for Advanced & Expert Users

Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win)

Hi A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as " usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)
Discussion started by: Vetrivela
2 Replies

6. UNIX for Dummies Questions & Answers

broken pipe?

Hi there, I try to use: > find * | ls but it just gave me one level of ' ls '. and it said: > find * | ls dir1 dir2 f1 f2 f3 Broken Pipe > what is broken pipe? how can i fix it? thks Gusla (3 Replies)
Discussion started by: gusla
3 Replies

7. UNIX for Advanced & Expert Users

Broken

Ok i am running Linux, or rather was. I can not longer do anything. This was a dns server amoungst other things. It will no longer boot. I have used a startup disk, but how can i recover the OS? I need help and urgently. Please someone thanks (3 Replies)
Discussion started by: ollyparkhouse
3 Replies
Login or Register to Ask a Question