<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=big5">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>Thanks, Jiri.</DIV>
<DIV>&nbsp;</DIV>
<DIV>When I do these changes, got the following message.</DIV>
<DIV>&nbsp;0(6096) ERROR: load_module: could not open module 
&lt;/usr/local/lib/ser/modules/mysql.so&gt;: 
/usr/local/lib/ser/modules/mysql.so: undefined symbol: 
fm_malloc<BR>&nbsp;0(6096) parse error (31,13-49): failed to load 
module<BR>ERROR: bad config file (1 errors)</DIV>
<DIV><BR>Mook.</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV>At 09:47 AM 5/6/2004, Mook wrote:<BR>&gt;<I>I'm running a Linux red Hat 9.0 
with all updates, I have 512 MB ram, ser 0.8.12 .<BR></I>&gt;<I>I writes a 
module and compiles it fine.When ser receive invite request, this module will be 
executed.<BR></I>&gt;<I>Then I gets the following error message.<BR></I>&gt;<I> 
<BR></I>&gt;<I>May&nbsp; 6 15:11:58 nw127 /usr/local/sbin/ser[3154]: Error: 
new_module: memory allocation error<BR></I>&gt;<I>May&nbsp; 6 15:11:58 nw127 
/usr/local/sbin/ser[3154]: Error: new_module: execute 
failed<BR></I>&gt;<I>May&nbsp; 6 15:11:58 nw127 /usr/local/sbin/ser[3154]: 
ERROR: do_action: memory allocation failure<BR></I>&gt;<I>May&nbsp; 6 15:11:58 
nw127 /usr/local/sbin/ser[3154]: rwrite(): Error in 
do_action<BR></I>&gt;<I>May&nbsp; 6 15:11:58 nw127 /usr/local/sbin/ser[3154]: 
lookup(): Unable to rewrite Request-URI<BR></I>&gt;<I>May&nbsp; 6 15:11:58 nw127 
/usr/local/sbin/ser[3154]: ERROR: build_res_buf_from_sip_req: out of 
memory&nbsp; ; needs 539<BR></I>&gt;<I>May&nbsp; 6 15:13:21 nw127 
/usr/local/sbin/ser[3118]: WARNING: unhandled signal 12<BR></I>&gt;<I>May&nbsp; 
6 15:15:47 nw127 /usr/local/sbin/ser[3163]: build_rr(): No memory 
left<BR></I>&gt;<I>May&nbsp; 6 15:15:47 nw127 /usr/local/sbin/ser[3163]: 
insert_RR(): Error while inserting outbound Record-Route<BR></I>&gt;<I>May&nbsp; 
6 15:15:47 nw127 /usr/local/sbin/ser[3163]: record_route(): Error while 
inserting Record-Route line<BR></I>&gt;<I>May&nbsp; 6 15:15:47 nw127 
/usr/local/sbin/ser[3163]: ERROR: do_action: memory allocation 
failure<BR></I>&gt;<I>May&nbsp; 6 15:15:47 nw127 /usr/local/sbin/ser[3163]: 
rwrite(): Error in do_action<BR></I>&gt;<I>May&nbsp; 6 15:15:47 nw127 
/usr/local/sbin/ser[3163]: lookup(): Unable to rewrite 
Request-URI<BR></I>&gt;<I>May&nbsp; 6 15:15:47 nw127 /usr/local/sbin/ser[3163]: 
ERROR: build_res_buf_from_sip_req: out of memory&nbsp; ; needs 
589<BR></I>&gt;<I>May&nbsp; 6 15:15:47 nw127 /usr/local/sbin/ser[3166]: 
build_rr(): No memory left<BR></I>&gt;<I>May&nbsp; 6 15:15:47 nw127 
/usr/local/sbin/ser[3166]: insert_RR(): Error while inserting outbound 
Record-Route<BR></I>&gt;<I>May&nbsp; 6 15:15:47 nw127 /usr/local/sbin/ser[3166]: 
record_route(): Error while inserting Record-Route line<BR></I>&gt;<I>May&nbsp; 
6 15:15:47 nw127 /usr/local/sbin/ser[3166]: ERROR: mk_proxy: memory allocation 
failure<BR></I>&gt;<I>I change the value of PKG_MEM_POOL_SIZE by 10240*1024 in 
config.h and recompile.<BR></I>&gt;<I>But I still has the same memory error 
message.How can get memory statistics when I send kill -SIGUSR1?<BR></I><BR>This 
looks like a memory leak in your module (or in SER?) unfortunately. <BR><BR>To 
get memory dumps printed, recompile SER with memory logging (i.e., replace 
<BR>-DF_MALLOC with -DDBG_QM_MALLOC in Makefile.defs) and set configuration 
option 'memlog'<BR>low (e.g., 'memlog=1'). On restart, SER will dump all 
unallocated fragments. It will<BR>be quite a lot -- each process will have many 
of them, but eventually we should be able<BR>to figure out some fragments which 
will be reocurring too frequently.<BR><BR>-jiri <BR></DIV></BODY></HTML>