Sponsored Content
Full Discussion: Email broken
Operating Systems OS X (Apple) Email broken Post 302480864 by timgolding on Thursday 16th of December 2010 11:17:43 AM
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
 

7 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

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. 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

6. 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

7. 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
LWRES_PACKET(3) 						       BIND9							   LWRES_PACKET(3)

NAME
lwres_lwpacket_renderheader, lwres_lwpacket_parseheader - lightweight resolver packet handling functions SYNOPSIS
#include <lwres/lwpacket.h> lwres_result_t lwres_lwpacket_renderheader(lwres_buffer_t *b, lwres_lwpacket_t *pkt); lwres_result_t lwres_lwpacket_parseheader(lwres_buffer_t *b, lwres_lwpacket_t *pkt); DESCRIPTION
These functions rely on a struct lwres_lwpacket which is defined in lwres/lwpacket.h. typedef struct lwres_lwpacket lwres_lwpacket_t; struct lwres_lwpacket { lwres_uint32_t length; lwres_uint16_t version; lwres_uint16_t pktflags; lwres_uint32_t serial; lwres_uint32_t opcode; lwres_uint32_t result; lwres_uint32_t recvlength; lwres_uint16_t authtype; lwres_uint16_t authlength; }; The elements of this structure are: length the overall packet length, including the entire packet header. This field is filled in by the lwres_gabn_*() and lwres_gnba_*() calls. version the header format. There is currently only one format, LWRES_LWPACKETVERSION_0. This field is filled in by the lwres_gabn_*() and lwres_gnba_*() calls. pktflags library-defined flags for this packet: for instance whether the packet is a request or a reply. Flag values can be set, but not defined by the caller. This field is filled in by the application wit the exception of the LWRES_LWPACKETFLAG_RESPONSE bit, which is set by the library in the lwres_gabn_*() and lwres_gnba_*() calls. serial is set by the requestor and is returned in all replies. If two or more packets from the same source have the same serial number and are from the same source, they are assumed to be duplicates and the latter ones may be dropped. This field must be set by the application. opcode indicates the operation. Opcodes between 0x00000000 and 0x03ffffff are reserved for use by the lightweight resolver library. Opcodes between 0x04000000 and 0xffffffff are application defined. This field is filled in by the lwres_gabn_*() and lwres_gnba_*() calls. result is only valid for replies. Results between 0x04000000 and 0xffffffff are application defined. Results between 0x00000000 and 0x03ffffff are reserved for library use. This field is filled in by the lwres_gabn_*() and lwres_gnba_*() calls. recvlength is the maximum buffer size that the receiver can handle on requests and the size of the buffer needed to satisfy a request when the buffer is too large for replies. This field is supplied by the application. authtype defines the packet level authentication that is used. Authorisation types between 0x1000 and 0xffff are application defined and types between 0x0000 and 0x0fff are reserved for library use. Currently these are not used and must be zero. authlen gives the length of the authentication data. Since packet authentication is currently not used, this must be zero. The following opcodes are currently defined: NOOP Success is always returned and the packet contents are echoed. The lwres_noop_*() functions should be used for this type. GETADDRSBYNAME returns all known addresses for a given name. The lwres_gabn_*() functions should be used for this type. GETNAMEBYADDR return the hostname for the given address. The lwres_gnba_*() functions should be used for this type. lwres_lwpacket_renderheader() transfers the contents of lightweight resolver packet structure lwres_lwpacket_t *pkt in network byte order to the lightweight resolver buffer, *b. lwres_lwpacket_parseheader() performs the converse operation. It transfers data in network byte order from buffer *b to resolver packet *pkt. The contents of the buffer b should correspond to a lwres_lwpacket_t. RETURN VALUES
Successful calls to lwres_lwpacket_renderheader() and lwres_lwpacket_parseheader() return LWRES_R_SUCCESS. If there is insufficient space to copy data between the buffer *b and lightweight resolver packet *pkt both functions return LWRES_R_UNEXPECTEDEND. COPYRIGHT
Copyright (C) 2004, 2005, 2007, 2012 Internet Systems Consortium, Inc. ("ISC") Copyright (C) 2000, 2001 Internet Software Consortium. BIND9 Jun 30, 2000 LWRES_PACKET(3)
All times are GMT -4. The time now is 01:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy