[JDEV] Jabber Server faild in testing

David Waite dwaite at jabber.com
Fri Jan 5 08:05:19 CST 2001


Just brief observations:

first, try removing this line:

   <host><jabberd:cmdline flag="h"/></host>

If you do not specify a server on the command-line, it will insert a null host tag, meaning that the session manager should consider all traffic as local. The
session manager is probably what is crashing, due to this.

Also, you may wish to remove this line as well:

    <host>192.168.0.2</host>

Jabber is a DNS-based system, and thus you should use DNS names and not IPs on the server. Simple solution if you do not have a local DNS server is to modify
/etc/hosts on all the systems (even windows systems have this file)

- David Waite

Gang Liu wrote:

> Hi,
>
>         I run jabber 1.2 in my linux box which is redhat 6.1. I setup jabberd with jpolld succefully.Jabberd is pre-compiled downloaded from jabber.org.
>         I do tests to see how stable the jabberd is. But the linux box crashed in my tests.There is some information about jabber and linux.
>         Thank you for your help.
>
> [root at dev /]# uname -a
> Linux dev.vista.internal 2.2.16 #5 Sat Dec 2 23:01:23 CST 2000 i686 unknown
>
> [root at dev /]# ulimit -a
> core file size (blocks)  1000000
> data seg size (kbytes)   unlimited
> file size (blocks)       unlimited
> max memory size (kbytes) unlimited
> stack size (kbytes)      8192
> cpu time (seconds)       unlimited
> max user processes       2045
> pipe size (512 bytes)    8
> open files               8192
> virtual memory (kbytes)  2105343
>
> last information about jabber:
>
> 1. top message
>  10:55pm  up  9:28,  2 users,  load average: 1.57, 0.86, 0.37
> 42 processes: 36 sleeping, 6 running, 0 zombie, 0 stopped
> CPU states: 59.2% user, 21.1% system,  0.0% nice, 19.5% idle
> Mem:   63268K av,  62244K used,   1024K free,   1980K shrd,   1308K buff
> Swap: 265032K av,  31304K used, 233728K free                  1768K cached
>
>   PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
>   620 jabber    19   0 26276  14M   460 R       0 41.3 23.8   3:35 jabberd
>   622 jabber    11   0 49648  36M   392 R       0 29.3 59.1   1:43 jpolld
>   896 root       2   0   184  120    80 R       0  5.6  0.1   0:22 simulator
>
> 2. simulator output msg
> OUT: 30208 msgs, 511 new in 4 secs 71532 bytes = 17883 bytes/sec
>  368 users connected
>  369 users connected
>  370 users connected
> OUT: 30720 msgs, 511 new in 3 secs 72307 bytes = 24102 bytes/sec
>  371 users connected
>  372 users connected
>  373 users connected
>
> 3. jabber error.log
> 20010105T07:44:46: [warn] (192.168.0.2): xdb_file failed to open file ./spool/19
> 2.168.0.2/r1365.xml: No such file or directory
> 20010105T07:44:46: [warn] (192.168.0.2): xdb_file failed to open file ./spool/19
> 2.168.0.2/r1202.xml: No such file or directory
> 20010105T07:44:48: [warn] (192.168.0.2): xdb_file failed to open file ./spool/19
> 2.168.0.2/r2911.xml: No such file or directory
> 20010105T07:44:50: [warn] (192.168.0.2): xdb_file failed to open file ./spool/19
> 2.168.0.2/r2699.xml: No such file or directory
> 20010105T07:44:50: [warn] (192.168.0.2): xdb_file failed to open file ./spool/19
> 2.168.0.2/r3014.xml: No such file or directory
> 20010105T07:44:50: [warn] (192.168.0.2): xdb_file failed to open file ./spool/19
> 2.168.0.2/r1672.xml: No such file or directory
> 20010105T07:44:52: [warn] (192.168.0.2): xdb_file failed to open file ./spool/19
> 2.168.0.2/r1272.xml: No such file or directory
> 20010105T07:44:52: [warn] (192.168.0.2): xdb_file failed to open file ./spool/19
> 2.168.0.2/r3908.xml: No such file or directory
> 20010105T14:47:22: [warn] (-internal): Packet Delivery Failed, invalid packet, d
> ropping <route type='error' from='1026 at c2s/142175880'/>
>
> 4. /var/log/message
> Jan  5 22:27:46 dev named[399]: XSTATS 978704866 978672466 RR=75 RNXD=9 RFwdR=38
>  RDupR=10 RFail=0 RFErr=0 RErr=0 RAXFR=0 RLame=0 ROpts=0 SSysQ=19 SAns=592 SFwdQ
> =32 SDupQ=39 SErr=0 RQ=632 RIQ=0 RFwdQ=0 RDupQ=10 RTCP=0 SFwdR=38 SFail=0 SFErr=
> 0 SNaAns=589 SNXD=481
> Jan  5 22:46:41 dev PAM_pwdb[860]: (login) session opened for user liugang by (u
> id=0)
> Jan  5 22:46:49 dev PAM_pwdb[875]: (su) session opened for user root by liugang(
> uid=501)
> Jan  5 22:52:03 dev named[399]: unapproved query from [61.141.229.8].137 for "PN
> PDATA.vista"
> Jan  5 22:53:03 dev named[399]: unapproved query from [61.141.229.8].137 for "PN
> PDATA.vista"
> Jan  5 22:55:03 dev last message repeated 2 times
> Jan  5 23:09:56 dev syslogd 1.3-3: restart.
> Jan  5 23:09:56 dev syslog: syslogd startup succeeded
> Jan  5 23:09:56 dev syslog: klogd startup succeeded
> Jan  5 23:09:56 dev kernel: klogd 1.3-3, log source = /proc/kmsg started.
> Jan  5 23:09:57 dev kernel: Inspecting /boot/System.map-2.2.16
> Jan  5 23:09:57 dev kernel: Loaded 6189 symbols from /boot/System.map-2.2.16.
> Jan  5 23:09:57 dev kernel: Symbols match kernel version 2.2.16.
> Jan  5 23:09:57 dev kernel: No module symbols loaded.
> Jan  5 23:09:57 dev kernel: Linux version 2.2.16 (root at dev.vista.internal) (gcc
> version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #5 Sat Dec
>
> 5. jabber.xml
> <jabber>
>
>   <!--
>   This is the Jabber Server configuration file.
>   The file is broken into different sections based on the services being managed by jabberd, the server daemon.
>   Most of the important sections are commented on and easy to modify, full instructions are contained at http://docs.jabber.org/.
>   When you see a tag like "jabberd:cmdline", it's automatically replaced on startup with the command line flag to jabberd.
>   -->
>
>   <!-- This section is for the session manager, the most important component within the server. -->
>   <service id="sessions">
>
>     <!--
>     Change hostname below to something other than "localhost", or use the "jabberd -h hostname" command line flag.
>     Multiple <host>...</host> entries are allowed, each one is a seperate virtual server.
>     -->
>     <host>dev.vista.internal</host>
>     <host>192.168.0.2</host>
>     <host><jabberd:cmdline flag="h"/></host>
>
>     <!-- This is the custom configuration section for the session manager. -->
>     <jsm xmlns="jabber:config:jsm">
>
>       <info>
>         <name>Jabber Server</name>
>         <description>A Jabber Server!</description>
>         <url>http://foo.bar/</url>
>       </info>
>
>       <register>
>         <instructions>Choose a username and password to register with this server.</instructions>
>         <name/><email/>
>       </register>
>
>       <agents>
>
>         <!-- This is the default agent for the master jabber user directory, this section can be duplicated for additional user custom/company directories. -->
>         <agent jid="users.jabber.org">
>           <name>Jabber User Directory</name>
>           <description>You may register and create a public searchable profile, and search for other registered Jabber users.</description>
>           <service>jud</service>
>           <register/>
>           <search/>
>         </agent>
>
>         <!-- These are just examples, you will receive instructions on what to place here when you install a real agent.
>         <agent jid="aim.jabber.org">
>           <name>AIM Transport</name>
>           <description>This is the AIM Transport</description>
>           <transport>AIM/AOL ScreenName</transport>
>           <service>aim</service>
>           <register/>
>         </agent>
>         <agent jid="icq.jabber.org">
>           <name>ICQ Transport</name>
>           <description>This is the ICQ Transport</description>
>           <transport>ICQ#</transport>
>           <service>icq</service>
>           <register/>
>         </agent>
>         -->
>         <!-- This is OK, config two -->
>         <agent jid="conference.vista.internal">
>           <name>Group Conferencing</name>
>           <description>You can create and participate in private chatrooms.</description>
>           <service>conference.vista.internal</service>
>           <groupchat/>
>           <register/>
>         </agent>
>
>       </agents>
>
>       <!-- Session log file -->
>       <log>
>         <file>session.log</file>
>         <type>session</type>
>       </log>
>
>       <!-- List of IDs with administrative access, all will receive administrator messages
>       <admin>
>         <read>support at localhost</read>
>         <write>admin at localhost</write>
>       </admin>
>       -->
>
>       <!-- Server version update notification, set to the server name so that all administrators (above) will be notified, or set to any ID
>       <update><jabberd:cmdline flag="h"/></update> -->
>
>     </jsm>
>
>     <!-- This section dynamically loads the session manager, remove or comment out modules to disable them. -->
>     <load main="jsm">
>       <jsm>./jsm.so</jsm>
>       <mod_echo>./jsm.so</mod_echo>
>       <mod_roster>./jsm.so</mod_roster>
>       <mod_time>./jsm.so</mod_time>
>       <mod_vcard>./jsm.so</mod_vcard>
>       <mod_version>./jsm.so</mod_version>
>       <mod_announce>./jsm.so</mod_announce>
>       <mod_agents>./jsm.so</mod_agents>
>       <mod_admin>./jsm.so</mod_admin>
>       <mod_private>./jsm.so</mod_private>
>       <mod_filter>./jsm.so</mod_filter>
>       <mod_presence>./jsm.so</mod_presence>
>       <mod_auth_plain>./jsm.so</mod_auth_plain>
>       <mod_auth_digest>./jsm.so</mod_auth_digest>
>       <mod_auth_0k>./jsm.so</mod_auth_0k>
>       <mod_register>./jsm.so</mod_register>
>       <mod_log>./jsm.so</mod_log>
>     </load>
>
>   </service>
>
>   <!-- This component handles all data storage, using the filesystem. -->
>   <xdb id="xdb">
>     <host/>
>     <load><xdb_file>./xdb_file.so</xdb_file></load>
>     <xdb_file xmlns="jabber:config:xdb_file"><spool>./spool</spool></xdb_file>
>   </xdb>
>
>   <!-- Service to manage incoming client socket connections. -->
>   <service id="c2s">
>          <host>jpolld.192.168.0.2</host>
>          <accept>
>              <ip/>
>              <port>5225</port>
>              <secret>secret</secret>
>          </accept>
>    </service>
>
>   <!-- Default server logging component, copies to a file and STDERR. -->
>   <log id='logger'>
>     <host/>
>     <format>%d: [%t] (%h): %s</format>
>     <file>error.log</file>
>     <stderr/>
>   </log>
>
>   <!-- The following two services are for handling server to server traffic. -->
>
>   <!-- External asychronous DNS resolver -->
>   <service id="dnsrv">
>     <host/>
>     <load><dnsrv>./dnsrv.so</dnsrv></load>
>     <dnsrv xmlns="jabber:config:dnsrv">
>         <resend service="_jabber._tcp">s2s</resend> <!-- for supporting SRV records -->
>         <resend>s2s</resend>
>     </dnsrv>
>   </service>
>
>   <!-- Handles server connections and dialback hostname verification -->
>   <service id="s2s">
>     <load><pthsock_server>./pthsock_server.so</pthsock_server></load>
>     <pthssock xmlns='jabber:config:pth-ssock'>
>       <legacy/> <!-- allow communication with old 1.0-style servers -->
>       <rate time="5" points="25"/> <!-- 25 connects in 5 seconds limit (per IP) -->
>       <!-- Karma based I/O rate limits, per connection, set a little higher for server connections -->
>       <karma>
>         <max>30</max>
>         <inc>2</inc>
>         <dec>1</dec>
>         <restore>15</restore>
>         <penalty>-1</penalty>
>       </karma>
>       <!-- Use these to listen on particular addresses and/or ports.
>       <ip port="7000"/>
>       <ip port="5269">127.0.0.1</ip>
>       -->
>     </pthssock>
>   </service>
>
>   <!-- GroupChat -->
>   <!-- This is OK, config one -->
>   <!--
>   <service id="groupchat_transport">
>     <host>conference.vista.internal</host>
>     <exec>jabberd -c ./jabberd_groupchat.xml</exec>
>   </service>
>   -->
>
>   <!-- This is OK, config two -->
>   <service id="conference.vista.internal">
>     <load><groupchat>./groupchat.so</groupchat></load>
>     <config xmlns="jabberd:gc:config">
>     <history>20</history>
>     </config>
>   </service>
>
>   <log id="gc_log">
>     <file>./grouchat.log</file>
>   </log>
>
> </jabber>
>
> 6. simulate.cfg
> server=192.168.0.2
> port=5222
> users=512
> message_delay=2
> login_delay=1
> login_duration=300000
> user_letter=r
> message=Hi There
> message=How are you?
> message=This is a long, \
>         multiline message.
> message=This message should be quite a bit longer than the others. \
>         I dunno why it should be longer, I just decided that it should, \
>         that's all!
> message=This is another short message!
>
>
> Regards,
>
> - Lg
>
> 2001-1-5 23:02:09
>
> --
>   Gang Liu / Vista Team / ShenZhen City / China
>   Email: gang_l at 21cn.com & gang_l at hotmail.com
>   Phone: +86 13923425035
>   ICQ: 70670666   Jabber: gang_l at jabber.org
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev





More information about the JDev mailing list