ulimit: =10000: invalid number

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

rudi
Posts: 289
Joined: Mon Nov 22, 2004 6:53 am

ulimit: =10000: invalid number

Postby rudi » Tue May 08, 2007 12:36 pm

Hi,
I have updated a scalix server form 11.0.3 to 11.0.4. Now when I start tomcat there is the following error message:

Starting Tomcat service (mitte)/etc/init.d/scalix-tomcat: line 122: ulimit: =10000: invalid number
Using CATALINA_BASE: /var/opt/scalix/me/tomcat
Using CATALINA_HOME: /opt/scalix-tomcat
Using CATALINA_TMPDIR: /var/opt/scalix/me/tomcat/temp
Using JRE_HOME:

Do you know this error?

rudi
Posts: 289
Joined: Mon Nov 22, 2004 6:53 am

Postby rudi » Tue May 08, 2007 1:54 pm

There is a generally problem with tomcat. The tomcat service seems to be running but there are this messages in mod_jk.log:

[Tue May 08 19:41:46 2007] [info] ajp_send_request::jk_ajp_common.c (1178): Socket 11 is not connected any more (errn
o=-1)
[Tue May 08 19:41:46 2007] [info] ajp_send_request::jk_ajp_common.c (1202): Error sending request. Will try another p
ooled connection
[Tue May 08 19:41:46 2007] [info] ajp_send_request::jk_ajp_common.c (1225): All endpoints are disconnected or dead
[Tue May 08 19:41:46 2007] [info] ajp_service::jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable
operation attempt=1

OS: SLES9, Scalix Version 11.0.4

Please help!!!!

rudi
Posts: 289
Joined: Mon Nov 22, 2004 6:53 am

Postby rudi » Tue May 08, 2007 2:40 pm

Hi,
Problem solved ...
after a change of the fqdn I forget to change the link in /var/opt/scalix/sn/tomcat/conf/Catalina/server.domain.com

Thanks!!!

jeffs
Posts: 30
Joined: Thu Mar 08, 2007 5:37 pm
Location: Cincinnati, OH

Postby jeffs » Tue May 08, 2007 2:48 pm

Oh yeah, for your first error... the equals sign in /etc/init.d/scalix-tomcat after ulimit -SHn needs to go away. I have added something similar to my init script on SLES 9. It should look like the one for Red Hat above it in the file.

Code: Select all

elif [ "$DISTRIBUTION" = "suse" ] ; then

start() {
        # Clear out any temporary files, especially lock files.
        test -n "$CATALINA_BASE" && rm -f $CATALINA_BASE/temp/* >/dev/null 2>&1
        echo -n "Starting Tomcat service ($SCALIX_INSTANCE)"
        if [ ! -z "$ULIMIT_NUM_FILES" ]; then
            ulimit -SHn ${ULIMIT_NUM_FILES}
        fi
        $startup
        rc_status -v
}


hth - Jeff

(edit: forgot to insert path to scalix-tomcat init script)

rudi
Posts: 289
Joined: Mon Nov 22, 2004 6:53 am

Postby rudi » Wed May 09, 2007 10:35 am

Hi jeffs,
yes thats it.
Thanks for help!!!!

dboreham
Scalix
Scalix
Posts: 36
Joined: Mon Apr 09, 2007 11:38 am

Re: ulimit: =10000: invalid number

Postby dboreham » Wed May 09, 2007 11:03 am

rudi wrote:Hi,
I have updated a scalix server form 11.0.3 to 11.0.4. Now when I start tomcat there is the following error message:

Starting Tomcat service (mitte)/etc/init.d/scalix-tomcat: line 122: ulimit: =10000: invalid number
Using CATALINA_BASE: /var/opt/scalix/me/tomcat
Using CATALINA_HOME: /opt/scalix-tomcat
Using CATALINA_TMPDIR: /var/opt/scalix/me/tomcat/temp
Using JRE_HOME:

Do you know this error?


This is a bug in the init script. What OS and version of that OS are you running ?

rudi
Posts: 289
Joined: Mon Nov 22, 2004 6:53 am

Postby rudi » Wed May 09, 2007 11:15 am

This is a bug in the init script. What OS and version of that OS are you running ?


It's SLES 9.

jeffs
Posts: 30
Joined: Thu Mar 08, 2007 5:37 pm
Location: Cincinnati, OH

Postby jeffs » Wed May 09, 2007 2:05 pm

Hey rudi - you're welcome.

Without the change SLES9 runs scalix-tomcat with -n 1024 (system default) and that will eventually cause problems on a busy server. I've made this change, with -SHn 10240, to the scalix-tomcat init script since we installed v10.0.1 last year at this time. I found a copy in the writeup for Bug 13143 and the example also has the equals sign in the SuSE portion of the script change...

Jeff

edit: it appears this is the case for all supported SUSE releases - SLES 9, SLES 10, OpenSUSE. Stray = sign causes problems on all of them.

dboreham
Scalix
Scalix
Posts: 36
Joined: Mon Apr 09, 2007 11:38 am

Postby dboreham » Thu May 10, 2007 9:20 am

jeffs wrote:edit: it appears this is the case for all supported SUSE releases - SLES 9, SLES 10, OpenSUSE. Stray = sign causes problems on all of them.


We're a bit baffled by this because 11.04 was tested on Suse, and the
internal production server used by the developers also runs Suse.
(and didn't show this problem). I wonder if somehow different machines
are picking up different default shells ?

jeffs
Posts: 30
Joined: Thu Mar 08, 2007 5:37 pm
Location: Cincinnati, OH

Postby jeffs » Thu May 10, 2007 10:26 am

No problem Dave.

All machines I tested with use /bin/bash with SUSE defaults.

Jeff


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 4 guests