Hi,

Completely appreciate that by me just saying it "won't work" isn't helpful :) 

Ok.  Top in freebsd doesn't have -n1 and -p  so the next thing I did was move 
to just using ps

[root@mail4-db-4a ~]# ps Hlauxc -p `pidof dbmail-pop3d`
  UID   PID PPID CPU PRI NI    VSZ   RSS MWCHAN STAT TT     TIME COMMAND      
USER    %CPU %MEM STARTED
65534 74473    1   0 103  0 139116 57488 -      R    ??  1:33.86 dbmail-pop3d 
nobody 100.0  0.2  1:17PM
65534 74473    1   0  20  0 139116 57488 uwait  I    ??  0:00.00 dbmail-pop3d 
nobody   0.0  0.2  1:17PM

As you can see that's the output and you can also see 100.0% CPU at the moment.

Am I just awk'in out the normal PID there?
 
James Greig

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
Reindl Harald
Sent: 16 March 2014 13:37
To: [email protected]
Subject: Re: [Dbmail] Iphone HTML emails


Am 16.03.2014 14:24, schrieb James Greig:
> Tried hacking away at the script that you have as it won't work in 
> Freebsd

*what* command does not work in Freebsd?
"won't work" is not enough to help

> One thing I thought was that I didn't think pop3d forked child 
> processes In any case the only pid's I can ever find is just the one 
> and pstree shows the same

we are not talking about processes, pstree does

> 73709 nobody        2  20    0   140M 59732K uwait   1  19:35 100.00% 
> dbmail-pop3d

"top -H -b -n1 -p 73709" in case "top -H -b -n1 -p `pidof dbmail-pop3d`" doe 
snot on BSD

pstree also only show one imapd-process while there are 34 threads 
[root@mail:/Volumes/dune/debug]$ top -H -b -n1 -p `pidof dbmail-imapd` | wc -l
34

> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On 
> Behalf Of Reindl Harald
> Sent: 14 March 2014 17:49
> To: [email protected]
> Subject: Re: [Dbmail] Iphone HTML emails
> 
> Am 14.03.2014 18:43, schrieb James Greig:
>> I built with -g in CFLAGS and followed the steps on here:- 
>> http://www.leonardoborda.com/blog/gdb-series-attach-gdb-to-a-program-
>> t
>> hat-is-already-running-part-1/
> 
> forget it, /lib/libthr.so.3 is not relevant and no part of dbmail read 
> my otehr two replies
> 
> #4  0x0000000803eced34 in ?? () from /lib/libthr.so.3 No symbol table info 
> available.
> #5  0x0000000000000000 in ?? ()
> No symbol table info available.
> 
>> -----Original Message-----
>> From: [email protected] [mailto:[email protected]] On 
>> Behalf Of Jorge Bastos
>> Sent: 14 March 2014 17:11
>> To: 'DBMail mailinglist'
>> Subject: Re: [Dbmail] Iphone HTML emails
>>
>> You have to compile dbmail with debug
>>
>>> -----Original Message-----
>>> From: [email protected] [mailto:[email protected]] 
>>> On Behalf Of James Greig
>>> Sent: sexta-feira, 14 de Março de 2014 17:11
>>> To: DBMail mailinglist
>>> Subject: Re: [Dbmail] Iphone HTML emails
>>>
>>> Scratch that.  But doesn't seem no matter what I do this is the only 
>>> output I ever get when doing bt or bt full on pop3d
>>>
>>> (gdb) bt
>>> #0  0x0000000803ed64dc in ?? () from /lib/libthr.so.3
>>> #1  0x0000000803ed07b5 in ?? () from /lib/libthr.so.3
>>> #2  0x0000000803ed88ed in ?? () from /lib/libthr.so.3
>>> #3  0x0000000802df2b15 in doSweep () from /usr/local/lib/libzdb.so.9
>>> #4  0x0000000803eced34 in ?? () from /lib/libthr.so.3
>>> #5  0x0000000000000000 in ?? ()
>>> (gdb) bt
>>> #0  0x0000000803ed64dc in ?? () from /lib/libthr.so.3
>>> #1  0x0000000803ed07b5 in ?? () from /lib/libthr.so.3
>>> #2  0x0000000803ed88ed in ?? () from /lib/libthr.so.3
>>> #3  0x0000000802df2b15 in doSweep () from /usr/local/lib/libzdb.so.9
>>> #4  0x0000000803eced34 in ?? () from /lib/libthr.so.3
>>> #5  0x0000000000000000 in ?? ()
>>> (gdb) bt full
>>> #0  0x0000000803ed64dc in ?? () from /lib/libthr.so.3 No symbol 
>>> table info available.
>>> #1  0x0000000803ed07b5 in ?? () from /lib/libthr.so.3 No symbol 
>>> table info available.
>>> #2  0x0000000803ed88ed in ?? () from /lib/libthr.so.3 No symbol 
>>> table info available.
>>> #3  0x0000000802df2b15 in doSweep () from /usr/local/lib/libzdb.so.9 
>>> No symbol table info available.
>>> #4  0x0000000803eced34 in ?? () from /lib/libthr.so.3 No symbol 
>>> table info available.
>>> #5  0x0000000000000000 in ?? ()
>>> No symbol table info available.
>>>
>>> I imagine I'm doing something completely wrong here=/

_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to