[JDEV] Re: Users-Agent Problem

seanw at uk.ibm.com seanw at uk.ibm.com
Mon Apr 9 14:14:20 CDT 2001



This is a multipart message in MIME format.
--=_alternative 00691DBA80256A29_=
Content-Type: text/plain; charset="us-ascii"

I managed to get users-agent working. In the server.xml, I used:
        <connectiontype>tcpip</connectiontype>
        <hostname>localhost</hostname>

and in the jabber.xml, a corresponding accept:
        <service id="jud">
          <exec>./users-agent/users-agent</exec>
          <host>users.domain.name</host>
          <accept>
            <ip>127.0.0.1</ip>
            ...
          </accept>
          ...
        </service>

All worked fine for me as far as connecting...although I did make some
other minor tweaks to the cvs version of the users-agent code to get it to
work. I do still have a problem where the XML parser module (possibly in
XML::Stream::Parser) seems to have a memory leak. As a temporary measure,
we simply have a job that kills users-agent at intervals to avoid it
hogging all the memory in the server. In our case, the main jabberd
restarts the users-agent as it runs under its control (started by <exec>).

Ignore the xmlns:stream="http://etherx.jabber.org/streams" line.....thats
just the URI for the XML namespace.


Sean Welsh
AT&T Global Network Services
--=_alternative 00691DBA80256A29_=
Content-Type: text/html; charset="us-ascii"




<br><font size=2 face="sans-serif">I managed to get users-agent working. In
the server.xml, I used:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; </font><font
size=1><tt>&lt;connectiontype&gt;tcpip&lt;/connectiontype&gt;<br>
 &nbsp; &nbsp; &nbsp;
&nbsp;&lt;hostname&gt;localhost&lt;/hostname&gt;</tt></font>
<br>
<br><font size=2 face="sans-serif">and in the jabber.xml, a corresponding
accept:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;service
id=&quot;jud&quot;&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&lt;exec&gt;./users-agent/users-agent&lt;/exec&gt; &nbsp;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&lt;host&gt;users.domain.name&lt;/host&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&lt;accept&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &lt;ip&gt;127.0.0.1&lt;/ip&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; ...</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&lt;/accept&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
...</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;
&lt;/service&gt;</font>
<br>
<br><font size=2 face="sans-serif">All worked fine for me as far as
connecting...although I did make some other minor tweaks to the cvs version
of the users-agent code to get it to work. I do still have a problem where
the XML parser module (possibly in XML::Stream::Parser) seems to have a
memory leak. As a temporary measure, we simply have a job that kills
users-agent at intervals to avoid it hogging all the memory in the server.
In our case, the main jabberd restarts the users-agent as it runs under its
control (started by &lt;exec&gt;).</font>
<br>
<br><font size=2 face="sans-serif">Ignore the </font><font
size=1><tt>xmlns:stream=&quot;http://etherx.jabber.org/streams&quot;</tt></font><font

size=2 face="sans-serif"> line.....thats just the URI for the XML
namespace. </font>
<br>
<br>
<br><font size=2 face="sans-serif">Sean Welsh<br>
AT&amp;T Global Network Services</font>
--=_alternative 00691DBA80256A29_=--






More information about the JDev mailing list