Page 1 of 1
ulimit: =10000: invalid number
Posted: Tue May 08, 2007 12:36 pm
by rudi
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?
Posted: Tue May 08, 2007 1:54 pm
by rudi
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!!!!
Posted: Tue May 08, 2007 2:40 pm
by rudi
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!!!
Posted: Tue May 08, 2007 2:48 pm
by jeffs
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)
Posted: Wed May 09, 2007 10:35 am
by rudi
Hi jeffs,
yes thats it.
Thanks for help!!!!
Re: ulimit: =10000: invalid number
Posted: Wed May 09, 2007 11:03 am
by dboreham
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 ?
Posted: Wed May 09, 2007 11:15 am
by rudi
This is a bug in the init script. What OS and version of that OS are you running ?
It's SLES 9.
Posted: Wed May 09, 2007 2:05 pm
by jeffs
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.
Posted: Thu May 10, 2007 9:20 am
by dboreham
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 ?
Posted: Thu May 10, 2007 10:26 am
by jeffs
No problem Dave.
All machines I tested with use /bin/bash with SUSE defaults.
Jeff