XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum -> Install Error (linux Oriented)

Reply to this topicStart new topicStart Poll

> Install Error (linux Oriented), Error while trying to run xqmagent
behorn
Posted: May 3 2005, 08:33 AM
Quote Post


Newbie
*

Group: Members
Posts: 23
Member No.: 1608
Joined: 3-May 05



I run inte error trying to start the xqmagent.sh. I have downloader the latest version so the startscript is the wrapped version.
I run Redhat 9 (which I'm not very familiar with, or Linux in particualar for that matter...)

When I try to run ./xqmagent.sh the process starts to spawn (I guess) a bucnh of child processes but after a while it stops with the message
QUOTE

./xqmagent.sh : fork : Cannot allocate memory


At this time (checking for example ps -a) I see that there are about 100 processes for xqmagent. I am running many mail accounts, about 60, but all these processes?

Regards
Björn
PMEmail Poster
Top
hschneider
Posted: May 3 2005, 08:47 AM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



Stop xqmagent
Edit /etc/xqmagent.conf and set THREADS=4
Restart xqmagent

Did you change this value before ?


--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
behorn
Posted: May 3 2005, 10:15 AM
Quote Post


Newbie
*

Group: Members
Posts: 23
Member No.: 1608
Joined: 3-May 05




I didn't set the thread value before but now set it to 4, and the server more or less crashed (or atleast stalled totally). No errors this time, but no great success either :-)

//Björn
PMEmail Poster
Top
hschneider
Posted: May 3 2005, 11:18 AM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



This looks pretty strange to me. The Agent was tested on RedHat 9. The max. no. of threads you should see should be 27 or - after your changes 6 threads. The Agent's hard limit is 25. So some hundred threads is rather strange ...

How much RAM do you have?
What is the output of the 'top' command, right after starting the Agent ?
Run the Agent in debug mode, to see if it gives back any errors:

killall --KILL xqmagent
./xqmagent --debug



--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
behorn
Posted: May 3 2005, 01:53 PM
Quote Post


Newbie
*

Group: Members
Posts: 23
Member No.: 1608
Joined: 3-May 05



I have to say it is pretty strange to me too :-) And not in a good way...
The amount of ram I must honestly say I don't know how to check. I only manage the server via SSH and I'm don't know all the low-level linux commands (yet, and will never do for that matter :-)

The only I could think of was the command "free" which gave me :
QUOTE

                    total      used      free    shared    buffers    cached
Mem:        513748    178424    335324          0      9992      32608
-/+ buffers/cache:    135824    377924
Swap:      1044216      91092    953124



I now tried two things

1) I ran ./xqmagent.sh -- debug & and then top with the following result (I did remove a few HTTP here since I didn't think these where of interest)
QUOTE

14:20:44  up 120 days,  1:07,  1 user,  load average: 0.63, 0.30, 0.14
1338 processes: 1337 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:  0.7% user  0.1% system  0.0% nice  0.0% iowait  99.1% idle
Mem:  513748k av,  507360k used,    6388k free,      0k shrd,  43388k bu
                    391968k actv,  10908k in_d,    4872k in_c
Swap: 1044216k av,  56732k used,  987484k free                  140556k ca

  PID USER    PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM  TIME CPU COMMAND
25968 root      21  0  928  928  808 S    18.8  0.1  0:02  0 xqmagent.
27113 root      19  0  2000 2000  768 R    6.4  0.3  0:00  0 top
    4 root      15  0    0    0    0 DW    0.6  0.0  0:43  0 kswapd
    1 root      15  0  108  84    56 S    0.0  0.0  0:13  0 init
    2 root      15  0    0    0    0 SW    0.0  0.0  0:00  0 keventd
    3 root      34  19    0    0    0 SWN  0.0  0.0  0:01  0 ksoftirqd
    8 root      15  0    0    0    0 SW    0.0  0.0  0:03  0 bdflush
    5 root      15  0    0    0    0 SW    0.0  0.0  0:00  0 kscand/DM
    6 root      16  0    0    0    0 SW    0.0  0.0  75:19  0 kscand/No
    7 root      15  0    0    0    0 SW    0.0  0.0  0:00  0 kscand/Hi
    9 root      15  0    0    0    0 SW    0.0  0.0  0:02  0 kupdated
  10 root      24  0    0    0    0 SW    0.0  0.0  0:00  0 mdrecover
  14 root      15  0    0    0    0 SW    0.0  0.0  1:46  0 kjournald
  69 root      25  0    0    0    0 SW    0.0  0.0  0:00  0 khubd
1175 root      15  0    0    0    0 SW    0.0  0.0  0:00  0 kjournald
1530 rpc      25  0    64    0    0 SW    0.0  0.0  0:00  0 portmap
1657 root      16  0  448  316  208 S    0.0  0.0  0:42  0 sshd
1671 root      15  0  152    4    0 S    0.0  0.0  0:00  0 xinetd
1683 root      25  0  156    4    0 S    0.0  0.0  0:00  0 safe_mysq
1714 mysql    15  0 16672 6512  1352 S    0.0  1.2  81:45  0 mysqld
1716 root      22  0 12952    4    0 S    0.0  0.0  0:00  0 spamd
1725 root      15  0    64  28    12 S    0.0  0.0  0:01  0 gpm
1746 nobody    15  0  688  256  136 S    0.0  0.0  0:06  0 proftpd
1755 root      17  0  160  136    88 S    0.0  0.0  0:00  0 crond
1835 xfs      15  0  2312  56    32 S    0.0  0.0  0:00  0 xfs
1859 daemon    15  0  176  120  120 S    0.0  0.0  0:00  0 atd
1871 root      15  0  3948 1348  600 S    0.0  0.2  4:04  0 miniserv.
1874 root      23  0    52    4    0 S    0.0  0.0  0:00  0 mingetty
24811 root      15  0  224  200  148 S    0.0  0.0  0:09  0 syslogd
24815 root      15  0  164  156  112 S    0.0  0.0  0:00  0 klogd
30495 root      15  0  708  324  236 S    0.0  0.0  0:00  0 cupsd
20900 root      15  0  3096 2672  940 S    0.0  0.5  1:09  0 XMail
23556 named    25  0  2092 1800  956 S    0.0  0.3  0:01  0 named
8885 root      16  0  1112  960  676 S    0.0  0.1  0:00  0 bash

The system stopped to respond and I have to kill everything to come back to life again. Nothing out of the debug!

2) I ran ./xqmagent.sh and waited a while. Then I opened another window and checked the processes. The result -> ps -a
QUOTE

1765 pts/0    00:00:00 xqmagent.sh
1770 pts/0    00:00:00 xqmagent.sh
1786 pts/0    00:00:00 xqmagent.sh
1791 pts/0    00:00:00 xqmagent.sh
1793 pts/0    00:00:00 xqmagent.sh
1795 pts/0    00:00:00 xqmagent.sh

!!! THIS HAS BEEN TRUNCATED SINCE > 250 LINES !!!

3669 pts/0    00:00:00 xqmagent.sh
3670 pts/0    00:00:00 xqmagent.sh
3671 pts/0    00:00:00 xqmagent.sh
3672 pts/0    00:00:00 xqmagent.sh <defunct>
root@roquez root]#

Oooops, does NOT look so good. Ofcourse, the system stopped to respond again etc etc...

This is my xqmagent.sh
CODE

#!/bin/sh
#
# Use this starter script, if you are on RedHat >= 9.0.
# This forces your kernel to use the older standard thread scheme.
# If you don't use RedHat, you are free to start ./xqmagent directly.
#
export LD_ASSUME_KERNEL=2.41
./xqmagent.sh $1


and my xqmagent.conf (with the comment removed)

QUOTE

#!/bin/sh

export LD_ASSUME_KERNEL=2.41
./xqmagent.sh $1
[root@roquez xqmanager]# less /etc/xqmagent.conf

THREADS=4

STARTSCRIPT = /etc/init.d/xmail

AGENT_HOST = 127.0.0.1

AGENT_PORT = 8000

AGENT_DYNIP = 0

TRUSTED_CLIENTS = 127.0.0.1,tbird,192.168.0.*

CTRL_HOST = 127.0.0.1
CTRL_PORT = 6017


I just checked the server status logs and found :
May 3 14:23:07 roquez kernel: VFS: file-max limit 52416 reached

Something is rotten here... and I guess I'm the thief.. but how where and why?

Thanx for your great patience,
regards

Björn
PMEmail Poster
Top
hschneider
Posted: May 3 2005, 03:33 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



What you see is the shell script wich seems to be started in an infinite loop, not the Agent's threads. Please start without the .sh file. Just

./xqmagent --debug

Output ?


--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
behorn
Posted: May 3 2005, 03:58 PM
Quote Post


Newbie
*

Group: Members
Posts: 23
Member No.: 1608
Joined: 3-May 05



Yes, I thought that the script didn't make sense, but on the other hand I trusted it.

Output -> ./xqmagent --debug

Agent version : 1.40
Using xmaillib : 1.54
Using rpcserver : 1.12
Configurationfile : /etc/xqmagent.conf
Threads : 4
Listening at : 127.0.0.1:8000
CTRL access at : 127.0.0.1:6017
Trusted clients : 127.0.0.1,tbird,192.168.0.*
Handle dynamic IPs : No
PID : 16862
Parent PID : 16409

which I guess is good :-)

I'll try to get on from here now,

Thanx for the help
PMEmail Poster
Top
hschneider
Posted: May 4 2005, 06:55 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



Don't know what causes this script to loop on your system. It's just a 2-liner with obviously no loop inside ...


--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | XMail Queue Manager | Next Newest »

Reply to this topicStart new topicStart Poll