Page 1 of 1

500 Servlet Exception

Posted: Tue Dec 12, 2006 1:52 pm
by okivan
Hello
I installed OpenEMM on a Suse 9.3 but i get the following error if I want to
start it in my browser.
500 Servlet Exception

Resin can't execute the compiler `/bin/sh'. This usually means that the
compiler is not in the operating system's PATH or the compiler is incorrectly
specified in the configuration. You may need to add the full path to <java
compiler='/bin/sh'/>.

java.io.IOException: java.io.IOException: Cannot allocate memory
I have this in "/var/log/warn"
Dec 12 13:17:03 h1128460 su: PAM unable to dlopen(/lib/security/pam_unix2.so)
Dec 12 13:17:03 h1128460 su: PAM [dlerror: libxcrypt.so.1: Kann die Zero-Fill Seiten nicht mappen: Nicht genügend Haup$tspeicher verfügbar]
Dec 12 13:17:03 h1128460 su: PAM adding faulty module: /lib/security/pam_unix2.so
Dec 12 13:17:03 h1128460 su: PAM unable to dlopen(/lib/security/pam_pwcheck.so)
Dec 12 13:17:03 h1128460 su: PAM [dlerror: libxcrypt.so.1: Kann die Zero-Fill Seiten nicht mappen: Nicht genügend Haup$tspeicher verfügbar]
Dec 12 13:17:03 h1128460 su: PAM adding faulty module: /lib/security/pam_pwcheck.so
Dec 12 13:17:12 h1128460 su: PAM unable to dlopen(/lib/security/pam_unix2.so)
Dec 12 13:17:12 h1128460 su: PAM [dlerror: libxcrypt.so.1: Kann die Zero-Fill Seiten nicht mappen: Nicht genügend Haup$tspeicher verfügbar]
Dec 12 13:17:12 h1128460 su: PAM adding faulty module: /lib/security/pam_unix2.so
Dec 12 13:17:12 h1128460 su: PAM unable to dlopen(/lib/security/pam_pwcheck.so)
Dec 12 13:17:12 h1128460 su: PAM [dlerror: libxcrypt.so.1: Kann die Zero-Fill Seiten nicht mappen: Nicht genügend Haup$tspeicher verfügbar]
Dec 12 13:17:12 h1128460 su: PAM adding faulty module: /lib/security/pam_pwcheck.so
Dec 12 13:17:19 h1128460 su: PAM unable to dlopen(/lib/security/pam_unix2.so)
Dec 12 13:17:19 h1128460 su: PAM [dlerror: libselinux.so.1: Fehler beim Mappen des Shared Objects: Nicht genügend Haup$tspeicher verfügbar]
Dec 12 13:17:19 h1128460 su: PAM adding faulty module: /lib/security/pam_unix2.so
Dec 12 13:17:19 h1128460 su: PAM unable to dlopen(/lib/security/pam_pwcheck.so)
Dec 12 13:17:19 h1128460 su: PAM [dlerror: libxcrypt.so.1: Kann die Zero-Fill Seiten nicht mappen: Nicht genügend Haup$tspeicher verfügbar]
Dec 12 13:17:19 h1128460 su: PAM adding faulty module: /lib/security/pam_pwcheck.so
Dec 12 13:18:59 h1128460 sshd[20928]: error: fork: Cannot allocate memory
Dec 12 13:19:33 h1128460 sshd[20928]: error: fork: Cannot allocate memory
Can anybody help me out
thanks okivan

Posted: Tue May 15, 2007 6:32 pm
by trax
I do get exactly the same error.

Memory allocation limit is reached when I start Openemm.


Any Ideas?

Posted: Tue May 15, 2007 10:17 pm
by trax
It is really a strange situation.

When I start OpenEMM.sh the wohle Server brakes down.

jvm_console.log:
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:597)
at com.caucho.util.ThreadPool$ThreadLauncher.startConnection(ThreadPool.java:607)
at com.caucho.util.ThreadPool$ThreadLauncher.run(ThreadPool.java:646)
at java.lang.Thread.run(Thread.java:619)
I am using Java JDK 1.5.0_11.
I also tried JDK 1.6.0


c:
Resin-3.0.19 (built Mon, 15 May 2006 04:50:47 PDT)
Copyright(c) 1998-2006 Caucho Technology. All rights reserved.

Starting Resin on Tue, 15 May 2007 23:06:11 +0200 (CEST)

[23:06:15.375]Server[] starting
[23:06:15.376]
[23:06:15.377]Linux 2.6.9-023stab043.1-enterprise i386
[23:06:15.377]Java 1.5.0_11-b03, 32, mixed mode, ANSI_X3.4-1968, en, Sun Microsystems Inc.
[23:06:15.378]resin.home = /home/openemm
[23:06:15.379]server.root = /home/openemm
[23:06:15.379]
[23:06:15.391]Can't run as openemm(uid=-1), running as root.
[23:06:15.516]Host[] starting
[23:06:16.789]In-place class redefinition (HotSwap) is not available. In-place class reloading during development requires a compatible JDK and -Xdebug.
[23:06:17.203]WebApp[] starting
[23:06:17.660]Loading Spring root WebApplicationContext

Any alle other log-Files (I know) are fine.

My processes:

PID Command User
Search Show All

PID %CPU %MEM Command Nice Pri RSS Stat Time User
1 0.0 0.0 init [3] 0 24 256 S 00:00:00 0
11682 0.0 0.1 python /home/openemm/bin/scripts/bav-update.py 0 23 4904 S 00:00:00 1000
11710 0.0 0.1 python /home/openemm/bin/scripts/bav-trigger.py 0 20 4116 S 00:00:00 1000
11738 0.0 0.1 python /home/openemm/bin/scripts/bavd.py 0 19 4608 S 00:00:00 1000
11740 0.0 0.0 /home/openemm/bin/bav -L INFO 0 23 476 S 00:00:00 1000
11794 0.0 0.1 python /home/openemm/bin/scripts/update.py bounce account 0 23 4032 S 00:00:00 1000
11822 0.0 0.1 python /home/openemm/bin/scripts/pickdist.py 0 23 3892 S 00:00:00 1000
11850 0.0 0.0 sendmail: accepting connections 0 23 1904 S 00:00:00 0
11853 0.0 0.0 sendmail: Queue runner@00:05:00 for /var/spool/clientmqueue 0 23 1644 S 00:00:00 0
11856 0.0 0.0 sendmail: Queue runner@00:01:00 for /home/openemm/var/spool/ADMIN 0 23 1648 S 00:00:00 0
11859 0.0 0.0 sendmail: Queue runner@00:01:00 for /home/openemm/var/spool/QUEUE 0 23 1660 S 00:00:00 0
11888 0.0 0.1 python /home/openemm/bin/scripts/slrtscn.py 0 23 3880 S 00:00:00 1000
11900 0.0 0.1 perl /home/openemm/bin/wrapper.pl -chdir -name httpd -class com.caucho.server.resin.Resin -conf /home/openemm/conf/console.conf -jvm-log /home/openemm/var/log/jvm_console.log -stderr /home/openemm/var/log/console_stderr.log -stdout /home/openemm/var/log/c 0 23 2720 S 00:00:00 1000
11913 0.0 0.1 perl /home/openemm/bin/wrapper.pl -chdir -name httpd -class com.caucho.server.resin.Resin -conf /home/openemm/conf/redirection.conf -jvm-log /home/openemm/var/log/jvm_redirection.log -stderr /home/openemm/var/log/redirection_stderr.log -stdout /home/opene 0 23 2700 S 00:00:00 1000
11915 2.3 3.5 /opt/openemm.org/software/java/bin/java -Xss1m -Dresin.home=/home/openemm -Dserver.root=/home/openemm -Djava.util.logging.manager=com.caucho.log.LogManagerImpl -Djavax.management.builder.initial=com.caucho.jmx.MBeanServerBuilderImpl com.caucho.server.resi 0 23 92200 S 00:00:13 1000
12283 0.2 0.0 [java <defunct>] 0 20 0 Z 00:00:00 1000
15460 0.0 0.0 /usr/sbin/saslauthd -n 2 -a pam 0 21 804 S 00:00:00 0
15461 0.0 0.0 /usr/sbin/saslauthd -n 2 -a pam 0 21 476 S 00:00:00 0
15502 0.0 0.0 /usr/sbin/cron 0 23 672 S 00:00:00 0
15724 0.0 0.1 sshd: root@pts/0 0 23 2604 S 00:00:01 0
I think, it is this process:

Code: Select all

/opt/openemm.org/software/java/bin/java -Xss1m -Dresin.home=/home/openemm -Dserver.root=/home/openemm -Djava.util.logging.manager=com.caucho.log.LogManagerImpl -Djavax.management.builder.initial=com.caucho.jmx.MBeanServerBuilderImpl com.caucho.server.resi
Any ideas?

Posted: Wed May 16, 2007 1:07 pm
by trax
I now deleted OpenEMM from the server.

I installed now v.5.0.2.

But unfortunatly I got the same error on this older version.

Posted: Wed May 16, 2007 4:57 pm
by kingossi
did you start openemm as an openemm user?
su - openemm
./Openemm.sh start

Posted: Wed May 16, 2007 5:11 pm
by trax
Yes I did.

I think the solution is, that my Server did not have enough RAM.

I changed this parameter and it works.